[android-developers] Re: Question: Is there a way to inquire the port forwarding done by Android Studio?

2016-03-24 Thread Dato Da
Thanks for the reply, Diego. Alas, I fail to see how this API would help my 
situation. Most of the methods in the class are for an app to get various 
profiling info. The few that has to do with debugger don't have anything to 
do with port forwarding. Am I missing something? Thanks again.

On Thursday, March 24, 2016 at 7:16:37 PM UTC-4, Diego Torres Milano wrote:
>
> Take a look at 
> http://developer.android.com/reference/android/os/Debug.html
>
>
> On Wednesday, 23 March 2016 22:45:34 UTC-4, Dato Da wrote:
>>
>> If Android Studio is running on my development machine, when I launch the 
>> app on a device from the command line using this command:
>>
>> $ adb shell am start -D -n  -a ...
>>
>> Android Studio would immediately forward a port on the local host (8600 
>> and up) to the jdwp port of the app, so that the debugger in Android Studio 
>> could debug the app if necessary.
>>
>> Now, if, say, I would like to use a 3rd party debugger (rather than the 
>> debugger in Android Studio) to debug the app, I will need to connect that 
>> debugger to the port forwarded by Android Studio to that app to get the 
>> debugging to work.
>>
>> *My question: How can I determine what that port is? *
>>
>> Here are a couple of things I've tried (to no avail):
>> 1. $ adb forward --list
>>   Alas, the forwarding done by Android Studio isn't shown.
>> 2. $ adb forward tcp:9010 jdwp:
>>   Connecting the debugger to 9010 failed, probably because the jdwp 
>> port is already locked up by Android Studio's port forwarding.
>> 3. I can turn on DDMS and see the port assigned to the app. But what I 
>> need is an API or text output so that I can get that info programmatically?
>>
>> You insight would be appreciated.
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/f39058de-dcc4-4dcf-8f02-b1c31f80cd06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Question: Is there a way to inquire the port forwarding done by Android Studio?

2016-03-24 Thread Diego Torres Milano
Take a look at http://developer.android.com/reference/android/os/Debug.html


On Wednesday, 23 March 2016 22:45:34 UTC-4, Dato Da wrote:
>
> If Android Studio is running on my development machine, when I launch the 
> app on a device from the command line using this command:
>
> $ adb shell am start -D -n  -a ...
>
> Android Studio would immediately forward a port on the local host (8600 
> and up) to the jdwp port of the app, so that the debugger in Android Studio 
> could debug the app if necessary.
>
> Now, if, say, I would like to use a 3rd party debugger (rather than the 
> debugger in Android Studio) to debug the app, I will need to connect that 
> debugger to the port forwarded by Android Studio to that app to get the 
> debugging to work.
>
> *My question: How can I determine what that port is? *
>
> Here are a couple of things I've tried (to no avail):
> 1. $ adb forward --list
>   Alas, the forwarding done by Android Studio isn't shown.
> 2. $ adb forward tcp:9010 jdwp:
>   Connecting the debugger to 9010 failed, probably because the jdwp 
> port is already locked up by Android Studio's port forwarding.
> 3. I can turn on DDMS and see the port assigned to the app. But what I 
> need is an API or text output so that I can get that info programmatically?
>
> You insight would be appreciated.
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/b4f4ba11-7a0a-4728-8f8d-3e9be224a922%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Question regarding "massive" application downloads

2016-03-20 Thread Alain Bonnefoy
Hi,

I don't talk about any issue in fact.

I just say that if a group of peoples come in a site of interest and want 
all download the application, install it and then download the content 
throught the application, we will face a problem of bandwidth which cause a 
long time to wait that all downloads are finished.
So yes, peoples can already have the application installed, best case, or 
cannot.

So that's not an issue, just a normal behavior when lot of peoples want to 
download MB from a same link.

So, my question was to ask if anyone knows a solution for that.

And maybe I found a solution here 
, 
maybe with the possibility to also cache the application, but I'm still 
wait for this confirmation.

Regards,

Le dimanche 20 mars 2016 08:49:13 UTC+1, gjs a écrit :
>
> Hi,
>
> I did, but still don't get the issue.
>
> Perhaps you mean that the previously installed application would be 
> required to download additional DATA related to the specific site, when the 
> persons are located at the site of interest ?
>
> Or otherwise perhaps you could bundle all the site's data within the 
> application so that the data is also downloaded when the user installs the 
> app, hence my reference to what is https://play.google.com for ?
>
> There is many other possible solutions, eg cache the data on a server 
> located at the site & get your app to download the data from the nearby 
> local server over wifi connection. Or setup Kiosk machines eg Tablets on 
> site that anybody can access, etc.
>
> Without knowing what your intended content and projected data volumes are 
> it's a bit hard to know what to advise, could the data be streamed instead 
> of download ?
>
> I'm still just guessing because as your issue is not clear to me, maybe 
> due to language translation of your original question...
>
> Regards
>
> On Sunday, March 20, 2016 at 12:40:49 AM UTC+11, Alain Bonnefoy wrote:
>>
>> Please reread the question
>> Alain
>>
>> Le samedi 19 mars 2016 12:08:56 UTC+1, gjs a écrit :
>>>
>>> What is
>>>
>>> https://play.google.com
>>>
>>> for ?
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/567edd90-c43c-4405-95bc-9616c98e32cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Question regarding "massive" application downloads

2016-03-20 Thread gjs
Hi,

I did, but still don't get the issue.

Perhaps you mean that the previously installed application would be 
required to download additional DATA related to the specific site, when the 
persons are located at the site of interest ?

Or otherwise perhaps you could bundle all the site's data within the 
application so that the data is also downloaded when the user installs the 
app, hence my reference to what is https://play.google.com for ?

There is many other possible solutions, eg cache the data on a server 
located at the site & get your app to download the data from the nearby 
local server over wifi connection. Or setup Kiosk machines eg Tablets on 
site that anybody can access, etc.

Without knowing what your intended content and projected data volumes are 
it's a bit hard to know what to advise, could the data be streamed instead 
of download ?

I'm still just guessing because as your issue is not clear to me, maybe due 
to language translation of your original question...

Regards

On Sunday, March 20, 2016 at 12:40:49 AM UTC+11, Alain Bonnefoy wrote:
>
> Please reread the question
> Alain
>
> Le samedi 19 mars 2016 12:08:56 UTC+1, gjs a écrit :
>>
>> What is
>>
>> https://play.google.com
>>
>> for ?
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/7930137d-8517-4d4b-9be0-8c21e92c9c03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Question regarding "massive" application downloads

2016-03-19 Thread Alain Bonnefoy
Please reread the question
Alain

Le samedi 19 mars 2016 12:08:56 UTC+1, gjs a écrit :
>
> What is
>
> https://play.google.com
>
> for ?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/a176dc0d-c973-4cb6-b97f-584ab4d52c90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Question about publishing an app (help!)

2015-08-28 Thread luca
I want to add that the app informations, like main icon, images and so on 
are only for testing purpose, not the right ones!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Question on the Action bar

2015-01-19 Thread Patrick
Hi,
If you use the support library, it is advised to use ProGuard to remove the 
unused classes.
Patrick

Le vendredi 16 janvier 2015 14:12:31 UTC+1, Mukesh Srivastav a écrit :
>
> Hi All,
>
> I have a question on using action bar libraries. is it not increasing the 
> size of the application ? 
>
> Please advise
>  

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Question for a Google Play employee: is it allowed to release a "pro" version of my existing app?

2013-07-17 Thread b0b
IAP is the best solution here by far.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: question about an error

2013-01-08 Thread RichardC
AOSP groups are here:
http://source.android.com/community/index.html

On Friday, January 4, 2013 11:04:43 PM UTC, mbiuk...@gmail.com wrote:
>
> I'm making Android in Ubuntu 12.04, but getting so many errors, Below is 
> the latest one I am getting during build:
>
> target Symbolic: libjni_latinime 
> (out/target/product/generic/symbols/system/lib/libjni_latinime.so)
> host C++: llvm-rs-cc <= 
> frameworks/compile/slang/slang_rs_export_foreach.cpp
> host C++: libclangDriver <= external/clang/lib/Driver/Tools.cpp
> host C++: libslang <= frameworks/compile/slang/slang.cpp
> host C++: libslang <= frameworks/compile/slang/slang_utils.cpp
> host C++: libslang <= frameworks/compile/slang/slang_backend.cpp
> external/clang/lib/Driver/Tools.cpp: In function ‘bool 
> ShouldDisableDwarfDirectory(const clang::driver::ArgList&, const 
> clang::driver::ToolChain&)’:
> external/clang/lib/Driver/Tools.cpp:1069:41: error: 
> ‘OPT_fdwarf_directory_asm’ is not a member of ‘clang::driver::options’
> external/clang/lib/Driver/Tools.cpp:1070:41: error: 
> ‘OPT_fno_dwarf_directory_asm’ is not a member of ‘clang::driver::options’
> external/clang/lib/Driver/Tools.cpp: In member function ‘virtual void 
> clang::driver::tools::linuxtools::Link::ConstructJob(clang::driver::Compilation&,
>  
> const clang::driver::JobAction&, const clang::driver::InputInfo&, const 
> InputInfoList&, const clang::driver::ArgList&, const char*) const’:
> external/clang/lib/Driver/Tools.cpp:4389:44: error: ‘OPT_static_libstdcxx’ 
> is not a member of ‘clang::driver::options’
> make: *** 
> [out/host/linux-x86/obj/STATIC_LIBRARIES/libclangDriver_intermediates/Tools.o]
>  
> Error 1
> make: *** Waiting for unfinished jobs
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> mehdi@mehdi-linux:~/Android$ vi external/clang/lib/Driver/Tools.cpp
> mehdi@mehdi-linux:~/Android$ 
> ** (gvim:19785): WARNING **: Unable to create Ubuntu Menu Proxy: Timeout 
> was reached
>
>
>
> Does anyone has any idea what's the problem and how I can fix this?
>
> Thanks
>
> Mehdi
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Question about AccountManager and OAuth authentication with Google App Engine

2013-01-07 Thread Stephen Friend

When will  OAuth 2.0 be available ?
Client login, as described in 
  
http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app
is deprecated ,  see 
  https://developers.google.com/accounts/docs/AuthForInstalledApp

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

2012-11-12 Thread bob
 

It is ok to have text on the left and a field on the right.

On Saturday, November 10, 2012 4:49:58 PM UTC-6, Mark Phillips wrote:
>
> Is it considered poor design to make a form in two columns, with a test 
> field identifier on the left and an empty field on the right? EditTexts 
> have a handy hint, but the hint is not needed if there us a TextField next 
> to the EditText. However, Spinners don't have anything like a hint, so they 
> need something to tell the user what the selection is all about, as it may 
> not be obvious. 
>
> I am making a form with several EditText fields, some spinners, and some 
> radio buttons. Just curious if my design (labels on the left, controls on 
> the right) is a little out dated for the modern Andorid world. I would hate 
> to show my age with and outmoded design. ;)
>
> Thanks,
>
> Mark
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Question: Is it possible to get the RAW camera data?

2012-10-12 Thread Samuel Potter
Hello,

Photographer here to maybe clear up some confusion over what RAW is, and 
why photographers prefer to shoot in RAW.  I'm going to refer to 
whitebalance as WB fyi.

RAW is not TIFF.  RAW allows you to essentially do non-destructive post 
processing to your photos.  This means cleaner sharpness and contrast 
adjustments, WB fixing, and wider dynamic range (shadows and highlights).  

RAW gives you full control over the entire WB spectrum so that no matter 
what WB you shoot in you can correct it in post processing to perfection. 
 If you tried taking an extremely blue(WB too cold) or orange (WB too warm) 
JPEG photo to its correct temperature, you will not have good results(at 
least not nearly as good as RAW).  

While shooting in RAW I am able to recover well over exposed photos back to 
where they should be, as well insanely underexposed photos that most people 
would write off too dark to use.  RAW gives you approximately 2 extra stops 
of exposure in each direction.  I can give examples if need be.

Do any Android phones capture in RAW?  I read some people in this 
discussion denying it was possible.  The HTC One X uses the RAW format to 
capture images and process them in phone, but they don't give you an option 
to save the image to your phone as RAW.  I think with the right developers 
they could give the user access to the RAW images that the One X captures 
and be able to save that to their phone so they could do editing to the 
photo from their computer(or phone) at a later time.

What is the appeal?  I strongly believe that if any android phones could 
capture and save RAW images, it would be a huge appeal to professional and 
hobby photographers.  Not every photographer wants to lug a heavy DSLR 
everywhere (especially in casual situations) with them to get quality 
photos that they can do precision processing to later.  Also RAW would help 
make up for the lack of manual camera settings on android phones by being 
able to recover photos with incorrect exposure or WB.

-Sam

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: [Question] How can I install the Android SDK Linux on Ubuntu 12.04.1

2012-09-23 Thread Mark Ward
Has the file got execute permissions? ls - al should show x for owner a least
On Saturday, 22 September 2012 14:01:13 UTC+12, Raziel23x  wrote:
> I have been trying all morning and half g today trying to get the bloody 
> thing to instill. I have followed the instructions in the txt file inside but 
> when I go into terminal and CD into the folder and type Android like the 
> instructions day it cannot find three file or if I try it as ./tools/android 
> permission denied and I sudoed in before hands so I have root access
> 
> Sent from my DROID RAZR CDMA XT912 using Tapatalk 2

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

2012-09-11 Thread Edvinas Kilbauskas
Oh my gosh! Thank you! You just made my day. Now I finally understand it! 
:))) Thanks thanks thanks! I can't say how much I thank you my smart man :)

2012 m. rugsėjis 10 d., pirmadienis 12:03:54 UTC+3, jb rašė:
>
> Harri Sm�tt schrieb: 
> > That's not true. Android supports basic Java Threads and there's no 
> > reason for not to use them when appropriate. But the thing is, you can 
> > not alter UI components outside of UI Thread. In your case it would be 
> > updating the textual contents of TextView. See method named 
> > runOnUiThread , it gives easy access for executing UI code from Threads. 
>
> Thanks, I guess runOnUiThread() corresponds to the 
> SwingUtilities invokeLater(), plus some smarts to bypass 
> posting if already in UiThread (*). 
>
> I guess there are situations where the smarts is not needed 
> and where one wants a invokeAndWait(). I built myself 
> AndroidUtilties which provide the later. The code reads 
> as follows: 
>
> public class AndroidUtilities { 
>
>  public static void invokeLater(View v, Runnable r) { 
>  if (!v.post(r)) 
>  throw new RuntimeException("looper missing"); 
>  } 
>
>  public static void invokeAndWait(View v, Runnable r) 
>  throws InterruptedException { 
>  WaitAdapter wa = new WaitAdapter(r); 
>  AndroidUtilities.invokeLater(v, wa); 
>  wa.doneJob(); 
>  } 
>
> } 
>
> class WaitAdapter implements Runnable { 
>  private Runnable job; 
>  private volatile boolean donejob; 
>  private final Object donelock = new Object(); 
>
>  WaitAdapter(Runnable j) { 
>  job = j; 
>  } 
>
>  public void run() { 
>  job.run(); 
>  synchronized (donelock) { 
>  donejob = true; 
>  donelock.notifyAll(); 
>  } 
>  } 
>
>  void doneJob() throws InterruptedException { 
>  synchronized (donelock) { 
>  while (!donejob) 
>  donelock.wait(); 
>  } 
>  } 
>
> } 
>
> The annoying thing is that one has to remember and/or 
> pass around a view all the time. The above code could 
> of course also be adapted so that it takes an activity 
> parameter instead of a view parameter, but still the 
> annoyance will be there. 
>
> Bye 
>
> (*) 
> http://stackoverflow.com/a/9350672/502187 
>
>
>
>
>

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

2012-09-10 Thread Jan Burse

Harri Smått schrieb:

That's not true. Android supports basic Java Threads and there's no
reason for not to use them when appropriate. But the thing is, you can
not alter UI components outside of UI Thread. In your case it would be
updating the textual contents of TextView. See method named
runOnUiThread , it gives easy access for executing UI code from Threads.


Thanks, I guess runOnUiThread() corresponds to the
SwingUtilities invokeLater(), plus some smarts to bypass
posting if already in UiThread (*).

I guess there are situations where the smarts is not needed
and where one wants a invokeAndWait(). I built myself
AndroidUtilties which provide the later. The code reads
as follows:

public class AndroidUtilities {

public static void invokeLater(View v, Runnable r) {
if (!v.post(r))
throw new RuntimeException("looper missing");
}

public static void invokeAndWait(View v, Runnable r)
throws InterruptedException {
WaitAdapter wa = new WaitAdapter(r);
AndroidUtilities.invokeLater(v, wa);
wa.doneJob();
}

}

class WaitAdapter implements Runnable {
private Runnable job;
private volatile boolean donejob;
private final Object donelock = new Object();

WaitAdapter(Runnable j) {
job = j;
}

public void run() {
job.run();
synchronized (donelock) {
donejob = true;
donelock.notifyAll();
}
}

void doneJob() throws InterruptedException {
synchronized (donelock) {
while (!donejob)
donelock.wait();
}
}

}

The annoying thing is that one has to remember and/or
pass around a view all the time. The above code could
of course also be adapted so that it takes an activity
parameter instead of a view parameter, but still the
annoyance will be there.

Bye

(*)
http://stackoverflow.com/a/9350672/502187




--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: question, has any one use the void glDrawElements(intmode,intcount,inttype,intoffset) in GL11

2012-09-07 Thread Shitesh
So I believe the answer to this question is here: 
http://stackoverflow.com/questions/7708745/whats-the-offset-parameter-in-gles20-glvertexattribpointer-gldrawelements-an

You can use the "int offset" function if you've called glBindBuffer first.

On Sunday, 4 January 2009 08:35:39 UTC+2, 边蓬 wrote:
>
> the source of framework shows that use offset as void * directly, than 
> what should I do before call glDrawElements ? 
>
>
> /* void glDrawElements ( GLenum mode, GLsizei count, GLenum type, 
> GLint offset ) */ 
> static void 
> android_glDrawElements__ 
>   (JNIEnv *_env, jobject _this, jint mode, jint count, jint type, jint 
> offset) { 
> glDrawElements( 
> (GLenum)mode, 
> (GLsizei)count, 
> (GLenum)type, 
> (const GLvoid *)offset 
> ); 
> } 
>

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

2012-06-28 Thread RichardC
What have you set your Group Subscribe Email option to click [My 
Membership] from the web interface?

On Thursday, June 28, 2012 4:08:41 PM UTC+1, Fran wrote:
>
> Hi, 
>
> Well, my problem is that I do not see my own posts on this group through 
> my Thunderbird mail client since I subscribed to it. I know they reaches 
> the group because I receive the answers, and also they are visible 
> through web G. groups interface. But they seem not to reach my Inbox. 
>
> I do not know if it is a problem of Thunderbird, the GMail account I use 
> to subscribe to the group, or some configuration related to the group 
> subscription itself. I do not discard no option, although if I send a 
> message to myself with that gmail account, it reaches my Inbox with no 
> problems, so I think that the group subscription setting is the most 
> plausible cause. 
>
> If someone has a clue on how to solve this... 
>
> Thanks a lot in advance, 
>
>

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

[android-developers] Re: Question: Is it possible to get the RAW camera data?

2012-06-14 Thread JackN
RAW is just a bitmap that is unprocessed. Each pixel represents what the 
sensor saw without compression or other processing applied to it.
 
Still don't know if you can get this from the android api.
 
if you are not printing images, megapixels don't matter. Quality wise, The 
bigger problem is the lens.
 

On Sunday, September 4, 2011 8:47:42 AM UTC-7, Appaholics wrote:

> Hi, 
>
> I have been going through Google searches and the Android docs but I am 
> still not clear on this. I would like to know if it is possible to get the 
> raw image data from the camera using the Android SDK. Some of the examples 
> I looked through said that it was possible but the image returned was 
> always a jpg or png.
>
> So can I get the raw image from the camera?
>
> Thanks
>
> -- 
> --
> Raghav Sood
> CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles 
> required to have complete control)
> http://www.raghavsood.com/
> https://market.android.com/developer?pub=Appaholics 
> http://www.appaholics.in/
>
>

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

[android-developers] Re: Question: Is it possible to get the RAW camera data?

2012-06-14 Thread DerekBez
Hi Appaholic,

Did you make any progress with getting the RAW version of photos from 
Android cameras?

I know there was a lot of talk about megapixels, but isn't a more pertinent 
reason to use RAW format is for the greater dynamic range?  JPGs, as we all 
know are only 8-bit, whereas DSLRs tend to be like 12- or 14-bit.  One can 
assume that mobile phone cameras are more than 8-bit, and thus useful data 
is thrown away during the conversion to JPG.

Also, correcting white balance properly can only be done from the RAW. 

Not sure about this, but the DNG format actually stores the raw image in 
TIFF format.  So maybe using a 16-bit TIFF wouldn't be a bad thing?  

You're on the right track - if cameras in phones and tablets were able to 
use the raw image for postprocessing, it would open up a whole new genre of 
photography.

Good luck

On Sunday, September 4, 2011 4:47:42 PM UTC+1, Appaholics wrote:
>
> Hi,
>
> I have been going through Google searches and the Android docs but I am 
> still not clear on this. I would like to know if it is possible to get the 
> raw image data from the camera using the Android SDK. Some of the examples 
> I looked through said that it was possible but the image returned was 
> always a jpg or png.
>
> So can I get the raw image from the camera?
>
> Thanks
>
> -- 
> --
> Raghav Sood
> CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles 
> required to have complete control)
> http://www.raghavsood.com/
> https://market.android.com/developer?pub=Appaholics
> http://www.appaholics.in/
>
>  

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

[android-developers] Re: Question regarding Keystore and Developer Console

2012-05-15 Thread Bertil Hansen


the Developer Console? 
>
> Is the only solution to change the package name and upload it as a 
> brand new application, leaving the old one forever as 'unpublished'? 
>
> Thank you very much in advance for your help.


On Saturday, April 28, 2012 5:46:24 PM UTC+2, TullyK wrote:
>
> I recently published an app to Google Play which I now want to update. 
> When I try to export the new apk from Eclipse it says 'Invalid 
> keystore format' It seems like my original apk file has overwritten 
> the keystore! Normally it puts .apk at the end of the file name but 
> this time it did not, and as I have the same name for the keystore and 
> the apk I fear the key store has been deleted, is this possible? 
>
> So now I can't update my app because if I use a new keystore it won't 
> let me upload it. So I tried making a completely new application on 
> the Developer Console but it obviously  doesn't let me have two 
> applications with the same package name. Having done a small amount of 
> research it seems impossible to delete my original applications from 
> the Developer Console? 
>
> Is the only solution to change the package name and upload it as a 
> brand new application, leaving the old one forever as 'unpublished'? 
>
> Thank you very much in advance for your help.


I made my first app using appsgeyser. Imagine my surprise when I made my 
own app in eclipse and tried to update. It was not possible without the 
original keystore :-( So I had to unpublish the original one and publish 
the new one, starting from scratch with dl's ratings and +1s. So I guess if 
you have truly lost the keystore you have to do the same...

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

2012-05-09 Thread Kristopher Micinski
I'm not sure to what this is in response... But no, this indicates
that your code was probably compiled (or translated to dex) badly..
what are you doing?

kris

On Wed, May 9, 2012 at 4:39 PM, satur9nine  wrote:
> I saw the same problem myself:
>
> 05-08 16:26:28.262 W/dalvikvm( 3519): VFY: bad register counts (ins=2049
> regs=2)
>
> No idea what could even cause this, does this indicate a bug in the Dalvik
> VM?
>
> Jacob
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Question about debugging on dalvikvm

2012-05-09 Thread satur9nine
I saw the same problem myself:

05-08 16:26:28.262 W/dalvikvm( 3519): VFY: bad register counts (ins=2049 
regs=2)

No idea what could even cause this, does this indicate a bug in the Dalvik 
VM?

Jacob

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: question about blending bitmaps (Porterduff? matrix?)

2012-04-13 Thread Jim Graham
Adding to the original question:  along with which is the best method
for results, add to that the need to minimize usage of memory.  I am,
of course, recycling all bitmaps one line after I'm finished with them
(there aren't many, but they are quite large).  I really want to give the
user the full resolution that their camera offers while still applying
the filters and other effects.

Also, should I, perhaps, have posted this in the android-for-beginners
group?


On Wed, Apr 11, 2012 at 03:24:40PM -0500, Jim Graham wrote:
> I'm looking for the best way to combine/blend two (or more) solid-color
> bitmap so the colors are combined.  The bitmaps have one color with an
> alpha value of 102 for solid color bitmaps, 102 and decreasing to 0 at
> about 48% of the bitmap's height (from either the top or bottom) for
> graduated color bitmaps, and for split-field, the same, except not a
> gradual change---just 102 then 0 at 50%.

Those alpha values may be wrong, btw.  I'm still doing some testing to
get the levels that match the "real thing" (film +  glass).

> By blending, what I mean is this:  Imagine that you have two sheets
> of colored plastic.  You look through one of them, and you see its
> color over the scene behind it.  You then add the second sheet of
> a different color clear plastic, and now you see the two colors
> interacting to make a new color.  That is what I'm trying to do.
> 
> In the case of graduated or split-field, the transparent area should
> not interfere with a second filter's color where it is colored in
> the transparent area of another.
> 
> Btw, all of these bitmaps are created as needed using
> Bitmap.createBitmap (ARGB_), paint, and drawing on the canvas.
> I was using 60x40 png files for the solid colors, but the transparent
> white background ended up not being so transparent  Now I just
> create larger bitmaps with NO background---just color (alpha 102) or
> completely transparent.
> 
> What would be the best way to do this?  If Porterduff, which mode?
> Or would some type of matrix calculation be better?  Or is there
> another way that I haven't come across yet?
> 
> (If the best way calls for a matrix, a pointer to a good matrix tutorial
> would be really helpful.)
> 
> Thanks,
>--jim
> 
> -- 
> THE SCORE:  ME:  2  CANCER:  0
> 73 DE N5IAL (/4)| DMR: So fsck was originally called
> spooky1...@gmail.com|  something else.
> < Running FreeBSD 7.0 > | Q:   What was it called?
> ICBM / Hurricane:   | DMR: Well, the second letter was different.
>30.44406N 86.59909W  |-- Dennis M. Ritchie, Usenix, June 1998.
> 
> Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| "My spell checker eloped with a wiccan
spooky1...@gmail.com| and I've not seen it since!"
< Running FreeBSD 7.0 > | 
ICBM / Hurricane:   |(from news.admin.net-abuse.email)
   30.44406N 86.59909W  | 

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] Re: Question About LatinIME/SoftKeyboard - anyone using it?

2012-03-22 Thread tsukishiro
You can modify the qwerty.xml keyboard xml file in the SoftKeyboard sample 
to suit your needs. As for dynamically changing the layout, you can either 
check the type of input field you are working with (for example, check if 
it requires only numbers) then display the appropriate keyboard by using 
the android:keyboardMode xml attribute of Keyboard.Row *OR *you can create 
separate keyboard xml files to suit your need. The latter is more tedious 
and will require you to do a lot of if-else if statements in your code when 
creating the keyboard.

On Friday, March 23, 2012 9:03:20 AM UTC+9, Mark Phillips wrote:
>
> I am working on a app that needs a fair amount of user input, both text 
> and numbers. The input paradigm has to be very fast - there is little time 
> to jump between several screens to complete the input before a new set of 
> data input has to be made. "Fast" may not the the right wordin this 
> scenario I find it distracting to move through several screens (popup 
> dialogs/selection boxes included) to finish this input set and then return 
> to making observations to collect the data that has to be input. I could 
> use selection boxes, but I would like to find something else more clever. 
> Why? The competition uses that input mode, and I find their input method to 
> be slow and painful (to me - ie distracting from the observing component of 
> this user application).
>
> The good news is the text is really just a small set of one, two, or three 
> letter codes plus 1-3 numbers. I was thinking of trying to make a small 
> keyboard that had the right codes and numbers to see if that input format 
> is faster and less distracting. I googled for android soft keyboard and 
> found references to the LatinIME and the sample SoftKeyboard in the sdk. 
> Most of the references I have found to these keyboards is translating them 
> into different languages. What I really need is a 4X4 grid (or maybe the 
> 3X6 number grid will work) of keys where I can change the labels on the 
> keys depending on the different input conditions. Is it possible to change 
> the layout and number of keys using these tools, or do I have to roll my 
> own from scratch using the SoftKeyboard as a starting point? 
>
> Would it be easier/simpler to use a grid layout and just put 16 buttons in 
> it? 
>
> Thanks for your thoughts! 
>
> Mark
>

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

2012-02-15 Thread QD
Thank you very much.  Where can I find the ADT version for Android
2.2?

QD


On Feb 14, 10:50 pm, nvlakshmi vakiti 
wrote:
> Hi,
>
> http://wing-linux.sourceforge.net/sdk/adt_download.html
>
> Older versions of the ADT at the following URLs.
>
> http://dl.google.com/android/ADT-0.9.5.zip
>
> http://dl.google.com/android/ADT-0.9.6.zip
>
> http://dl.google.com/android/ADT-0.9.7.zip
>
> http://dl.google.com/android/ADT-0.9.8.zip
>
> http://dl.google.com/android/ADT-0.9.9.zip
>
> http://dl.google.com/android/ADT-8.0.0.zip
>
> http://dl.google.com/android/ADT-8.0.1.zip
>
> You can use these in Eclipse by first downloading the desired ADT zip to
> your local drive, then choosing "Install New Software", "Add Site",
> "Archive".
> Thanks & Regards
> Lakshmi.V
>
>
>
>
>
>
>
> On Wed, Feb 15, 2012 at 7:23 AM, Qin Ding  wrote:
> > My company still uses the old version of Eclipse (3.4 and 3.5).  When I
> > tried to install ADT within Eclipse, it shows the latest ADT, which,
> > unfortunately, does not work with the older Eclipse.  I seemed unable to
> > find the old version of ADT to install.  Question: where does Google store
> > its old version of ADT to install?
>
> > Thank you.
>
> > QD
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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: question not getting posted

2011-12-22 Thread Steve Geller
nevermind

On Thu, Dec 22, 2011 at 10:51 AM, Steve Geller  wrote:
> Hello. I've posted a question about the new Nexus phone but it has not
> gotten posted. Can you explain why?
>
> Thanks.
>
> Steve

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

2011-12-20 Thread kalzenith
well that was a very well considered response, thanks.

you are probably right, undertaking a lockscreen right off the bat is
probably not a good idea. you see, the reason why i wanted to develop
one was so that i could make a passworded lockscreen, but the password
would have only been a backup. The primary unlock method would have
been whenever the application detects a specific RFID tag with NFC. i
monkeyed around with the intents in your widgetlocker app
(com.teslacoilsw.widgetlocker.UNLOCK) in an attempt to call that
intent from NFC task launcher, but i couldnt make the intent work, so
i figured i would just try to write my own, lol.

1. thanks, i will make learning how to run services my next task

2.yes, i meant my own activity, moveTaskToBack() will probably work
perfectly.

On Dec 18, 3:30 pm, Kevin TeslaCoil Software 
wrote:
> > But does this mean that you guys are opposed to well known apps
> > such as WidgetLocker, or Lockscreen Agenda?
>
> Well I'm the developer of WidgetLocker, so I'm not opposed to it at
> all :P. But this list is about developing apps that following the
> documentation, guidelines and restrictions of the SDK. WidgetLocker
> does not. I know it's hypocritical but I recommend other app devs,
> especially ones just starting, follow the SDK.  It's safer and easier,
> and (mostly) protects you from fragmentation (I test against ~20
> devices. I still need more). As you noticed, this list isn't very
> helpful if you chose to ignore the SDK rules. I imagine most devs that
> do, including myself, don't discuss it much. If you choose to ignore
> them, you're on your own.
>
> > I wish to make an app that
> > acts as a lockscreen. it would disable the home button, disable the
> > back button, and then it would dismiss itself upon a successful entry
> > of a password.
>
> Implementing security in an app, rather than at the system level, is a
> huge task and well beyond the scope of this list. There isn't even
> anyone to discuss it with, as it has not been done. Find an app that
> implements "security" (Note: WidgetLocker does not. There is good
> reason.) and if you can't bypassing it in less than 5 minutes, you
> aren't trying hard enough. Android is designed to disallow apps from
> blocking other apps.
>
> Even ignoring the Home and recent apps buttons, what about an incoming
> call? Or a phone reboot? Or a SMS popup? Or any notification in the
> notification bar for that matter? Or a malicious app? Or a task
> killer? Or the system task killer? Or out of memory? Or a bug causing
> a force close? It certainly is possible to display a screen that
> prompts for a password and when the password is enter the screen
> disappears. But implementing it in a manner that is more than just a
> false sense of security is very different. I theorize that with root
> and/or a device admin and a slightly-to-incredibly awkward user
> experience it's possible, but even if that's true it's a lot of work
> and a lot of testing and I guarantee you'd run into "fragmentation"
> issues of trying to support Sense vs Blur vs TouchWiz vs Stock. A
> custom rom, rather than an app, definitely could do this, but again
> this list is not the place to discuss that (There's a firmware
> building/modifying list for that kind of thing).
>
> > 1. how do i make an application launch when the screen is activated?
>
> ACTION_SCREEN_OFF and ACTION_SCREEN_ON broadcasts. You'll need a
> service running to receive them (not a manifest receiver). Also note
> that no app can start within 5 seconds of the Home button being
> pressed, so Home, screen off, screen on, and you're delayed.
>
> > 2. what method does one call to dismiss an application? (for example,
> > when a password is entered successfully)
>
> Your own activity you mean? finish() or moveTaskToBack().

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

2011-12-18 Thread Kevin TeslaCoil Software
> But does this mean that you guys are opposed to well known apps
> such as WidgetLocker, or Lockscreen Agenda?

Well I'm the developer of WidgetLocker, so I'm not opposed to it at
all :P. But this list is about developing apps that following the
documentation, guidelines and restrictions of the SDK. WidgetLocker
does not. I know it's hypocritical but I recommend other app devs,
especially ones just starting, follow the SDK.  It's safer and easier,
and (mostly) protects you from fragmentation (I test against ~20
devices. I still need more). As you noticed, this list isn't very
helpful if you chose to ignore the SDK rules. I imagine most devs that
do, including myself, don't discuss it much. If you choose to ignore
them, you're on your own.

> I wish to make an app that
> acts as a lockscreen. it would disable the home button, disable the
> back button, and then it would dismiss itself upon a successful entry
> of a password.

Implementing security in an app, rather than at the system level, is a
huge task and well beyond the scope of this list. There isn't even
anyone to discuss it with, as it has not been done. Find an app that
implements "security" (Note: WidgetLocker does not. There is good
reason.) and if you can't bypassing it in less than 5 minutes, you
aren't trying hard enough. Android is designed to disallow apps from
blocking other apps.

Even ignoring the Home and recent apps buttons, what about an incoming
call? Or a phone reboot? Or a SMS popup? Or any notification in the
notification bar for that matter? Or a malicious app? Or a task
killer? Or the system task killer? Or out of memory? Or a bug causing
a force close? It certainly is possible to display a screen that
prompts for a password and when the password is enter the screen
disappears. But implementing it in a manner that is more than just a
false sense of security is very different. I theorize that with root
and/or a device admin and a slightly-to-incredibly awkward user
experience it's possible, but even if that's true it's a lot of work
and a lot of testing and I guarantee you'd run into "fragmentation"
issues of trying to support Sense vs Blur vs TouchWiz vs Stock. A
custom rom, rather than an app, definitely could do this, but again
this list is not the place to discuss that (There's a firmware
building/modifying list for that kind of thing).

> 1. how do i make an application launch when the screen is activated?

ACTION_SCREEN_OFF and ACTION_SCREEN_ON broadcasts. You'll need a
service running to receive them (not a manifest receiver). Also note
that no app can start within 5 seconds of the Home button being
pressed, so Home, screen off, screen on, and you're delayed.


> 2. what method does one call to dismiss an application? (for example,
> when a password is entered successfully)

Your own activity you mean? finish() or moveTaskToBack().

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

2011-10-05 Thread lbendlin
http://www.sqlite.org/faq.html#q18

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

2011-10-05 Thread Doug
Read the javadocs for SQLiteDatabase.  Apparently you need to do
something special for localization/collation, but they don't really
help you out that much.  Maybe it's time to google an answer to get
your database queries to localize properly.

Doug

On Oct 4, 4:41 am, Jairo de Almeida  wrote:
> Hi group.
> I'm developing a android aplication using version 2.2
> I have a question about the encode data in sqlite.
> In my data has accented characters and when i make sql statement with order
> by from column the accented characters are listed  incorrectly. last index
> of cursor, for example,
> A, B, Á
> when would be correct to list.
> A, Á, B
> There is no list A, Á, B in sqlite statement select, my sqlite are encoding
> in utf-16.
> Thanks.
> Jairo

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

2011-10-04 Thread Zsolt Vasvari
Does this sorting work in the Contacts application?

I've had the same issue when I tried to support Chinese sorting.  I
ended up copying some code out of the Contacts app.

On Oct 4, 7:41 pm, Jairo de Almeida  wrote:
> Hi group.
> I'm developing a android aplication using version 2.2
> I have a question about the encode data in sqlite.
> In my data has accented characters and when i make sql statement with order
> by from column the accented characters are listed  incorrectly. last index
> of cursor, for example,
> A, B, Á
> when would be correct to list.
> A, Á, B
> There is no list A, Á, B in sqlite statement select, my sqlite are encoding
> in utf-16.
> Thanks.
> Jairo

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

2011-09-22 Thread shaman virk
i had integrated facebook a little and for you following links will help
alot.

https://developers.facebook.com/docs/guides/mobile/#android

http://www.helloandroid.com/tutorials/using-facebook-sdk-android-development-part-1

http://ericosgood.com/prog/facebook-android-sdk-tutorial/

develop facebook android tutorial start
http://www.google.com.pk/search?sourceid=chrome&ie=UTF-8&q=develop+facebook+android+tutorial+start

http://www.android10.org/index.php/articleslibraries/290-facebook-integration-in-your-android-application

http://www.mobisoftinfotech.com/blog/android/845/#comments

http://www.helloandroid.com/tutorials/using-facebook-sdk-android-development-part-1#comment-37604

http://www.android10.org/index.php/articleslibraries/290-facebook-integration-in-your-android-application#CommentForm

http://stackoverflow.com/questions/4848067/login-failed-invalid-key-error-with-facebook-sdk

https://developers.facebook.com/docs/reference/api/

https://developers.facebook.com/docs/reference/api/permissions/

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

2011-09-22 Thread Kyle
Yes, its quite easy to do both.  Check out the Facebook and Twitter API 
documentation (I have done Facebook before, not Twitter yet).

On Tuesday, September 20, 2011 10:58:22 AM UTC+4:30, Randy wrote:
>
> I am developing an application for a local LAN Gaming company who uses 
> Twitter/Facebook to send out most of their new updates and 
> developments.  I am new to integrating Facebook/Twitter and wondering 
> if the following is possible: 
>
> 1)  Allow my application to provide a list of recent updates to a 
> Facebook Group and follow Tweets in a similar fashion? 
>
> 2)  Provide buttons that are direct links to the Facebook Group and 
> Twitter Page. 
>
>
> - Randy

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Question: Is it possible to get the RAW camera data?

2011-09-05 Thread Zsolt Vasvari
A phone is not a DSLR camera, so the likelihood that the sensor data
(RAW) is even saved is 0%.   Obviously, it exists, but probably at the
silicon level is turned into a standard format.



On Sep 5, 3:55 pm, Appaholics  wrote:
> Thanks everyone but I am not aiming for a TIFF. A TIFF, while close to raw
> is still very processed by the camera. I am aiming for a direct, absolutely
> RAW image (or the closest I can get to it without extending the firmware).
>
> I know that I would get best results with a proper camera but there is no
> harm in trying to get RAW out of a 'Droid right?
>
> Thanks
>
>
>
>
>
> On Mon, Sep 5, 2011 at 9:08 AM, gjs  wrote:
> > Hi,
>
> > There is suitable call to get the RAW camera image data ( ie the photo
> > data not the camera preview image data ) however in my experience with
> > several devices, so far that raw data is always null so you can in
> > fact only get the JPEG image data.
>
> > See
> >http://developer.android.com/reference/android/hardware/Camera.html#t...
> > ,
> > android.hardware.Camera.PictureCallback,
> > android.hardware.Camera.PictureCallback,
> > android.hardware.Camera.PictureCallback)
>
> > I too have 8MP Cameras on 3 different Android phones, they are quite
> > common. Also TIFF is not RAW per se, TIFF is just another 'image
> > container'http://en.wikipedia.org/wiki/Tagged_Image_File_Format
>
> > Regards
>
> > On Sep 5, 6:20 am, Jim Graham  wrote:
> > > On Sun, Sep 04, 2011 at 03:41:28PM -0400, Mark Murphy wrote:
> > > > On Sun, Sep 4, 2011 at 3:07 PM, Jim Graham 
> > wrote:
> > > > > HOWEVER, the digital cameras that I've seen on Android devices have
> > all
> > > > > been in the 2 to 3 MP range.
>
> > > > Within about 18 inches of me I have a phone with a 5-megapixel camera,
> > > > a phone with a 13(!)-megapixel camera, and a tablet with a 5-megapixel
> > > > camera. The 5-megapixel devices are fairly conventional; the
> > > > 13-megapixel one is a bit special. Not to mention crazy expensive.
>
> > > > There are Android phones with low-resolution cameras, but many people
> > > > will have phones with better cameras.
>
> > > Oh, ok.  I wasn't aware of any of these.  I only knew what I've seen
> > > in muine and in adverts for others.  Thanks for the update.  But, fwiw,
> > > even a 5 MP is only in the medium range (as is my 4 MP Nikon).  You can
> > > definitely get some high quality images, as long as you don't try to
> > > enlarge them too much (my 4 MP Nikon is good to about 20x16, MAYBE up to
> > > 24x16...after that, it's pixelated ... and that assumes direct to TIFF
> > > photos, not JPEG).
>
> > > 13 MP is certainly getting into the higher end.  If I remember correctly,
> > > one of the newest Nikon DSLRs is only up to about 16 or 18 MP (and I
> > > really want that one, but it'd take a few years of Ramen noodles for
> > > every meal, and not spending a penny beyond that and bills, just to get
> > > close to being able to buy one).
>
> > > Btw, I just got an Archos 101 Internet tablet, courtesy of a friend from
> > > college (to keep me from getting bored, and thus lowering my morale,
> > > while in the hospital starting in just over a week...when dealing
> > > with cancer, low morale can be lethal) and its camera is amazingly BAD.
> > > We're talking HORRIBLE!  It MIGHT be as good as 0.5 MP (aka 500 kP)or
> > > maybe not.  But then, the only reason that matters is that it might not
> > > work for scanning barcodes for apps  I wouldn't use it for real
> > > photography either way (the next set I do will use Ektar 100 Pro film).
>
> > > > Note that I'm not quibbling about anything with your post, other than
> > > > the prevalence of better-megapixel devices.
>
> > > And that's how I read it...just pointing out that they exist.  :-)
>
> > > Later,
> > >    --jim
>
> > > --
> > > 73 DE N5IAL (/4)        | "Now what *you* need is a proper pint of
> > > spooky1...@gmail.com    | porter poured in a proper pewter porter
> > > < Running FreeBSD 7.0 > | pot.."
> > > ICBM / Hurricane:       |    --Peter Dalgaard in alt.sysadmin.recovery
> > >    30.44406N 86.59909W  |
>
> > > Android Apps Listing athttp://www.jstrack.org/barcodes.html
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> --
> Raghav Sood
> CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
> required to have complete 
> control)http://www.raghavsood.com/https://market.android.com/developer?pub=Appaholicshttp://www.appaholics.in/-
>  Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this g

Re: [android-developers] Re: Question: Is it possible to get the RAW camera data?

2011-09-05 Thread Appaholics
Thanks everyone but I am not aiming for a TIFF. A TIFF, while close to raw
is still very processed by the camera. I am aiming for a direct, absolutely
RAW image (or the closest I can get to it without extending the firmware).

I know that I would get best results with a proper camera but there is no
harm in trying to get RAW out of a 'Droid right?

Thanks

On Mon, Sep 5, 2011 at 9:08 AM, gjs  wrote:

> Hi,
>
> There is suitable call to get the RAW camera image data ( ie the photo
> data not the camera preview image data ) however in my experience with
> several devices, so far that raw data is always null so you can in
> fact only get the JPEG image data.
>
> See
> http://developer.android.com/reference/android/hardware/Camera.html#takePicture(android.hardware.Camera.ShutterCallback
> ,
> android.hardware.Camera.PictureCallback,
> android.hardware.Camera.PictureCallback,
> android.hardware.Camera.PictureCallback)
>
> I too have 8MP Cameras on 3 different Android phones, they are quite
> common. Also TIFF is not RAW per se, TIFF is just another 'image
> container' http://en.wikipedia.org/wiki/Tagged_Image_File_Format
>
> Regards
>
> On Sep 5, 6:20 am, Jim Graham  wrote:
> > On Sun, Sep 04, 2011 at 03:41:28PM -0400, Mark Murphy wrote:
> > > On Sun, Sep 4, 2011 at 3:07 PM, Jim Graham 
> wrote:
> > > > HOWEVER, the digital cameras that I've seen on Android devices have
> all
> > > > been in the 2 to 3 MP range.
> >
> > > Within about 18 inches of me I have a phone with a 5-megapixel camera,
> > > a phone with a 13(!)-megapixel camera, and a tablet with a 5-megapixel
> > > camera. The 5-megapixel devices are fairly conventional; the
> > > 13-megapixel one is a bit special. Not to mention crazy expensive.
> >
> > > There are Android phones with low-resolution cameras, but many people
> > > will have phones with better cameras.
> >
> > Oh, ok.  I wasn't aware of any of these.  I only knew what I've seen
> > in muine and in adverts for others.  Thanks for the update.  But, fwiw,
> > even a 5 MP is only in the medium range (as is my 4 MP Nikon).  You can
> > definitely get some high quality images, as long as you don't try to
> > enlarge them too much (my 4 MP Nikon is good to about 20x16, MAYBE up to
> > 24x16...after that, it's pixelated ... and that assumes direct to TIFF
> > photos, not JPEG).
> >
> > 13 MP is certainly getting into the higher end.  If I remember correctly,
> > one of the newest Nikon DSLRs is only up to about 16 or 18 MP (and I
> > really want that one, but it'd take a few years of Ramen noodles for
> > every meal, and not spending a penny beyond that and bills, just to get
> > close to being able to buy one).
> >
> > Btw, I just got an Archos 101 Internet tablet, courtesy of a friend from
> > college (to keep me from getting bored, and thus lowering my morale,
> > while in the hospital starting in just over a week...when dealing
> > with cancer, low morale can be lethal) and its camera is amazingly BAD.
> > We're talking HORRIBLE!  It MIGHT be as good as 0.5 MP (aka 500 kP)or
> > maybe not.  But then, the only reason that matters is that it might not
> > work for scanning barcodes for apps  I wouldn't use it for real
> > photography either way (the next set I do will use Ektar 100 Pro film).
> >
> > > Note that I'm not quibbling about anything with your post, other than
> > > the prevalence of better-megapixel devices.
> >
> > And that's how I read it...just pointing out that they exist.  :-)
> >
> > Later,
> >--jim
> >
> > --
> > 73 DE N5IAL (/4)| "Now what *you* need is a proper pint of
> > spooky1...@gmail.com| porter poured in a proper pewter porter
> > < Running FreeBSD 7.0 > | pot.."
> > ICBM / Hurricane:   |--Peter Dalgaard in alt.sysadmin.recovery
> >30.44406N 86.59909W  |
> >
> > Android Apps Listing athttp://www.jstrack.org/barcodes.html
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

[android-developers] Re: Question: Is it possible to get the RAW camera data?

2011-09-04 Thread gjs
Hi,

There is suitable call to get the RAW camera image data ( ie the photo
data not the camera preview image data ) however in my experience with
several devices, so far that raw data is always null so you can in
fact only get the JPEG image data.

See 
http://developer.android.com/reference/android/hardware/Camera.html#takePicture(android.hardware.Camera.ShutterCallback,
android.hardware.Camera.PictureCallback,
android.hardware.Camera.PictureCallback,
android.hardware.Camera.PictureCallback)

I too have 8MP Cameras on 3 different Android phones, they are quite
common. Also TIFF is not RAW per se, TIFF is just another 'image
container' http://en.wikipedia.org/wiki/Tagged_Image_File_Format

Regards

On Sep 5, 6:20 am, Jim Graham  wrote:
> On Sun, Sep 04, 2011 at 03:41:28PM -0400, Mark Murphy wrote:
> > On Sun, Sep 4, 2011 at 3:07 PM, Jim Graham  wrote:
> > > HOWEVER, the digital cameras that I've seen on Android devices have all
> > > been in the 2 to 3 MP range.
>
> > Within about 18 inches of me I have a phone with a 5-megapixel camera,
> > a phone with a 13(!)-megapixel camera, and a tablet with a 5-megapixel
> > camera. The 5-megapixel devices are fairly conventional; the
> > 13-megapixel one is a bit special. Not to mention crazy expensive.
>
> > There are Android phones with low-resolution cameras, but many people
> > will have phones with better cameras.
>
> Oh, ok.  I wasn't aware of any of these.  I only knew what I've seen
> in muine and in adverts for others.  Thanks for the update.  But, fwiw,
> even a 5 MP is only in the medium range (as is my 4 MP Nikon).  You can
> definitely get some high quality images, as long as you don't try to
> enlarge them too much (my 4 MP Nikon is good to about 20x16, MAYBE up to
> 24x16...after that, it's pixelated ... and that assumes direct to TIFF
> photos, not JPEG).
>
> 13 MP is certainly getting into the higher end.  If I remember correctly,
> one of the newest Nikon DSLRs is only up to about 16 or 18 MP (and I
> really want that one, but it'd take a few years of Ramen noodles for
> every meal, and not spending a penny beyond that and bills, just to get
> close to being able to buy one).
>
> Btw, I just got an Archos 101 Internet tablet, courtesy of a friend from
> college (to keep me from getting bored, and thus lowering my morale,
> while in the hospital starting in just over a week...when dealing
> with cancer, low morale can be lethal) and its camera is amazingly BAD.
> We're talking HORRIBLE!  It MIGHT be as good as 0.5 MP (aka 500 kP)or
> maybe not.  But then, the only reason that matters is that it might not
> work for scanning barcodes for apps  I wouldn't use it for real
> photography either way (the next set I do will use Ektar 100 Pro film).
>
> > Note that I'm not quibbling about anything with your post, other than
> > the prevalence of better-megapixel devices.
>
> And that's how I read it...just pointing out that they exist.  :-)
>
> Later,
>    --jim
>
> --
> 73 DE N5IAL (/4)        | "Now what *you* need is a proper pint of
> spooky1...@gmail.com    | porter poured in a proper pewter porter
> < Running FreeBSD 7.0 > | pot.."
> ICBM / Hurricane:       |    --Peter Dalgaard in alt.sysadmin.recovery
>    30.44406N 86.59909W  |
>
> Android Apps Listing athttp://www.jstrack.org/barcodes.html

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


[android-developers] Re: Question around Bitmap loading

2011-09-02 Thread blew
So this is telling me all the "extra" memory that's being used up.
Any idea why it's labeled as  in the error message?
Doesn't seem to me to be very relevant.

Thanks for the answer, I'll keep that in mind.

On Aug 27, 9:38 pm, Streets Of Boston  wrote:
> Because the rest of your app is using memory as well.
> And you'd need 10 blocks of 1.5MBytes of *contiguous *memory.
> This may not be possible --> Out of memory error.

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


[android-developers] Re: Question around Bitmap loading

2011-08-27 Thread Streets Of Boston
Because the rest of your app is using memory as well.
And you'd need 10 blocks of 1.5MBytes of *contiguous *memory.
This may not be possible --> Out of memory error.

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

[android-developers] Re: Question about Button

2011-08-22 Thread Drezden
You can create a selector xml file and place resource references for
all the different states within it, then use the selector.xml file as
your button background.  Here is a push-button example


http://schemas.android.com/apk/res/android";>




There are many more button states available, look it up in the docs.

On Aug 22, 6:58 am, Ash  wrote:
> Hi All,
>
> Wondering if anyone can advice me on the following. I wish to create a
> button which will allow me to have:
> 1. a color when the button is disabled
> 2. a color when the button is enabled but idle
> 3. a color when the button is enabled and pressed
> 4. a border which will change color upon some external activity.
>
> After reading this tutorial 
> (http://blog.androgames.net/40/custom-button-style-and-theme/) I have to able
> to achieve steps 1-3. However, I am struggling to achieve step 4. Also note
> that step 4 will need to happen programmatically as my application
> implements a 3rd party observer which notifies me when a task is active.
>
> Can someone please guide me on how to achieve step 4. Ideally I would like
> to use the shape that is described in the above link with a border which I
> can control via my code? Please advice.
>
> Thanks.

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


Re: [android-developers] Re: question about other markets

2011-08-08 Thread Chrystian Vieyra
Amazon is waiving the $99 program fee for developer's first year of the 
program. 

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

2011-08-08 Thread Jim Graham
On Mon, Aug 08, 2011 at 02:50:38AM -0700, Yahel wrote:

> Sorry, don't want to be harsh or anything so please take the following
> as constructive criticism.

Ok.

> More markets won't help your apps. The Android Market is like Goliath

Yeah, that's about what I'd guessed.  I was, however, hoping.  And
Amazon is out...that $99 yearly sign-up fee is way beyond my ability to
handle.

> The target audience for your app seems extremely limited, maybe
> chemists that work in the carbon field and love their job so much that
> they find buckies fun to watch on their leisure time.

Gee, I thought it just looked cool.  I'd figured that those interested in
the background info would read it, others wouldn't.  That's why I wanted
the good screenshots and added the video.

> Beside, I can tell you know how to code and do it well, but you are
> lacking, just as I do and many of us engineers do : Graphical, art
> skills. That is just not our thing.

That is definitely true.  Ask me to draw a schematic for a circuit, no
problem.  Ask me to draw other stuff...problem.

> People will download an app even if it's not close to their taste if
> the screenshots and the video give them the Wow effect !!

Again, that's what I tried to do.  I gather I didn't do so well?
What do I need to do to improve on it?  Can I use DDMS to get a
better video screen capture (i.e., full motion) so I don't get
stuck with the limitations of my 11-year-old Nikon digital (no
macro lens capability, so close-ups are fuzzy, limited duration,
24 seconds, etc.)?  My guess is that there is a way, but I don't
know where it is  Or, perhaps there's another utility in the
SDK that can do that?  That would be great!

> Since it is obvious you don't mind hard work, instead of putting said
> hard work in publishing on other markets, here is what I would do to
> boost your profit on Android :

> - Make a game : Interactivity with our phones is key. It is the second
> category of the market that has the most downloads

I'm still learning...keep that in mind.  As I do new apps, I learn more,
and get closer to doing a game or other larger app.  What kind of game or
other app, I don't knowbut that's another story (ideas...not easy to
come by).

Perhaps I should remove all of the tech stuff from the Bouncing Buckies
market page (particularly since half of the objects bouncing around no
longer even remotely resemble a buckyball)?  Maybe just say soccer balls
(footballs for everyone outside of the US)?  Or maybe, not even get
that specific?  Yeah, I've got an idea for that right now.  Check it out
now...see if you like the new description more.

Now, here's the tough part:  where is it listed?  Can people find it in
the new paid apps page?  Or did the google market folks really do us in
the backside like people are saying, by totally changing (as opposed to
renaming, as they told me they'd done) the "Just In" category?

> - Make a very useful app : Something that you would use on a daily
> basis yourself

Everything in that category is already out there with lots of great
apps...that, or we're back to the niche market.  And my remaining
ideas (at present) are not in the niche areas, so maybe there's still
hopeor not.  I don't really know.

> - Find a friend(kid at the local school ?)

I don't exactly hang around the high schools these days (I'd probably
get arrested by someone thinking I'm some sort of perv)and I don't
know anyone at our local (former) community college (who just upgraded
to a "college" (still only 2 years, I think).  And all of my friends from
my intel days are either PCSd or out (and moved back to their home
states).  My friends these days (all from our local homebrew club)
draw about as "well" as I do

> That's just my two cents. Feel free to disagree :)

No, I understand these limitations, I just don't have the access right
now to do much about them.  My budget is near (and often below) zero.
I am not a software engineer...I am a network engineer / intelligence
systems analyst.  Or I WAS, before cancer knocked me right out of the
job market.  Now I have to work within my limitations (physical, mental,
financial, programming skills that are just beginning to include Java,
and so on) and try to do the best that I can within those limits (as I
attempt to expand them where I can).

> Take care and good luck with your android endeavours :D

Thanks.

Later,
   --jim

-- 
73 DE N5IAL (/4)MiSTie #49997  < Running FreeBSD 7.0 >
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

   My policy on spammers:
  "Castrate first, ask questions later."

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

[android-developers] Re: question about other markets

2011-08-08 Thread Yahel
Hey Jim,

Sorry, don't want to be harsh or anything so please take the following
as constructive criticism.

More markets won't help your apps. The Android Market is like Goliath
and even Amazon looks like David. Others are just ant-sized compared
to the official market.
So if your app doen't perform at all on the Android Market(No
download, no paid install), the problem is not exposure but your app.
Google announced 600 000 new Android phone are activated per DAY !!
That's a lot of exposure !!

I've checked the page of your Bouncing buckies app on the market.

The target audience for your app seems extremely limited, maybe
chemists that work in the carbon field and love their job so much that
they find buckies fun to watch on their leisure time.
Beside, I can tell you know how to code and do it well, but you are
lacking, just as I do and many of us engineers do : Graphical, art
skills. That is just not our thing.
People will download an app even if it's not close to their taste if
the screenshots and the video give them the Wow effect !!

Since it is obvious you don't mind hard work, instead of putting said
hard work in publishing on other markets, here is what I would do to
boost your profit on Android :
- Drop ultra-niche audience : Android phones and tables are a huge
thing among 18-45 males, half the audience is from the US, half from
the rest of the world
- Make a game : Interactivity with our phones is key. It is the second
category of the market that has the most downloads
- Make a very useful app : Something that you would use on a daily
basis yourself
- Find a friend(kid at the local school ?) that can draw. Like really
draw and have him/her photoshop all the artwork for you, you'll pay
them in pizza or something. Then make your game/app/livewallpaper with
it and respect the artwork as truly as possible.

That's just my two cents. Feel free to disagree :)

Take care and good luck with your android endeavours :D

Yahel



On 8 août, 05:17, Jim Graham  wrote:
> On Sun, Aug 07, 2011 at 07:53:31PM -0700, Chrystian Vieyra wrote:
> > I think the only other big market is amazon app store. I am not a big fan of
> > amazon app store, as amazon gets to set the app price
>
> Ok, then ... three questions:
>
>    1) do I get to set a minimum price?
>    2) how much of [price] do they take?
>    3) do they have a sign-up fee and/or per-listing fee (as I've heard
>       Apple does---I read a comment that they charge $100/app uploaded
>       to their market...don't know if it's true or not)?
>
> I'm sitting here looking at a Market that has failed to list Bouncing
> Buckies in the new apps list, and [GASP! SURPRISE] only one (known)
> paid install...and that one probably came from my listing in the
> Android Forums new app announcements page  I made some changes to
> all of the pages for it today (added a YouTube video), but still have
> yet to see anything ... but, because of a known bug, there could be
> another one, or another hundred or more, or . who knows, and from
> what the bug listing says, it might be a while before I know about any
> of them (if any exist).  I'm getting really, really frustrated.  I don't
> even know whether I should work on and release another one, or wait
> I have the ideas, but.  (sorry...I'll stop the frustrated rant now)
>
> So I'm seriously considering additional listings on other markets
>
> Thanks,
>    --jim
>
> --
> 73 DE N5IAL (/4)            MiSTie #49997      < Running FreeBSD 7.0 >
> spooky1...@gmail.com                    ICBM/Hurr.: 30.44406N 86.59909W
>
>                My policy on spammers:
>                   "Castrate first, ask questions later."

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

2011-08-08 Thread William Ferguson
True. I hope I'm not going to regret using BugSense.
But I think its collation capability will more than make up for it.


On Aug 8, 4:22 pm, Nikolay Elenkov  wrote:
> On Mon, Aug 8, 2011 at 2:27 PM, William Ferguson
>
>  wrote:
> > I'd second TreKing's suggestion to use a separate bug reporting
> > mechanism.
>
> > ACRA handles the reporting mechanism well.
> > And you can have it deliver the reports to BugSense which seems to do
> > an excellent job of collating them.
>
> BugSense is quite nice, but unfortunately it loses (hides?) a lot of the
> environment info introduced in ACRA 4 (settings, shared prefs, dumpsys, etc.)

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

2011-08-07 Thread Nikolay Elenkov
On Mon, Aug 8, 2011 at 2:27 PM, William Ferguson
 wrote:
> I'd second TreKing's suggestion to use a separate bug reporting
> mechanism.
>
> ACRA handles the reporting mechanism well.
> And you can have it deliver the reports to BugSense which seems to do
> an excellent job of collating them.
>

BugSense is quite nice, but unfortunately it loses (hides?) a lot of the
environment info introduced in ACRA 4 (settings, shared prefs, dumpsys, etc.)

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

2011-08-07 Thread William Ferguson
I'd second TreKing's suggestion to use a separate bug reporting
mechanism.

ACRA handles the reporting mechanism well.
And you can have it deliver the reports to BugSense which seems to do
an excellent job of collating them.

Wililam


On Aug 8, 1:17 pm, Jim Graham  wrote:
> On Sun, Aug 07, 2011 at 07:53:31PM -0700, Chrystian Vieyra wrote:
> > I think the only other big market is amazon app store. I am not a big fan of
> > amazon app store, as amazon gets to set the app price
>
> Ok, then ... three questions:
>
>    1) do I get to set a minimum price?
>    2) how much of [price] do they take?
>    3) do they have a sign-up fee and/or per-listing fee (as I've heard
>       Apple does---I read a comment that they charge $100/app uploaded
>       to their market...don't know if it's true or not)?
>
> I'm sitting here looking at a Market that has failed to list Bouncing
> Buckies in the new apps list, and [GASP! SURPRISE] only one (known)
> paid install...and that one probably came from my listing in the
> Android Forums new app announcements page  I made some changes to
> all of the pages for it today (added a YouTube video), but still have
> yet to see anything ... but, because of a known bug, there could be
> another one, or another hundred or more, or . who knows, and from
> what the bug listing says, it might be a while before I know about any
> of them (if any exist).  I'm getting really, really frustrated.  I don't
> even know whether I should work on and release another one, or wait
> I have the ideas, but.  (sorry...I'll stop the frustrated rant now)
>
> So I'm seriously considering additional listings on other markets
>
> Thanks,
>    --jim
>
> --
> 73 DE N5IAL (/4)            MiSTie #49997      < Running FreeBSD 7.0 >
> spooky1...@gmail.com                    ICBM/Hurr.: 30.44406N 86.59909W
>
>                My policy on spammers:
>                   "Castrate first, ask questions later."

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

2011-08-07 Thread Jim Graham
On Sun, Aug 07, 2011 at 08:29:59PM -0700, Chrystian Vieyra wrote:
> https://developer.amazon.com/help/faq.html

That'll work ... thanks.

Later,
   --jim

-- 
73 DE N5IAL (/4)| "> There it was, right in the title bar:
spooky1...@gmail.com|  > Microsoft Operations POS."
< Running FreeBSD 7.0 > | 
ICBM / Hurricane:   | "Never before has a TLA been so appropriately
   30.44406N 86.59909W  |  mis-parsed." (alt.sysadmin.recovery)

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

2011-08-07 Thread Chrystian Vieyra
https://developer.amazon.com/help/faq.html

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


Re: [android-developers] Re: question about other markets

2011-08-07 Thread Jim Graham
On Sun, Aug 07, 2011 at 07:53:31PM -0700, Chrystian Vieyra wrote:

> I think the only other big market is amazon app store. I am not a big fan of 
> amazon app store, as amazon gets to set the app price

Ok, then ... three questions:

   1) do I get to set a minimum price?
   2) how much of [price] do they take?
   3) do they have a sign-up fee and/or per-listing fee (as I've heard
  Apple does---I read a comment that they charge $100/app uploaded
  to their market...don't know if it's true or not)?

I'm sitting here looking at a Market that has failed to list Bouncing
Buckies in the new apps list, and [GASP! SURPRISE] only one (known)
paid install...and that one probably came from my listing in the
Android Forums new app announcements page  I made some changes to
all of the pages for it today (added a YouTube video), but still have
yet to see anything ... but, because of a known bug, there could be
another one, or another hundred or more, or . who knows, and from
what the bug listing says, it might be a while before I know about any
of them (if any exist).  I'm getting really, really frustrated.  I don't
even know whether I should work on and release another one, or wait
I have the ideas, but.  (sorry...I'll stop the frustrated rant now)

So I'm seriously considering additional listings on other markets

Thanks,
   --jim

-- 
73 DE N5IAL (/4)MiSTie #49997  < Running FreeBSD 7.0 >
spooky1...@gmail.comICBM/Hurr.: 30.44406N 86.59909W

   My policy on spammers:
  "Castrate first, ask questions later."

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

2011-08-07 Thread TreKing
On Sun, Aug 7, 2011 at 9:53 PM, Chrystian Vieyra wrote:

> they take about two to three weeks to review the apps


In my experience it's been two to three *days*. Once I posted an update on
Sunday and it was approved Monday. YMMV.


> and they do not provide error reports


But they test your app and actually provide customer service. The Android
Market error reports are fairly useless anyway as they depend on users being
pro-active and provide no logs. You're best served with your own error
reporting mechanism (like ACRA) in either case.

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

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

[android-developers] Re: question about other markets

2011-08-07 Thread Chrystian Vieyra
I think the only other big market is amazon app store. I am not a big fan of 
amazon app store, as amazon gets to set the app price, they take about two 
to three weeks to review the apps and they do not provide error reports.

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

2011-07-09 Thread Doug
On Jul 7, 12:53 pm, jdarladimas  wrote:
> Do you happen to know what the negative vanues mean and what does each
> buffer element represent? Is it a specific audio frequency?

You should read up on PCM audio data to know what to do with it
(Google it).  At this point, it's no longer an Android issue because
PCM is used everywhere in the world of audio.

Doug

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

2011-07-07 Thread jdarladimas
Thank you niko for your quick response.

Do you happen to know what the negative vanues mean and what does each
buffer element represent? Is it a specific audio frequency?

On Jul 7, 8:04 pm, niko20  wrote:
> No, they should be real RAW 16bit PCM values. If you aren't getting
> values that make sense at just 16 bit shorts, then you have something
> else wrong in your code. Make sure you are not casting weird or
> anything like that.
>
> -niko
>
> On Jul 7, 12:53 pm, jdarladimas  wrote:
>
>
>
>
>
>
>
> > Hello Developers,
>
> > In an application that I am developing, I am using the AudioRecord
> > class to detect sounds from the microphone.
> > The minimum Buffer Size that I am allowed to use is 4096.
>
> > So, I get the values from the microphone buffer and put them in a
> > short[] array that has the same size as the microphone buffer.
> > The range of those values are from -2^15=-32768 up to 2^15,
> > which makes sense since I am using PCM_16_ENCODING and the size of a
> > short element is 16 bits.
>
> > When I test the app, I notice that it is quiet, the buffer values tend
> > to 0.
> > On the other hand, when there is noise, both the positive and the
> > negative buffer values tend to their maximum( 32768 and -32768
> > respectively).
> > My question is what those buffer values represent...
> > Are they quantization levels or something else?? Can anybody help me?
> > It is really important..
>
> > Thank you in advance

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


[android-developers] Re: Question about the values of the Audio Buffer

2011-07-07 Thread niko20
No, they should be real RAW 16bit PCM values. If you aren't getting
values that make sense at just 16 bit shorts, then you have something
else wrong in your code. Make sure you are not casting weird or
anything like that.

-niko

On Jul 7, 12:53 pm, jdarladimas  wrote:
> Hello Developers,
>
> In an application that I am developing, I am using the AudioRecord
> class to detect sounds from the microphone.
> The minimum Buffer Size that I am allowed to use is 4096.
>
> So, I get the values from the microphone buffer and put them in a
> short[] array that has the same size as the microphone buffer.
> The range of those values are from -2^15=-32768 up to 2^15,
> which makes sense since I am using PCM_16_ENCODING and the size of a
> short element is 16 bits.
>
> When I test the app, I notice that it is quiet, the buffer values tend
> to 0.
> On the other hand, when there is noise, both the positive and the
> negative buffer values tend to their maximum( 32768 and -32768
> respectively).
> My question is what those buffer values represent...
> Are they quantization levels or something else?? Can anybody help me?
> It is really important..
>
> Thank you in advance

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


[android-developers] Re: question about Snake game in sample code-- getting the snake tiles on to same coordinate plane as SnakeView

2011-06-11 Thread CresCoJeff
Yes, the 7,3 coordinates do refer to the snake's head tile bitmap (I
did not make it sensitive to touch events; 7,3 is merely the
coordinate set it starts off around)  and the 90,40 is from my touch
input on the view-- my question is how can I make the bitmaps that
compose the snake's head and body 'aware' of what coordinates on the
view's coordinate plane they overlap?  Also, and you probably will
need access to the sample code to answer this, how exactly do the
snake's update/draw functions work when it is essentially on its own
coordinate plane?  I would expect them to map to the view's coordinate
plane somewhere before rendering, but perhaps they don't need to and
the Android renderer can work with only relative coordinates?

On Jun 10, 2:30 am, rich friedel  wrote:
> I don't have access to the snake game code at the moment but if I had to 
> guess, I'd say that the (7, 3) coords are where the touchevent takes place on 
> the body part and (90, 40) refers to where the touchevent takes place in the 
> entire view.

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

2011-06-06 Thread Mark Murphy
On Mon, Jun 6, 2011 at 1:33 PM, Tushar  wrote:
> Actually I am writing the recovery command in /cache partition and
> calling reboot.

AFAICT, this has nothing to do with this list.

> By the time the phone prepares to reboot the Vending.apk erases the
> cache partition and when the phone reboots in recovery mode
> it doesn't find the command file in cache partition and it fails.

AFAICT, this has nothing to do with this list.

For questions about Android firmware, visit http://source.android.com.

-- 
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.6 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: Question regarding Vending.apk

2011-06-06 Thread Tushar
Mark,

Actually I am writing the recovery command in /cache partition and
calling reboot.
By the time the phone prepares to reboot the Vending.apk erases the
cache partition and when the phone reboots in recovery mode
it doesn't find the command file in cache partition and it fails.


On Jun 6, 7:17 pm, Mark Murphy  wrote:
> SDK applications should not be using the cache partition. Use
> getCacheDir(), please.
>
>
>
>
>
>
>
>
>
> On Mon, Jun 6, 2011 at 8:40 AM, Tushar  wrote:
> > On the latest release once the phone powers up I see that Vending.apk
> > erases the contents from /cache partition on receiving the intent
> > android.intent.action.SIM_STATE_CHANGED or
> > android.intent.action.LOCALE_CHANGED.
>
> > Is this change really needed ??.
>
> > Could someone from Google Android team comment on this change? I am
> > keen to know the intent of clearing the /cache partition since I am
> > working on a feature which requires writing some content into /cache
> > partition on phone power up after recieving the BOOT_COMPLETE intent.
> > With this new change my app doesn't work as the data written by my app
> > is lost.
>
> > Below is the information obtained from log..
>
> > ===06-06
> > 15:14:26.889 1442 1455 D vending : [11] 1.run(): Clearing cache in
> > response to android.intent.action.SIM_STATE_CHANGED
>
> > 06-06 15:14:31.084 1442 1531 D vending : [12] 1.run(): Clearing cache
> > in response to android.intent.action.LOCALE_CHANGED
>
> > ===
>
> > I also see that the RecoverySystem.java file erases the contents of /
> > cache partition on every boot up on receiving BOOT_COMPLETE intent.
>
> > Why is the same change needed in Vending.apk when the
> > RecoverySystem.java file already does the same??
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.6 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: question about the Application Licensing page

2011-05-13 Thread Spooky


On May 13, 8:35 am, Mark Murphy  wrote:
> On Fri, May 13, 2011 at 9:25 AM, Spooky  wrote:

> > Is "nonce" a typo?  Or is it a term that I'm not familiar with yet?
> > (serious question).
>
> http://en.wikipedia.org/wiki/Cryptographic_nonce

Ok, thanks  Got it ... basically the same concept as a one-time
password.
I just never heard it called that before.  :-)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Question about Android 2.2/2.3 and Hardware accelerated graphics

2011-05-06 Thread Videoguy
I looked at Romain's post. That gave me the impression that old
releases use software based 2d library calls (Skia calls).
The old posts in the android-porting newsgroups talk about libhgl.so
to integrate with OpenGL backend.
If 2.2/2.3 uses software based 2d/3d backend, what is GL backend used
for?

We have a set of applications that use 1280x720 sized frame buffer.
Typical drawing operations we use are
1) draw text with or without shadows
2) draw images with alpha
3) 2d animations like fade a view group or scale/fade an image, move
an area of view up or down etc.

Does 2.2/2.3 android use h/w accelerated primitives for these
operations?
Any kind of image manipulation is an expensive operation if done using
software based library.

What is the trick to make use of GPU for as much as possible without
building whole lot of special GUI controls yourself?

Thanks

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


[android-developers] Re: Question about Android 2.2/2.3 and Hardware accelerated graphics

2011-05-06 Thread Lance Nanek
> Does Android 2.2/2.3 use hardware accelerated graphics primitives for
> different view operations (draw, animations etc)?

The official blog post on support for this in 3.0 mentions hardware
acceleration does get used for windows composition in earlier
versions, at least:
http://android-developers.blogspot.com/2011/03/android-30-hardware-acceleration.html

--
Lance Nanek - Software Developer
http://neatocode.com | http://twitter.com/LanceNanek |
http://www.youtube.com/user/lnanek

On May 5, 4:49 pm, Videoguy  wrote:
> Hi
> Does Android 2.2/2.3 use hardware accelerated graphics primitives for
> different view operations (draw, animations etc)?
> Lets say the platform it runs on has GPU with OpenGL driver for it.
> Do graphics operations use it automatically?
> Or
> Does the developer have to use GLSurfaceView and other opengl calls if
> they want any kind of h/w acceleration?
>
> Please throw some light on this.
>
> Thanks

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


[android-developers] Re: Question about bug reports

2011-03-21 Thread Marcin Orlowski


On Feb 4, 12:12 pm, Marcin Orlowski  wrote:
> On 3 February 2011 23:01, String  wrote:
>
> > Yes, whoever posted "log.d() gets stripped at runtime" was wrong.
>
> Really?http://developer.android.com/reference/android/util/Log.html

For archiving purposes. Docs lie there. Whatever loggin is planted in
the app, it will be there unless *you* remove 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: Question Geolocalisation

2011-03-19 Thread lbendlin
localize another Android device?  you'll need to be a little more specific. 

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

2011-03-13 Thread Danny S.
That was really helpful!

Thanks a lot!
-Danny S.

On 13 Mrz., 19:20, TreKing  wrote:
> On Sun, Mar 13, 2011 at 12:56 PM, Danny S. 
> wrote:
>
> > An other and my last question is: if I have set the distance AND
> > time interval - must both conditions be true that onLocationChanged()
> > is called, or only one? (AND or OR?)
>
> http://groups.google.com/group/android-developers/browse_thread/threa...
>
> --- 
> --
> 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: Question about registering for location updates

2011-03-13 Thread TreKing
On Sun, Mar 13, 2011 at 12:56 PM, Danny S. wrote:

> An other and my last question is: if I have set the distance AND
> time interval - must both conditions be true that onLocationChanged()
> is called, or only one? (AND or OR?)
>

http://groups.google.com/group/android-developers/browse_thread/thread/6783f9d429510852/153019563e0a0ede

-
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: Question about registering for location updates

2011-03-13 Thread Danny S.
Thank you very much! I'll do this ;-)
An other and my last question is: if I have set the distance AND time
interval - must both conditions be true that onLocationChanged() is
called, or only one? (AND or OR?)

Thanks a lot!
-Danny

On 13 Mrz., 13:16, lbendlin  wrote:
> You have to unregister. Otherwise you end up with multiple listeners
> for the same provider.
>
> On Mar 12, 4:05 pm, "DannyS."  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I have to register my locationListener for location updates using the
> > LocationManager. Now the user have the change to set values in the
> > preferences that should set for gestitration.
>
> >                 mLocationManager.requestLocationUpdates(GPS_PROVIDER,
> > PreferenceHelper.getLocationFixInterval(mPrefs),
> > PreferenceHelper.getLocationFixDistance(mPrefs), locationListener);
> >                 mLocationManager.requestLocationUpdates(NETWORK_PROVIDER,
> > PreferenceHelper.getLocationFixInterval(mPrefs),
> > PreferenceHelper.getLocationFixDistance(mPrefs), locationListener);
>
> > If the preferences for the fix distance or fix interval changes, I
> > need to call requestLocationUpdates again with the new values. Do I
> > have to unregister from the listener first or is it overridden by the
> > new request call?
>
> > Thanks a lot!
> > -Danny

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

2011-03-13 Thread lbendlin
You have to unregister. Otherwise you end up with multiple listeners
for the same provider.

On Mar 12, 4:05 pm, "Danny S."  wrote:
> Hi,
>
> I have to register my locationListener for location updates using the
> LocationManager. Now the user have the change to set values in the
> preferences that should set for gestitration.
>
>                 mLocationManager.requestLocationUpdates(GPS_PROVIDER,
> PreferenceHelper.getLocationFixInterval(mPrefs),
> PreferenceHelper.getLocationFixDistance(mPrefs), locationListener);
>                 mLocationManager.requestLocationUpdates(NETWORK_PROVIDER,
> PreferenceHelper.getLocationFixInterval(mPrefs),
> PreferenceHelper.getLocationFixDistance(mPrefs), locationListener);
>
> If the preferences for the fix distance or fix interval changes, I
> need to call requestLocationUpdates again with the new values. Do I
> have to unregister from the listener first or is it overridden by the
> new request call?
>
> Thanks a lot!
> -Danny

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Question about intent filters for NFC tags (tech)

2011-02-28 Thread Nick Pelly
I followed up with Dave off-thread, he is using the emulator with his own
custom code to mock NFC Tag dispatch, which is why he was seeing the 
tag requirement. This is not a real requirement. You can't simulate NFC tag
dispatch on the emulator right now, you just have to go buy a Nexus S.

Nick

On Mon, Feb 28, 2011 at 12:38 PM, davemac  wrote:

> Any update on the  question answer please?
>
> - dave
>
> On Feb 24, 5:36 pm, Nick Pelly  wrote:
> > On Wed, Feb 23, 2011 at 7:26 PM, davemac  wrote:
> > > I hate to seem like a nag on this topic, but I've got some more
> > > concerns about the documentation, and your answer. Let's consider an
> > > example as described in the reference page for NfcAdapter, which seems
> > > to be more correct than the DevGuide for NFC:
> >
> > >  
> > >  
> > > 
> > > android.nfc.tech.NfcF
> > > 
> >
> > > 
> >
> > > 
> > >  
> > > android.nfc.tech.NfcA
> > >  android.nfc.tech.MifareClassic
> > > android.nfc.tech.Ndef
> > > 
> > >  
> >
> > > If I have a tag that enumerates NfcA and MifareClassic but does not
> > > enumerate Ndef, I'm assuming that this activity would not receive that
> > > NFC tech intent. Correct?
> >
> > Correct. The tag is neither NfcF OR (NfcA AND MifareClassic AND Ndef)
> >
> > > None of the intent-filter's tech-list sets
> > > is a subset of
> > > Tag.getTechList().
> >
> > > If I have a tag that enumerates NfcF and Ndef, I'm assuming that this
> > > activity *would* receive that NFC tech intent, right? The intent-
> > > filter tech-list of NfcF *is* a sub-set of Tag.getTechList(). Correct?
> >
> > correct
> >
> >
> >
> > > And this jives with your earlier answer about not having to specify
> > > both MifareUltralight *and* NfcA in a tech-list since if the tech-list
> > > has both and my tech-list only has one, it's still a sub-set so it
> > > will match. It could actually be dangerous to specify both in case
> > > some tag doesn't enumerate NfcA, then the tech-list would not be a sub-
> > > set of the Tag's tech list so there'd be no match.
> >
> > correct
> >
> >
> >
> > > Just one more thing about the  tag with the intent filters
> > > for NFC tags. In the NFCDemo, for the intent-filter for TAG_DISCOVERED
> > > there is a  tag within the , as one would
> > > expect in order to receive an intent that carries no data. This
> > >  tag is not present in the NfcAdapter reference page or the
> > > NFC DevGuide page, but I think it should be. Correct?
> >
> > we're looking into this.
> >
> >
> >
> > > What I can't tell is whether or not the  tag is required
> > > within the  when the action is TECH_DISCOVERED. I
> > > haven't been able to figure out the bytes to generate a fake non-Ndef
> > > tag to send from FakeTagsActivity. And when I save my manifest.xml
> > > file either way, I get no errors.
> >
> > > I appreciate any help that I can get. Thanks!
> >
> > > - dave
> >
> > > On Feb 23, 1:01 pm, Nick Pelly  wrote:
> > > > On Wed, Feb 23, 2011 at 8:45 AM, davemac 
> wrote:
> > > > > What you're saying doesn't jive with the documentation, which says
> the
> > > > > following (onhttp://
> developer.android.com/guide/topics/nfc/index.html
> > > ):
> >
> > > > > Specifiying [sic] multiple technologies within the same list tells
> the
> > > > > system to filter tags that support all of the technologies.
> >
> > > > This particular sentence is a little confusing in the docs, i'll try
> and
> > > > have it improved.
> >
> > > > > The
> > > > > example below never filters a tag because no tag supports all of
> the
> > > > > technologies at once. You can remove the ones that you do not need.
> > > > > The docs say a tag will only match if all tag technologies are
> listed
> > > > > in my tech-list,
> >
> > > > No the docs don't say that.
> >
> > > > There is a better explanation here, which matches with how I
> explained
> > > it,
> > > > which is how it is :)
> >
> > > >
> http://developer.android.com/reference/android/nfc/NfcAdapter.html#AC...
> >
> > > > """
> > > > A tag matches if any of the tech-list sets is a subset of
> > > > Tag.getTechList()<
> > >
> http://developer.android.com/reference/android/nfc/Tag.html#getTechList()
> > > >.
> > > > Each of the tech-lists is considered independently and the activity
> is
> > > > considered a match is any single tech-list matches the tag that was
> > > > discovered. This provides AND and OR semantics for filtering desired
> > > techs.
> > > > """
> >
> > > > and all tech-list technologies are implemented by the
> >
> > > > > tag. You're saying that the tag's technologies only need to match a
> > > > > sub-set of the tech-list.
> >
> > > > yes
> >
> > > > > Or are you saying that a MifareUltralight
> > > > > tag only reports MifareUltralight technology?
> >
> > > > No.
> >
> > > > > Or that the docs are
> > > > > wrong?
> >
> > > > No they're just a little confusing.
> >
> > > > > I have a related question that I hope you don't mind answering here
> as
> > >

[android-developers] Re: Question about intent filters for NFC tags (tech)

2011-02-28 Thread davemac
Any update on the  question answer please?

- dave

On Feb 24, 5:36 pm, Nick Pelly  wrote:
> On Wed, Feb 23, 2011 at 7:26 PM, davemac  wrote:
> > I hate to seem like a nag on this topic, but I've got some more
> > concerns about the documentation, and your answer. Let's consider an
> > example as described in the reference page for NfcAdapter, which seems
> > to be more correct than the DevGuide for NFC:
>
> >  
> >      
> >     
> >         android.nfc.tech.NfcF
> >     
>
> >     
>
> >     
> >      
> >         android.nfc.tech.NfcA
> >          android.nfc.tech.MifareClassic
> >         android.nfc.tech.Ndef
> >     
> >  
>
> > If I have a tag that enumerates NfcA and MifareClassic but does not
> > enumerate Ndef, I'm assuming that this activity would not receive that
> > NFC tech intent. Correct?
>
> Correct. The tag is neither NfcF OR (NfcA AND MifareClassic AND Ndef)
>
> > None of the intent-filter's tech-list sets
> > is a subset of
> > Tag.getTechList().
>
> > If I have a tag that enumerates NfcF and Ndef, I'm assuming that this
> > activity *would* receive that NFC tech intent, right? The intent-
> > filter tech-list of NfcF *is* a sub-set of Tag.getTechList(). Correct?
>
> correct
>
>
>
> > And this jives with your earlier answer about not having to specify
> > both MifareUltralight *and* NfcA in a tech-list since if the tech-list
> > has both and my tech-list only has one, it's still a sub-set so it
> > will match. It could actually be dangerous to specify both in case
> > some tag doesn't enumerate NfcA, then the tech-list would not be a sub-
> > set of the Tag's tech list so there'd be no match.
>
> correct
>
>
>
> > Just one more thing about the  tag with the intent filters
> > for NFC tags. In the NFCDemo, for the intent-filter for TAG_DISCOVERED
> > there is a  tag within the , as one would
> > expect in order to receive an intent that carries no data. This
> >  tag is not present in the NfcAdapter reference page or the
> > NFC DevGuide page, but I think it should be. Correct?
>
> we're looking into this.
>
>
>
> > What I can't tell is whether or not the  tag is required
> > within the  when the action is TECH_DISCOVERED. I
> > haven't been able to figure out the bytes to generate a fake non-Ndef
> > tag to send from FakeTagsActivity. And when I save my manifest.xml
> > file either way, I get no errors.
>
> > I appreciate any help that I can get. Thanks!
>
> > - dave
>
> > On Feb 23, 1:01 pm, Nick Pelly  wrote:
> > > On Wed, Feb 23, 2011 at 8:45 AM, davemac  wrote:
> > > > What you're saying doesn't jive with the documentation, which says the
> > > > following (onhttp://developer.android.com/guide/topics/nfc/index.html
> > ):
>
> > > > Specifiying [sic] multiple technologies within the same list tells the
> > > > system to filter tags that support all of the technologies.
>
> > > This particular sentence is a little confusing in the docs, i'll try and
> > > have it improved.
>
> > > > The
> > > > example below never filters a tag because no tag supports all of the
> > > > technologies at once. You can remove the ones that you do not need.
> > > > The docs say a tag will only match if all tag technologies are listed
> > > > in my tech-list,
>
> > > No the docs don't say that.
>
> > > There is a better explanation here, which matches with how I explained
> > it,
> > > which is how it is :)
>
> > >http://developer.android.com/reference/android/nfc/NfcAdapter.html#AC...
>
> > > """
> > > A tag matches if any of the tech-list sets is a subset of
> > > Tag.getTechList()<
> >http://developer.android.com/reference/android/nfc/Tag.html#getTechList()
> > >.
> > > Each of the tech-lists is considered independently and the activity is
> > > considered a match is any single tech-list matches the tag that was
> > > discovered. This provides AND and OR semantics for filtering desired
> > techs.
> > > """
>
> > > and all tech-list technologies are implemented by the
>
> > > > tag. You're saying that the tag's technologies only need to match a
> > > > sub-set of the tech-list.
>
> > > yes
>
> > > > Or are you saying that a MifareUltralight
> > > > tag only reports MifareUltralight technology?
>
> > > No.
>
> > > > Or that the docs are
> > > > wrong?
>
> > > No they're just a little confusing.
>
> > > > I have a related question that I hope you don't mind answering here as
> > > > well. To build an intent filter in code that supports tech, how do you
> > > > specify the techlists on it? Or does this only work in foreground
> > > > dispatch mode?
>
> > > I am a little hazy on the details for this one, but I believe the best
> > > practice is to define all the intent filters you might want in the
> > manifest,
> > > and then turn intent-filters on and off at run-time.
>
> > > > - dave
>
> > > > On Feb 23, 12:41 am, Nick Pelly  wrote:
> > > > > On Tue, Feb 22, 2011 at 6:50 PM, davemac 
> > wrote:
> > > > > > I'm reading the documentation on NFC tags and intent filters to
> > match
> > > > > > on. For an act

Re: [android-developers] Re: Question about intent filters for NFC tags (tech)

2011-02-24 Thread Nick Pelly
On Wed, Feb 23, 2011 at 7:26 PM, davemac  wrote:

> I hate to seem like a nag on this topic, but I've got some more
> concerns about the documentation, and your answer. Let's consider an
> example as described in the reference page for NfcAdapter, which seems
> to be more correct than the DevGuide for NFC:
>
>  
>  
> 
> android.nfc.tech.NfcF
> 
>
> 
>
> 
>  
> android.nfc.tech.NfcA
>  android.nfc.tech.MifareClassic
> android.nfc.tech.Ndef
> 
>  
>
> If I have a tag that enumerates NfcA and MifareClassic but does not
> enumerate Ndef, I'm assuming that this activity would not receive that
> NFC tech intent. Correct?


Correct. The tag is neither NfcF OR (NfcA AND MifareClassic AND Ndef)


> None of the intent-filter's tech-list sets
> is a subset of
> Tag.getTechList().
>
> If I have a tag that enumerates NfcF and Ndef, I'm assuming that this
> activity *would* receive that NFC tech intent, right? The intent-
> filter tech-list of NfcF *is* a sub-set of Tag.getTechList(). Correct?
>

correct


>
> And this jives with your earlier answer about not having to specify
> both MifareUltralight *and* NfcA in a tech-list since if the tech-list
> has both and my tech-list only has one, it's still a sub-set so it
> will match. It could actually be dangerous to specify both in case
> some tag doesn't enumerate NfcA, then the tech-list would not be a sub-
> set of the Tag's tech list so there'd be no match.
>

correct

>
> Just one more thing about the  tag with the intent filters
> for NFC tags. In the NFCDemo, for the intent-filter for TAG_DISCOVERED
> there is a  tag within the , as one would
> expect in order to receive an intent that carries no data. This
>  tag is not present in the NfcAdapter reference page or the
> NFC DevGuide page, but I think it should be. Correct?
>

we're looking into this.


>
> What I can't tell is whether or not the  tag is required
> within the  when the action is TECH_DISCOVERED. I
> haven't been able to figure out the bytes to generate a fake non-Ndef
> tag to send from FakeTagsActivity. And when I save my manifest.xml
> file either way, I get no errors.
>
> I appreciate any help that I can get. Thanks!
>
> - dave
>
> On Feb 23, 1:01 pm, Nick Pelly  wrote:
> > On Wed, Feb 23, 2011 at 8:45 AM, davemac  wrote:
> > > What you're saying doesn't jive with the documentation, which says the
> > > following (onhttp://developer.android.com/guide/topics/nfc/index.html
> ):
> >
> > > Specifiying [sic] multiple technologies within the same list tells the
> > > system to filter tags that support all of the technologies.
> >
> > This particular sentence is a little confusing in the docs, i'll try and
> > have it improved.
> >
> > > The
> > > example below never filters a tag because no tag supports all of the
> > > technologies at once. You can remove the ones that you do not need.
> > > The docs say a tag will only match if all tag technologies are listed
> > > in my tech-list,
> >
> > No the docs don't say that.
> >
> > There is a better explanation here, which matches with how I explained
> it,
> > which is how it is :)
> >
> > http://developer.android.com/reference/android/nfc/NfcAdapter.html#AC...
> >
> > """
> > A tag matches if any of the tech-list sets is a subset of
> > Tag.getTechList()<
> http://developer.android.com/reference/android/nfc/Tag.html#getTechList()
> >.
> > Each of the tech-lists is considered independently and the activity is
> > considered a match is any single tech-list matches the tag that was
> > discovered. This provides AND and OR semantics for filtering desired
> techs.
> > """
> >
> > and all tech-list technologies are implemented by the
> >
> > > tag. You're saying that the tag's technologies only need to match a
> > > sub-set of the tech-list.
> >
> > yes
> >
> > > Or are you saying that a MifareUltralight
> > > tag only reports MifareUltralight technology?
> >
> > No.
> >
> > > Or that the docs are
> > > wrong?
> >
> > No they're just a little confusing.
> >
> > > I have a related question that I hope you don't mind answering here as
> > > well. To build an intent filter in code that supports tech, how do you
> > > specify the techlists on it? Or does this only work in foreground
> > > dispatch mode?
> >
> > I am a little hazy on the details for this one, but I believe the best
> > practice is to define all the intent filters you might want in the
> manifest,
> > and then turn intent-filters on and off at run-time.
> >
> > > - dave
> >
> > > On Feb 23, 12:41 am, Nick Pelly  wrote:
> > > > On Tue, Feb 22, 2011 at 6:50 PM, davemac 
> wrote:
> > > > > I'm reading the documentation on NFC tags and intent filters to
> match
> > > > > on. For an action of ACTION_TECH_DISCOVERED, the intent filter must
> > > > > list the technologies to match on, using a filter file. What I
> wanted
> > > > > clarification on is whether or not I need to also specify for
> example
> > > > > NfcA when I'm looking for a Mifare U

[android-developers] Re: Question about intent filters for NFC tags (tech)

2011-02-23 Thread davemac
I hate to seem like a nag on this topic, but I've got some more
concerns about the documentation, and your answer. Let's consider an
example as described in the reference page for NfcAdapter, which seems
to be more correct than the DevGuide for NFC:

 
 
 
 android.nfc.tech.NfcF
 

 

 
 
 android.nfc.tech.NfcA
 android.nfc.tech.MifareClassic
 android.nfc.tech.Ndef
 
 

If I have a tag that enumerates NfcA and MifareClassic but does not
enumerate Ndef, I'm assuming that this activity would not receive that
NFC tech intent. Correct? None of the intent-filter's tech-list sets
is a subset of
Tag.getTechList().

If I have a tag that enumerates NfcF and Ndef, I'm assuming that this
activity *would* receive that NFC tech intent, right? The intent-
filter tech-list of NfcF *is* a sub-set of Tag.getTechList(). Correct?

And this jives with your earlier answer about not having to specify
both MifareUltralight *and* NfcA in a tech-list since if the tech-list
has both and my tech-list only has one, it's still a sub-set so it
will match. It could actually be dangerous to specify both in case
some tag doesn't enumerate NfcA, then the tech-list would not be a sub-
set of the Tag's tech list so there'd be no match.

Just one more thing about the  tag with the intent filters
for NFC tags. In the NFCDemo, for the intent-filter for TAG_DISCOVERED
there is a  tag within the , as one would
expect in order to receive an intent that carries no data. This
 tag is not present in the NfcAdapter reference page or the
NFC DevGuide page, but I think it should be. Correct?

What I can't tell is whether or not the  tag is required
within the  when the action is TECH_DISCOVERED. I
haven't been able to figure out the bytes to generate a fake non-Ndef
tag to send from FakeTagsActivity. And when I save my manifest.xml
file either way, I get no errors.

I appreciate any help that I can get. Thanks!

- dave

On Feb 23, 1:01 pm, Nick Pelly  wrote:
> On Wed, Feb 23, 2011 at 8:45 AM, davemac  wrote:
> > What you're saying doesn't jive with the documentation, which says the
> > following (onhttp://developer.android.com/guide/topics/nfc/index.html):
>
> > Specifiying [sic] multiple technologies within the same list tells the
> > system to filter tags that support all of the technologies.
>
> This particular sentence is a little confusing in the docs, i'll try and
> have it improved.
>
> > The
> > example below never filters a tag because no tag supports all of the
> > technologies at once. You can remove the ones that you do not need.
> > The docs say a tag will only match if all tag technologies are listed
> > in my tech-list,
>
> No the docs don't say that.
>
> There is a better explanation here, which matches with how I explained it,
> which is how it is :)
>
> http://developer.android.com/reference/android/nfc/NfcAdapter.html#AC...
>
> """
> A tag matches if any of the tech-list sets is a subset of
> Tag.getTechList().
> Each of the tech-lists is considered independently and the activity is
> considered a match is any single tech-list matches the tag that was
> discovered. This provides AND and OR semantics for filtering desired techs.
> """
>
> and all tech-list technologies are implemented by the
>
> > tag. You're saying that the tag's technologies only need to match a
> > sub-set of the tech-list.
>
> yes
>
> > Or are you saying that a MifareUltralight
> > tag only reports MifareUltralight technology?
>
> No.
>
> > Or that the docs are
> > wrong?
>
> No they're just a little confusing.
>
> > I have a related question that I hope you don't mind answering here as
> > well. To build an intent filter in code that supports tech, how do you
> > specify the techlists on it? Or does this only work in foreground
> > dispatch mode?
>
> I am a little hazy on the details for this one, but I believe the best
> practice is to define all the intent filters you might want in the manifest,
> and then turn intent-filters on and off at run-time.
>
> > - dave
>
> > On Feb 23, 12:41 am, Nick Pelly  wrote:
> > > On Tue, Feb 22, 2011 at 6:50 PM, davemac  wrote:
> > > > I'm reading the documentation on NFC tags and intent filters to match
> > > > on. For an action of ACTION_TECH_DISCOVERED, the intent filter must
> > > > list the technologies to match on, using a filter file. What I wanted
> > > > clarification on is whether or not I need to also specify for example
> > > > NfcA when I'm looking for a Mifare Utralight tag.
>
> > > > For the Mifare Ultralight tag, the documentation says this:
> > > > NfcA will also be enumerated on the tag, because all MIFARE Ultralight
> > > > tags are also NfcA tags.
>
> > > > This suggests to me that my XML filter file should say this:
>
> > > > 
> > > >    
> > > >        android.nfc.tech.NfcA
> > > >        android.nfc.tech.MifareUltralight
> > > >    
> > > > 
>
> > > > because if the tag is 

[android-developers] Re: Question about intent filters for NFC tags (tech)

2011-02-23 Thread davemac
More than a little confusing I'm afraid. If I can paraphrase, a tag
will be delivered to an activity if there exists an intent filter for
ACTION_TECH_DISCOVERED, and the tag reports a technology list that is
a sub-set of at least one tech-list in the array of tech-lists defined
by the XML filter file attached to the activity/intent-filter. So if I
have a tech-list array with a single tech-list like this:



android.nfc.tech.IsoDep
android.nfc.tech.NfcA
android.nfc.tech.NfcB
android.nfc.tech.NfcF
android.nfc.tech.NfcV
android.nfc.tech.Ndef
android.nfc.tech.NdefFormatable
android.nfc.tech.MifareClassic
android.nfc.tech.MifareUltralight



every tag will match and be delivered to this activity.

I noticed two more discrepancies between the NFC DevGuide page, and
the reference documentation for NfcAdapter. On the reference page, it
shows the intent filter in a manifest as this:

   
   
   
   
   

   
   

while on the NFC DevGuide page it says this:






Notice how the  tag is inside the  in the
second case? Do you also see where the first one does not include
the .xml on the android:resource? If the first example is correct (and
I think it is), that would explain why you can't set meta-data on an
intent filter in code. I'm not near my Android computer so I can't try
these out. But clearly the documentation needs to be fixed. Thanks

- dave

On Feb 23, 1:01 pm, Nick Pelly  wrote:
> On Wed, Feb 23, 2011 at 8:45 AM, davemac  wrote:
> > What you're saying doesn't jive with the documentation, which says the
> > following (onhttp://developer.android.com/guide/topics/nfc/index.html):
>
> > Specifiying [sic] multiple technologies within the same list tells the
> > system to filter tags that support all of the technologies.
>
> This particular sentence is a little confusing in the docs, i'll try and
> have it improved.
>
> > The
> > example below never filters a tag because no tag supports all of the
> > technologies at once. You can remove the ones that you do not need.
> > The docs say a tag will only match if all tag technologies are listed
> > in my tech-list,
>
> No the docs don't say that.
>
> There is a better explanation here, which matches with how I explained it,
> which is how it is :)
>
> http://developer.android.com/reference/android/nfc/NfcAdapter.html#AC...
>
> """
> A tag matches if any of the tech-list sets is a subset of
> Tag.getTechList().
> Each of the tech-lists is considered independently and the activity is
> considered a match is any single tech-list matches the tag that was
> discovered. This provides AND and OR semantics for filtering desired techs.
> """
>
> and all tech-list technologies are implemented by the
>
> > tag. You're saying that the tag's technologies only need to match a
> > sub-set of the tech-list.
>
> yes
>
> > Or are you saying that a MifareUltralight
> > tag only reports MifareUltralight technology?
>
> No.
>
> > Or that the docs are
> > wrong?
>
> No they're just a little confusing.
>
> > I have a related question that I hope you don't mind answering here as
> > well. To build an intent filter in code that supports tech, how do you
> > specify the techlists on it? Or does this only work in foreground
> > dispatch mode?
>
> I am a little hazy on the details for this one, but I believe the best
> practice is to define all the intent filters you might want in the manifest,
> and then turn intent-filters on and off at run-time.
>
> > - dave
>
> > On Feb 23, 12:41 am, Nick Pelly  wrote:
> > > On Tue, Feb 22, 2011 at 6:50 PM, davemac  wrote:
> > > > I'm reading the documentation on NFC tags and intent filters to match
> > > > on. For an action of ACTION_TECH_DISCOVERED, the intent filter must
> > > > list the technologies to match on, using a filter file. What I wanted
> > > > clarification on is whether or not I need to also specify for example
> > > > NfcA when I'm looking for a Mifare Utralight tag.
>
> > > > For the Mifare Ultralight tag, the documentation says this:
> > > > NfcA will also be enumerated on the tag, because all MIFARE Ultralight
> > > > tags are also NfcA tags.
>
> > > > This suggests to me that my XML filter file should say this:
>
> > > > 
> > > >    
> > > >        android.nfc.tech.NfcA
> > > >        android.nfc.tech.MifareUltralight
> > > >    
> > > > 
>
> > > > because if the tag is enumerating NfcA in addition to
> > > > MifareUltralight, my intent filter will only match if I specify both
> > > > technologies, not just MifareUltralight. Is that true? This applies to
> > > > IsoDep as well, which enumerates both NfcA and NfcB, in which case I
> > > > would need to specify all three. True? I don't have available hardware
> > > > to test this for myself. Thanks for your help.
>
> > > You do not need to specify both NfcA and MifareUltralight. You can just
> > > speci

Re: [android-developers] Re: Question about intent filters for NFC tags (tech)

2011-02-23 Thread Nick Pelly
On Wed, Feb 23, 2011 at 8:45 AM, davemac  wrote:

> What you're saying doesn't jive with the documentation, which says the
> following (on http://developer.android.com/guide/topics/nfc/index.html):
>
> Specifiying [sic] multiple technologies within the same list tells the
> system to filter tags that support all of the technologies.


This particular sentence is a little confusing in the docs, i'll try and
have it improved.


> The
> example below never filters a tag because no tag supports all of the
> technologies at once. You can remove the ones that you do not need.


> The docs say a tag will only match if all tag technologies are listed
> in my tech-list,


No the docs don't say that.

There is a better explanation here, which matches with how I explained it,
which is how it is :)

http://developer.android.com/reference/android/nfc/NfcAdapter.html#ACTION_TECH_DISCOVERED

"""
A tag matches if any of the tech-list sets is a subset of
Tag.getTechList().
Each of the tech-lists is considered independently and the activity is
considered a match is any single tech-list matches the tag that was
discovered. This provides AND and OR semantics for filtering desired techs.
"""

and all tech-list technologies are implemented by the
> tag. You're saying that the tag's technologies only need to match a
> sub-set of the tech-list.


yes


> Or are you saying that a MifareUltralight
> tag only reports MifareUltralight technology?


No.


> Or that the docs are
> wrong?
>

No they're just a little confusing.



> I have a related question that I hope you don't mind answering here as
> well. To build an intent filter in code that supports tech, how do you
> specify the techlists on it? Or does this only work in foreground
> dispatch mode?
>

I am a little hazy on the details for this one, but I believe the best
practice is to define all the intent filters you might want in the manifest,
and then turn intent-filters on and off at run-time.



> - dave
>
> On Feb 23, 12:41 am, Nick Pelly  wrote:
> > On Tue, Feb 22, 2011 at 6:50 PM, davemac  wrote:
> > > I'm reading the documentation on NFC tags and intent filters to match
> > > on. For an action of ACTION_TECH_DISCOVERED, the intent filter must
> > > list the technologies to match on, using a filter file. What I wanted
> > > clarification on is whether or not I need to also specify for example
> > > NfcA when I'm looking for a Mifare Utralight tag.
> >
> > > For the Mifare Ultralight tag, the documentation says this:
> > > NfcA will also be enumerated on the tag, because all MIFARE Ultralight
> > > tags are also NfcA tags.
> >
> > > This suggests to me that my XML filter file should say this:
> >
> > > 
> > >
> > >android.nfc.tech.NfcA
> > >android.nfc.tech.MifareUltralight
> > >
> > > 
> >
> > > because if the tag is enumerating NfcA in addition to
> > > MifareUltralight, my intent filter will only match if I specify both
> > > technologies, not just MifareUltralight. Is that true? This applies to
> > > IsoDep as well, which enumerates both NfcA and NfcB, in which case I
> > > would need to specify all three. True? I don't have available hardware
> > > to test this for myself. Thanks for your help.
> >
> > You do not need to specify both NfcA and MifareUltralight. You can just
> > specify MifareUltralight. The  only requires a subset of
> tech's
> > in order to match.
> >
> > In the case of MIFARE Ultralight, it happens to always be based on NfcA
> > technology. So tags with the MifareUltralight tech will always also have
> the
> > NfcA tech. So there is no harm also putting NfcA in the . But
> it
> > is not strictly required.
> >
> > Nick
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Question about intent filters for NFC tags (tech)

2011-02-23 Thread davemac
What you're saying doesn't jive with the documentation, which says the
following (on http://developer.android.com/guide/topics/nfc/index.html):

Specifiying [sic] multiple technologies within the same list tells the
system to filter tags that support all of the technologies. The
example below never filters a tag because no tag supports all of the
technologies at once. You can remove the ones that you do not need.

The docs say a tag will only match if all tag technologies are listed
in my tech-list, and all tech-list technologies are implemented by the
tag. You're saying that the tag's technologies only need to match a
sub-set of the tech-list. Or are you saying that a MifareUltralight
tag only reports MifareUltralight technology? Or that the docs are
wrong?

I have a related question that I hope you don't mind answering here as
well. To build an intent filter in code that supports tech, how do you
specify the techlists on it? Or does this only work in foreground
dispatch mode?

Thanks for your help.

- dave

On Feb 23, 12:41 am, Nick Pelly  wrote:
> On Tue, Feb 22, 2011 at 6:50 PM, davemac  wrote:
> > I'm reading the documentation on NFC tags and intent filters to match
> > on. For an action of ACTION_TECH_DISCOVERED, the intent filter must
> > list the technologies to match on, using a filter file. What I wanted
> > clarification on is whether or not I need to also specify for example
> > NfcA when I'm looking for a Mifare Utralight tag.
>
> > For the Mifare Ultralight tag, the documentation says this:
> > NfcA will also be enumerated on the tag, because all MIFARE Ultralight
> > tags are also NfcA tags.
>
> > This suggests to me that my XML filter file should say this:
>
> > 
> >    
> >        android.nfc.tech.NfcA
> >        android.nfc.tech.MifareUltralight
> >    
> > 
>
> > because if the tag is enumerating NfcA in addition to
> > MifareUltralight, my intent filter will only match if I specify both
> > technologies, not just MifareUltralight. Is that true? This applies to
> > IsoDep as well, which enumerates both NfcA and NfcB, in which case I
> > would need to specify all three. True? I don't have available hardware
> > to test this for myself. Thanks for your help.
>
> You do not need to specify both NfcA and MifareUltralight. You can just
> specify MifareUltralight. The  only requires a subset of tech's
> in order to match.
>
> In the case of MIFARE Ultralight, it happens to always be based on NfcA
> technology. So tags with the MifareUltralight tech will always also have the
> NfcA tech. So there is no harm also putting NfcA in the . But it
> is not strictly required.
>
> Nick

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Question for Google employees: How would our apps run on the new Kyocera Echo?

2011-02-09 Thread Kostya Vasilyev

They have to make it so:

If that device only run apps specifically developed for it, it'll be a flop.

And even then there is nothing to worry about - if they only sell a 
dozen (figuratively speaking), do you care if your app runs on it?


-- Kostya

09.02.2011 22:07, Russell DuRoss пишет:

So, hopefully an average app will run fine in either Single Screen or
tablet mode without changes.

On Feb 8, 4:06 pm, Kostya Vasilyev  wrote:

http://developer.sprint.com/site/global/develop/mobile_platforms/andr...

  >
With the Echo(tm) your apps can provide three different visual experiences:

Single-Screen Mode- app runs like a standard Android device with a
single 480x800(HDPI) screen

Tablet Mode- app runs across both screens, filling them up similar to a
tablet where your application thinks it has a single display of
800x960(HDPI)

Optimized Mode- utilizing the Echo(tm) SDK your application can utilize
each screen for unique functionality, for example you may have a layout
on the top screen with a music player and a layout on the bottom screen
showing your music library.
<

-- Kostya

08.02.2011 23:56, Russell DuRoss пишет:


That seems to leave open the issue of what happens when the user has
only one screen open, since the second screen is apparently a "slide-
out".
On Feb 8, 10:19 am, Stringwrote:

IANAG, but according to Engadget, "third party apps can't be run in any of the new 
modes and just fill the entire display for now --Kyocera and Sprint say an SDK is coming 
shortly."
So it sounds like, until this special SDK arrives, it's a "normal" 960x800 
screen as far as our apps are concerned.
String

--
Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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: Question for Google employees: How would our apps run on the new Kyocera Echo?

2011-02-09 Thread Russell DuRoss
So, hopefully an average app will run fine in either Single Screen or
tablet mode without changes.

On Feb 8, 4:06 pm, Kostya Vasilyev  wrote:
> http://developer.sprint.com/site/global/develop/mobile_platforms/andr...
>
>  >
> With the Echo™ your apps can provide three different visual experiences:
>
> Single-Screen Mode- app runs like a standard Android device with a
> single 480x800(HDPI) screen
>
> Tablet Mode- app runs across both screens, filling them up similar to a
> tablet where your application thinks it has a single display of
> 800x960(HDPI)
>
> Optimized Mode- utilizing the Echo™ SDK your application can utilize
> each screen for unique functionality, for example you may have a layout
> on the top screen with a music player and a layout on the bottom screen
> showing your music library.
> <
>
> -- Kostya
>
> 08.02.2011 23:56, Russell DuRoss пишет:
>
> > That seems to leave open the issue of what happens when the user has
> > only one screen open, since the second screen is apparently a "slide-
> > out".
>
> > On Feb 8, 10:19 am, String  wrote:
> >> IANAG, but according to Engadget, "third party apps can't be run in any of 
> >> the new modes and just fill the entire display for now --Kyocera and 
> >> Sprint say an SDK is coming shortly."
>
> >> So it sounds like, until this special SDK arrives, it's a "normal" 960x800 
> >> screen as far as our apps are concerned.
>
> >> String
>
> --
> Kostya Vasilyev -- WiFi Manager + pretty widget 
> --http://kmansoft.wordpress.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: Question for Google employees: How would our apps run on the new Kyocera Echo?

2011-02-08 Thread Kostya Vasilyev

http://developer.sprint.com/site/global/develop/mobile_platforms/android/android.jsp

>
With the Echo™ your apps can provide three different visual experiences:

Single-Screen Mode- app runs like a standard Android device with a 
single 480x800(HDPI) screen


Tablet Mode- app runs across both screens, filling them up similar to a 
tablet where your application thinks it has a single display of 
800x960(HDPI)


Optimized Mode- utilizing the Echo™ SDK your application can utilize 
each screen for unique functionality, for example you may have a layout 
on the top screen with a music player and a layout on the bottom screen 
showing your music library.

<

-- Kostya

08.02.2011 23:56, Russell DuRoss пишет:

That seems to leave open the issue of what happens when the user has
only one screen open, since the second screen is apparently a "slide-
out".


On Feb 8, 10:19 am, String  wrote:

IANAG, but according to Engadget, "third party apps can't be run in any of the new 
modes and just fill the entire display for now --Kyocera and Sprint say an SDK is coming 
shortly."

So it sounds like, until this special SDK arrives, it's a "normal" 960x800 
screen as far as our apps are concerned.

String



--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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: Question for Google employees: How would our apps run on the new Kyocera Echo?

2011-02-08 Thread Russell DuRoss
That seems to leave open the issue of what happens when the user has
only one screen open, since the second screen is apparently a "slide-
out".


On Feb 8, 10:19 am, String  wrote:
> IANAG, but according to Engadget, "third party apps can't be run in any of 
> the new modes and just fill the entire display for now --Kyocera and Sprint 
> say an SDK is coming shortly."
>
> So it sounds like, until this special SDK arrives, it's a "normal" 960x800 
> screen as far as our apps are concerned.
>
> String

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


Re: [android-developers] Re: Question about bug reports

2011-02-05 Thread H
To send a silent report (i.e. something the user isn't aware of) you can use 
the details here: 
http://code.google.com/p/acra/wiki/ACRA3HowTo#Can_I_send_reports_for_caught_exceptions_?_or_for_unexpected_app

So
 
in code when you catch an exception you want to log, you simply put in: 
ErrorReporter.getInstance().handleException(caughtException);

If you don't have an exception thrown but you still want to log something 
then I think there is a variant of that method you can call which will 
accept a string instead. I don't have java opened so can't confirm the exact 
method.

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

2011-02-04 Thread Marcin Orlowski
On 3 February 2011 23:01, String  wrote:

> Yes, whoever posted "log.d() gets stripped at runtime" was wrong.

Really? http://developer.android.com/reference/android/util/Log.html

> It's up to you to do so.

Never investigated too deeply, but from I rememeber I saw no Log.d entries
on production devices I've checked our app on. It may though be possible
some devices behave differently

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

2011-02-04 Thread fourhend...@gmail.com
May I ask, what's the "one line of code" to send a report?
On Feb 3, 2011 2:01 PM, "String"  wrote:
> On Tuesday, February 1, 2011 11:10:00 PM UTC, Thomas wrote:
>
>
>> About your log debug option, it is recommended to disable it just
>> before releasing (http://developer.android.com/guide/publishing/
>> preparing.html<
http://developer.android.com/guide/publishing/preparing.html>).
>>
>>
>
> Yes, whoever posted "log.d() gets stripped at runtime" was wrong. It's up
to
> you to do so.
>
> If you doubt this, install the Evernote client and run it with ADB
attached
> to your device. You'll see a bunch of logging active, including D-level.
> Note also that under Menu > Settings they have an item for "Send log";
> presumably the logging they leave enabled in production is to make these
> sent logs more useful.
>
> String
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: Question about bug reports

2011-02-03 Thread String
On Tuesday, February 1, 2011 11:10:00 PM UTC, Thomas wrote:
 

> About your log debug option, it is recommended to disable it just 
> before releasing (http://developer.android.com/guide/publishing/ 
> preparing.html).
>  
>
>

Yes, whoever posted "log.d() gets stripped at runtime" was wrong. It's up to 
you to do so. 

If you doubt this, install the Evernote client and run it with ADB attached 
to your device. You'll see a bunch of logging active, including D-level. 
Note also that under Menu > Settings they have an item for "Send log"; 
presumably the logging they leave enabled in production is to make these 
sent logs more useful.

String

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

[android-developers] Re: Question about bug reports

2011-02-03 Thread Thomas
Interesting question about crash submitter dialog, I noticed that the
crash submitter dialog doesn't replace all the "old" FC dialogs, but I
don't know why !
About your log debug option, it is recommended to disable it just
before releasing (http://developer.android.com/guide/publishing/
preparing.html).

On 2 fév, 00:02, "fourhend...@gmail.com" 
wrote:
> Hi I haven't released an app to the store yet. Before doing so, I wanted to
> know, how is this working with users submitting bug reports? Is there some
> automatic report getting sent if the app let's say - crashes? Should I
> enable or disable logging with 'Log.d" before releasing? Thanks

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


[android-developers] Re: question regarding media playback in browser

2011-02-01 Thread Indicator Veritatis
Isn't this question already answered at 
http://developer.android.com/guide/appendix/media-formats.html
?

On Feb 1, 7:32 am, Victor lyamtsev  wrote:
> Anyone can list what media combinations ( container format/ video
> encoding/ resolution /audio encoding) i can play in Froyo browser ?
> I played YouTube videos, so it does support FLV format? How's about
> 3GPP , or MP4?
> Thanks,
> -V

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

2011-02-01 Thread Brill Pappin
Having worked on a few keyboards I can tell you that I doubt you can
scramble the keyboard from your app.
What you should do is extend one of the text input views and do your
funky scrambling there.

You should also set ime options on the text view to turn off
predictive etc. text etc so the keyboard doesn't get confused.

- Brill Pappin

On Jan 31, 4:34 pm, FractalBob  wrote:
> Hi,
>
> I'm writing an app that randomly scrambles the keyboard, so that when the
> user presses, say, the 'A' key, some other letter might get displayed. The

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

2011-01-27 Thread argongold
Hi Treking,

Thanks for your suggestion.
Definitely one way is to write my own but I don't want to re-invent
the wheel so  checking if any one have already spent time and invented
it (*_*).

Thanks
argongold


On Jan 28, 11:47 am, TreKing  wrote:
> On Thu, Jan 27, 2011 at 9:37 AM, argon gold  wrote:
> > Can any one suggest some work around for it.
>
> Write your own.
>
> Or Google for "Android Drag Drop" and see where it takes you.
>
> -
> 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: Question about android.view.WindowManagerImpl

2011-01-27 Thread argongold
Any one

On Jan 27, 11:37 pm, argon gold  wrote:
> Hi,
>
> I want to reuse the drag and drop control code from luncher application. But
> I found it uses some of private API such as android.view.WindowManagerImpl
> class. Since I am developing my application in SDK I can not use it. Can any
> one suggest some work around for it.
>
> Thanks in advance.
> argongold

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: question on KVM/thread scheduler and processor cores

2011-01-26 Thread longingtoadopt.com
Thanks for replying - that removes one layer (KVM).

On Jan 25, 8:30 pm, Dianne Hackborn  wrote:
> Each Dalvik thread is a kernel thread.  The scheduling of these is fairly
> entirely up to the kernel, except for situations such as where a GC may need
> to pause threads.
>
> On Tue, Jan 25, 2011 at 3:39 PM, longingtoadopt.com 
> wrote:
>
>
>
> > I need to test a program that says it will restrict the number of
> > processor cores being used. I was thinking of writing a program to
> > spawn 100 threads, each one performing some long, intensive
> > computation. Then from a console, I could see how many cores are being
> > used. If I write it in Java (Android), is there a guarantee that the
> > JVM/KVM will run the threads on different cores, and run them on all
> > the cores? (if the scheduler incorrectly used only one core when two
> > are allowed, then that will give me an incorrect result).
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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: Question regarding RelativeLayout

2011-01-23 Thread Rutton


On 23 Jan., 15:38, Kostya Vasilyev  wrote:
>
> Feel free to:
>
> http://code.google.com/p/android/issues/list
>

I will do so.
Tried a bit with LinearLayout and weight (haven't used that before).
Learned something new with that, thanks :-).

R.

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


Re: [android-developers] Re: Question regarding RelativeLayout

2011-01-23 Thread Kostya Vasilyev
2011/1/23 Rutton 

> Yeah, thanks. What you mention seems to be also a bug ;-).

 Perhaps someone may come up with a reason for that.


Could just be a limitation, although I don't see that documented (so there
is at least a documentation bug here).


> Or, what about reporting it?
>

Feel free to:

http://code.google.com/p/android/issues/list

-- Kostya


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

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

2011-01-23 Thread Rutton
Yeah, thanks. What you mention seems to be also a bug ;-).
Perhaps someone may come up with a reason for that.
Or, what about reporting it?

R.

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



Re: [android-developers] Re: Question regarding RelativeLayout

2011-01-23 Thread Kostya Vasilyev
You should be able to place 3 (or more) layouts into a LinearLayout,
indicating which one(s) you want stretched and how by laying with
layout_weight and layout_width values.

I've seen RelativeLayout not compute the actual height for wrap_content when
its children are added bottom-to-top (using layout_above), but work
correctly when its children are added top-to-bottom (using layout_below).
Maybe there is a similar issue with width, and leftOf/rightOf positioning.
Hence, my suggestion.

-- Kostya

2011/1/23 Rutton 

>
>
> On 23 Jan., 14:09, Kostya Vasilyev  wrote:
> > Seems like your intent is a side-by-side layout for a tablet device.
>
> I was working on a landscape layout and thought I could "anchor" a
> fixed size
> RelativeLayout and use a stretched/spanning second RelativeLayout. In
> fact
> it works here now, but the fixed size layout needs a real fixed size
> with concrete dp
> value.
>
> > I would recommend you use a top-level LinearLayout
> (orientation=horizontal),
> > and give your two relative layouts layout_width="0dp" and
> layout_weight="1"
> > (that's for a start, you can also experiment with
> > layout_width="wrap_content" and other weight values).
>
> Well, interesting idea.
>
> Consider this case: I don't have two nested layouts within the parent,
> rather three. And I want this line up initially anchored from the
> right.
> The most right one is anchored to the right top/bottom corner and the
> two others are added from right to left, whereas the second one has
> its
> natural size and the most left one may be stretched to fill the parent
> layout.
> I believe this can't be achieved with a LinearLayout with orientation
> horizontal.
>
> I think the example should work as intended, and think that the
> RelativeLayout
> layout_width="wrap_content" should just cover the place that is
> actually needed
> and not the whole parent layout.
>
> >
> > You could also change the way you align two buttons side by side: instead
> of
> > anchoring the right one, and setting layout_toLeftOf on the left one, try
> a
> > more natural sequence. Set layout_alignParentLeft on the left one, and
> > layout_toRightOf on the right one. This applies to all four left/right
> > button pairs you have in the entire layout.
>
>
> Unfortunately this gives a different effect than intended.
> layout_toRightOf stretches the right buttons, as layout_toLeftOf
> stretches the left buttons
> ( if they are nailed to their respective parent layout corners)
> I don't think that the RelativeLayout should depend on some sort of
> "natural" sequence,
> as layouting from right to left is as natural as doing it from left to
> right. It's an algorithm,
> why should it depend on something "natural".
>
> So I tend to believe its a bug in RelativeLayouts
> layout_width="wrap_content" calculation.
> I am interested to discuss this, and if nobody comes up with a good
> explanation,
> why this is that way, I will report this as a bug.
>
> R.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

2011-01-23 Thread Rutton


On 23 Jan., 14:09, Kostya Vasilyev  wrote:
> Seems like your intent is a side-by-side layout for a tablet device.

I was working on a landscape layout and thought I could "anchor" a
fixed size
RelativeLayout and use a stretched/spanning second RelativeLayout. In
fact
it works here now, but the fixed size layout needs a real fixed size
with concrete dp
value.

> I would recommend you use a top-level LinearLayout (orientation=horizontal),
> and give your two relative layouts layout_width="0dp" and layout_weight="1"
> (that's for a start, you can also experiment with
> layout_width="wrap_content" and other weight values).

Well, interesting idea.

Consider this case: I don't have two nested layouts within the parent,
rather three. And I want this line up initially anchored from the
right.
The most right one is anchored to the right top/bottom corner and the
two others are added from right to left, whereas the second one has
its
natural size and the most left one may be stretched to fill the parent
layout.
I believe this can't be achieved with a LinearLayout with orientation
horizontal.

I think the example should work as intended, and think that the
RelativeLayout
layout_width="wrap_content" should just cover the place that is
actually needed
and not the whole parent layout.

>
> You could also change the way you align two buttons side by side: instead of
> anchoring the right one, and setting layout_toLeftOf on the left one, try a
> more natural sequence. Set layout_alignParentLeft on the left one, and
> layout_toRightOf on the right one. This applies to all four left/right
> button pairs you have in the entire layout.


Unfortunately this gives a different effect than intended.
layout_toRightOf stretches the right buttons, as layout_toLeftOf
stretches the left buttons
( if they are nailed to their respective parent layout corners)
I don't think that the RelativeLayout should depend on some sort of
"natural" sequence,
as layouting from right to left is as natural as doing it from left to
right. It's an algorithm,
why should it depend on something "natural".

So I tend to believe its a bug in RelativeLayouts
layout_width="wrap_content" calculation.
I am interested to discuss this, and if nobody comes up with a good
explanation,
why this is that way, I will report this as a bug.

R.

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


Re: [android-developers] Re: Question on memory management in android

2011-01-06 Thread Anton S
Alright, so that means it does load the entire image into memory.

I guess I'll try to break up my image and only load parts of it as they are
needed.


Thanks for you input Doug!

On Wed, Jan 5, 2011 at 7:51 PM, Doug  wrote:

> Bitmaps are going to take as much memory as they need for the grid of
> pixels they represent.  If you want to store a giant image into a
> giant bitmap (or even if you just want to create a giant empty bitmap)
> you will consume that memory.
>
> Android doesn't do so well with giant bitmaps that come and go because
> they don't get garbage collected in the way you'd expect, and you'll
> often run into memory problems if you attempt this.  It's a really
> hairy topic with a lot of prior conversation around it that you can
> easily search and find.
>
> Doug
>
> On Dec 30 2010, 1:37 pm, "Anton S."  wrote:
> > Hi,
> > I have a single image that is slightly larger than the android screen
> > which I load into a ScrollView.
> >
> > My question is the following:
> >
> > Does android load the entire image into memory even though parts of it
> > are invisible(need to be scrolled to),
> > or does it use some kind of external/internal cache to store parts of
> > the image that are not
> > currently visible? If not, do you think it would be possible to
> > implement something like this.
> >
> > 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: Question on memory management in android

2011-01-05 Thread Doug
Bitmaps are going to take as much memory as they need for the grid of
pixels they represent.  If you want to store a giant image into a
giant bitmap (or even if you just want to create a giant empty bitmap)
you will consume that memory.

Android doesn't do so well with giant bitmaps that come and go because
they don't get garbage collected in the way you'd expect, and you'll
often run into memory problems if you attempt this.  It's a really
hairy topic with a lot of prior conversation around it that you can
easily search and find.

Doug

On Dec 30 2010, 1:37 pm, "Anton S."  wrote:
> Hi,
> I have a single image that is slightly larger than the android screen
> which I load into a ScrollView.
>
> My question is the following:
>
> Does android load the entire image into memory even though parts of it
> are invisible(need to be scrolled to),
> or does it use some kind of external/internal cache to store parts of
> the image that are not
> currently visible? If not, do you think it would be possible to
> implement something like this.
>
> Thanks!!

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


[android-developers] Re: Question trimmed down: Browser screen flickering

2010-12-09 Thread Nitin Mahajan
I will trim down the and generalize the questions scope

1. If I am seeing a screen flickering, with an application, does that mean
that the UI thread is being kept waiting quite often and for significant
duration, to cause a flicker? Can this be a reason for flicker?

2. Is there a code instrumentation way to monitor the UI thread in two
different scenarios(With flash content and Without flash content) and
compare what happened to the thread?

regards

-Nitin




On Thu, Dec 9, 2010 at 3:32 PM, Nitin Mahajan  wrote:

> Hello,
>
> I am running the Android 2.2 "rowboat-Froyo" on a OMAP 3503 based board,
> and have the evaluation version Adobe Flash plugin installed.
>
> After I browse any website with flash content in it, I can see a lot of
> flickering on the Browser when ever I do scrolling on the page, on any
> website thereafter.
>
> To get rid of this I have to forcefully kill the Browser from settings, and
> then the flickering is gone, utill again I browse any website with flash
> content.
>
> Has anybody else faced the same problem? Can I get some pointers, as to
> which areas to look in?
>
> 1. One thing which I have confirmed is that the GC is not the culprit...
>
> 2. Another observation: I am using TV and VGA as display devices
> alternatively.
>
> a. With TV resolution 720x480 flicker happens
> b. With VGA monitor resolution 1024x768 flicker does not happen, with
> all other conditions remaining same.
> c. With VGA resolution 640x480 flicker happens.
>
> thanks in advance
>
> regards
> -Nitin
>
> regards
> -Nitin
>

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

2010-12-03 Thread Streets Of Boston
Handle the onPause and onResume as well and put your game in some kind
of sleep-mode (onPause), where it does absolutely nothing but just sit/
sleep there. When your activity that shows the game is brought to the
foreground instead (onResume), bring it out of sleep mode and let the
user continue the game.

Another, but highly 'controversial' option is to call System.exit()
(or android.os.Process.killProcess(android.os.Process.myPid())). Since
you have a one-activity game that is entirely stand-alone (i assume),
this could be considered ok.

On Dec 2, 7:47 pm, billconan  wrote:
> Hello guys,
>
> I'm working on a game, mainly based on NDK. I now have a problem of
> how to quit the application. Right now, i just implement my own
> function to handle the "back" button. inside that function, I simply
> call the activity.finish() api to finish the activity that uses my C++
> code. However, I discovered that if I open the TaskKiller (I'm using
> Advanced Task Killer) program after that, I can always see my game as
> a running program. More than that, if I run my game again, I can see
> that what I allocated in the C++ program during the first run is still
> there.
>
> I know that because of the multi-task design of the Android platform,
> an application doesn't really quit when you quit it. But the
> interesting thing is that if you look at the game "Angry Birds", that
> one won't appear in the TaskKiller program after you play it. I'm
> worrying about this issue because a game often aggressively refresh
> the game loop, I think it draws the power quickly. It seems that even
> I only played my game for a short time, my battery gets low very
> quickly after I closed the game.
>
> So I'm guessing there must be something wrong in my program. Is there
> any smarter way to quit an application. How did Angry Birds solve this
> problem?
>
> Thank you.

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


[android-developers] Re: Question on Shelves example

2010-10-21 Thread Zsolt Vasvari
I wouldn't obfuscate my code like that.  If this were an inner loop
with a million iterations, maybe, but it would have to backed up by
hard numbers.

On Oct 22, 6:47 am, Romain Guy  wrote:
> This was useful before the JIT was added in Android 2.2. It's a bit
> faster, though in this particular case it doesn't really matter, I did
> it out of habit :)
>
>
>
>
>
> On Thu, Oct 21, 2010 at 3:45 PM, Prakash Iyer  wrote:
> > The reference article on Painless Threading pointed me to the Shelves
> > example as a place to understand AsyncTask. So I was reading that example.
> > One question popped into my head while I was going thru ShelvesActivity. The
> > onPause code calls stopBooksUpdater. That code snippet is as follows,
> > private void stopBooksUpdater() {
> >         final BooksUpdater booksUpdater = mBooksUpdater;
> >         booksUpdater.clear();
> >         booksUpdater.stop();
> > }
> > What's the reason for a local final variable which is manipulated as opposed
> > to the member variable? This happens in one more place but in others the
> > member variable is directly accessed, e.g. in onResume.
> > 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
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] Re: Question For All Android Developer

2010-10-12 Thread himanshu jain
@kumar bibek

What i am trying to do is simple i want to embed using any video or
other tag mp4 file in android webview and want to paly it similarly to
facebook does allow with flash player to play video , i want similar
thing .
 i tried it but once i pass the intent android player show up on full
screen

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

2010-10-12 Thread Kumar Bibek
Well, I suspect you can do that. Normal browsers play media files with
the help of the installed plugin. If the browser doesn't support it,
then you can't.

As for the apk files, I suppose that you want to download the apk when
the user clicks on the link. That's simple I guess. Put it as a normal
downloadable file, and the brower will download it and save it for
you.

-Kumar Bibek
http://techdroid.kbeanie.com

On Oct 11, 10:21 pm, himanshu jain  wrote:
> Hi All,
>
> My Question is can we embed mp4 file in android webview client.?
>
> Second, is can we embed apk file in WebViewClient?.
>
> thanks

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


[android-developers] Re: Question about rotate bitmap with Canvas.rotate

2010-09-24 Thread chaozh
Hi:

Thanks your reply.
Your suggestion is good, I've optimized these in my real code. The
above is just simple example.
The source bitmap is preloaded before, but for solution 1, the
rotation bitmap always be created as need. This is performance key in
my codes.
I don't want to create it every time.
For solution 2, the creating step is avoid, but the rotation bitmap's
quality is not good as solution 1, it is distorted. this is also not I
wanted.
So I hope someone can give another solution to solve my problem.
I'm not sure the GL surfaceview is better or not. But I don't want to
use GL in my app since there is no any 3D requirement.
Thanks a lot!

On Sep 24, 7:50 pm, Andreas  wrote:
> 1) You should avoid to creat a new Matrix every time you call the draw
> funktion. You can to this by passing a static Matrix Reference to your
> draw function.
>
> 2) Creating bitmaps on a draw Method is not good performance wise.
> Preload the Images you want up in front.
>
> 3) On Canvas drawing you have a special draw Method you should use in
> combination with a Bitmap and a Matrix:
>
> void android.graphics.Canvas.drawBitmap(Bitmap bitmap, Matrix matrix,
> Paint paint)
>
> 4) The Coords of your Bitmap should be set in the Matrix by calling:
>
> boolean android.graphics.Matrix.postTranslate(float dx, float dy)
> boolean android.graphics.Matrix.postRotate(float degrees, float px,
> float py)
>
> Hope this helps
>
> Greetings
>
> On 24 Sep., 13:22, chaozh  wrote:
>
>
>
>
>
>
>
> > As we know, we can rotate a bitmap through 2 ways.
> > The 1st way is:
> > Matrix mt = new Matrix();
> > mt.postRotate(degree);
> > Bitmap bitmap = CreateBitmap(src, 0, 0, w, h, mt, true);
> > canvs.drawBitmap(bitmap, 0, 0, paint);
>
> > In this way, we always need create new bitmap for every rotation, it
> > is not good way for high performance game or app.
>
> > The 2nd way is:
> > canvas.save();
> > canvas.rotate(degree);
> > canvas.drawBitmap(bitmap, 0, 0, paint);
> > canvas.restore();
>
> > In this way, we avoid creating new bitmap frequently, but the rotation
> > bitmap is distortion, the bitmap quality is worse than first way.
>
> > So, Is there 3rd way to rotate bitmap with high performance and good
> > quality?
> > Your any comments are really 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: Question about rotate bitmap with Canvas.rotate

2010-09-24 Thread Andreas
1) You should avoid to creat a new Matrix every time you call the draw
funktion. You can to this by passing a static Matrix Reference to your
draw function.

2) Creating bitmaps on a draw Method is not good performance wise.
Preload the Images you want up in front.

3) On Canvas drawing you have a special draw Method you should use in
combination with a Bitmap and a Matrix:

void android.graphics.Canvas.drawBitmap(Bitmap bitmap, Matrix matrix,
Paint paint)

4) The Coords of your Bitmap should be set in the Matrix by calling:

boolean android.graphics.Matrix.postTranslate(float dx, float dy)
boolean android.graphics.Matrix.postRotate(float degrees, float px,
float py)

Hope this helps

Greetings


On 24 Sep., 13:22, chaozh  wrote:
> As we know, we can rotate a bitmap through 2 ways.
> The 1st way is:
> Matrix mt = new Matrix();
> mt.postRotate(degree);
> Bitmap bitmap = CreateBitmap(src, 0, 0, w, h, mt, true);
> canvs.drawBitmap(bitmap, 0, 0, paint);
>
> In this way, we always need create new bitmap for every rotation, it
> is not good way for high performance game or app.
>
> The 2nd way is:
> canvas.save();
> canvas.rotate(degree);
> canvas.drawBitmap(bitmap, 0, 0, paint);
> canvas.restore();
>
> In this way, we avoid creating new bitmap frequently, but the rotation
> bitmap is distortion, the bitmap quality is worse than first way.
>
> So, Is there 3rd way to rotate bitmap with high performance and good
> quality?
> Your any comments are really 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


  1   2   3   4   5   >