Re: [android-developers] bluetooth file transfer failure

2013-03-15 Thread akash roy
@Indicator Veritatis code for mminstream that u r asking for. : private final BluetoothSocket mmSocket; private final InputStream mmInStream; private final OutputStream mmOutStream; public ConnectedThread(BluetoothSocket socket) { Log.d(TAG, create

[android-developers] Disable or Enable Applications through our Application.

2013-03-15 Thread Seshu
Hi All, Is there option Disable or Enable other Android Applications through our Application? If means then please provide steps for how to do?? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

Re: [android-developers] bluetooth file transfer failure

2013-03-15 Thread akash roy
@Lew 1. file constructors are working well and i am pretty sure about that. 2.since i am trying on some small sized files so int perfect for it. 3.i was actually trying to clean the buffer before inserting any other details but i didn't noticed that i was deallocating the buffer. 4.the receving

[android-developers] setClipChildren(false) and MotionEvent

2013-03-15 Thread marcin kolonko
is it possible for views to recieve touchevents when they are made visible through setClipChildren(false)? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

Re: [android-developers] Re: Can this variable become null?

2013-03-15 Thread user123
Statics? The state of the singleton is instance, not class based. Besides of the singleton itself. But it's private. And you access it using public static void getInstance() { if (instance == null) { intance = new Whatever(); } return instance; } If the system destroys the

[android-developers] Simultaneous Dual capture camera API

2013-03-15 Thread jdmitch
Does the normal Android camera API support simultaneous dual capture (as can be seen in the Galaxy s4 and LG Optimus Pro G) or are these limited to the OEMs' proprietary camera apps. I haven't been able to find very specific documentation on this from either Samsung or LG, and it didn't seem

Re: [android-developers] Simultaneous Dual capture camera API

2013-03-15 Thread Raymond Rodgers
I'm not an expert on the camera API, I've only poked at it a little, but I didn't see anything in it that would prevent you from accessing multiple cameras simultaneously. Maybe there's some locking mechanism or something that would ordinarily prevent it, but if there is, it didn't seem to be

Re: [android-developers] Re: Can this variable become null?

2013-03-15 Thread Kostya Vasilyev
On Friday, March 15, 2013 5:29:03 AM UTC+4, Lew wrote: Kristopher Micinski wrote: I guess the bigger problem that in Android static data members cannot be statically checked to be alive. [...] if (gInstance != null) not working in Android for some reason? Moreover, in Android it's

Re: [android-developers] Disable or Enable Applications through our Application.

2013-03-15 Thread Mark Murphy
On Fri, Mar 15, 2013 at 3:52 AM, Seshu s.seshu...@gmail.com wrote: Is there option Disable or Enable other Android Applications through our Application? Fortunately, no. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog

[android-developers] create a dialler

2013-03-15 Thread ilias pakalidis
hello I am new to android os and I am working on a project to create a dialler.My problem is the fact that when I end the call I want to be redirected back in my app.Thank you! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Show price on play.google.com in different currencies

2013-03-15 Thread FrEaKmAn
Hello I'm interested to know the price for any application in different currencies. Is it possible to see that? Probably I just need to pass some GET parameter. Thanks -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Re: Can this variable become null?

2013-03-15 Thread TreKing
On Fri, Mar 15, 2013 at 7:56 AM, Kostya Vasilyev kmans...@gmail.com wrote: So, don't really understand what all the bashing is about. It's a tool, use it correctly, and you'll be fine; use it wrong, and you could end up with a sore finger. Word. The Singletons are evil, if you use them

Re: [android-developers] Re: Can this variable become null?

2013-03-15 Thread Indicator Veritatis
Both mentalities are bad. I would actually venture to say that the singletons are evil mentality is worse, since enthusiasts tend to grow out of the singletons are awesome phase. But if someone believes that all singletons are always evil, how do you persuade them of the depth of their error?

Re: [android-developers] bluetooth file transfer failure

2013-03-15 Thread Indicator Veritatis
Thanks for posting that link, Lew. I try to follow that practice myself, too. But this link expresses it SO well. The only thing they don't mention that I find worthy to add is that while constructing that SSCCE, one often finds the solution to the problem. So it is worth the extra time, one

Re: [android-developers] Re: glDrawElements issue

2013-03-15 Thread Colton Wehking
That's not really the issue, just can't figure out what's wrong with this public void onDrawFrame(GL10 unused) { GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT); long time = SystemClock.uptimeMillis() % 1L; float angleInDegrees = (360.0f / 1.0f) * ((int) time);

Re: [android-developers] Re: glDrawElements issue

2013-03-15 Thread bob
Why are you passing a non-zero value in for the stride? I would expect the stride to be zero. On Friday, March 15, 2013 3:47:29 PM UTC-5, Braindrool wrote: That's not really the issue, just can't figure out what's wrong with this public void onDrawFrame(GL10 unused) {

[android-developers] Developer payouts on the 15th

2013-03-15 Thread niko20
I don't understand how Google always says payouts will be a certain date, but you end up waiting 2 to 3 days longer. For example, if they say payout is going to now be on the 15th, I would expect a payout to be applied at Midnight on the 14th. This is exactly what my full time workplace does.

Re: [android-developers] Re: glDrawElements issue

2013-03-15 Thread Colton Wehking
Like I said, I've tried everything I can think of. Same 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

Re: [android-developers] Re: Can this variable become null?

2013-03-15 Thread Kristopher Micinski
On Fri, Mar 15, 2013 at 5:50 AM, user123 ivanschu...@gmail.com wrote: And the possibility that someone can do bad things with the singletons, like storing views or other things which can lead to memory leaks is not a reason to stop using them. You can do this with any class. Let's take a

[android-developers] Re: Developer payouts on the 15th

2013-03-15 Thread bob
On Friday, March 15, 2013 4:04:02 PM UTC-5, niko20 wrote: I don't understand how Google always says payouts will be a certain date, but you end up waiting 2 to 3 days longer. For example, if they say payout is going to now be on the 15th, I would expect a payout to be applied at Midnight

[android-developers] Re: Developer payouts on the 15th

2013-03-15 Thread niko20
Midnight on the 14th IS the 15th, my current employer works just this way. I get paid on Fridays. But the transfer starts Thursday at Midnight. On Friday, March 15, 2013 4:13:43 PM UTC-5, bob wrote: On Friday, March 15, 2013 4:04:02 PM UTC-5, niko20 wrote: I don't understand how Google

Re: [android-developers] Re: Can this variable become null?

2013-03-15 Thread Kristopher Micinski
On Fri, Mar 15, 2013 at 8:56 AM, Kostya Vasilyev kmans...@gmail.com wrote: On Friday, March 15, 2013 5:29:03 AM UTC+4, Lew wrote: Kristopher Micinski wrote: I guess the bigger problem that in Android static data members cannot be statically checked to be alive. [...] if (gInstance !=

Re: [android-developers] Re: Can this variable become null?

2013-03-15 Thread Kristopher Micinski
Ah, I also apologize for my previous (perhaps misleading) line I guess the bigger problem that in Android static data members cannot be statically checked to be alive. By this, I mean that in the standard toolchain (i.e., without static analysis) you can't statically validate your code uses

Re: [android-developers] Re: Can this variable become null?

2013-03-15 Thread William Ferguson
I wasn't going to enter back into this discussion because it's one of those that polarises like checked Exceptions. I also use singletons, but on a rare and very precise basis. And if you have mentored as many developers as I have then you will understand why the default mantra of don't use a

Re: [android-developers] Re: Can this variable become null?

2013-03-15 Thread Kristopher Micinski
This is basically my point: I don't believe you should never use them, it's just that many people present them as an easy obvious solution to something that comes with lots of overhead. Many times they *can* be replaced by specific components. Sure, there are counterexamples and optimizations

[android-developers] Re: Alternative SQLite

2013-03-15 Thread HABIB ZAMAN
Hello Friends i want to know how to communicate an MySQL database in server using our app...Plz do the needful help.. Regarsd Habib On Monday, 25 February 2013 22:43:31 UTC+5:30, Brill Pappin wrote: I don't think I'd every use HSQLdb on a mobile device. I only ever used it on servers and

[android-developers] Re: connecting to mysql database

2013-03-15 Thread HABIB ZAMAN
Hello .. Your problem solved ah? Even am having same problem ... Please help me to over come this problem. thx in advance Regards Habib On Monday, 21 November 2011 00:10:50 UTC+5:30, mark kelly wrote: Hi Im trying to connect to a mysql database which is on localhost. i get the error:

[android-developers] can not set preview buffer format to nv21 on nexus 4

2013-03-15 Thread Qianqian Fang
Based on the help for getSupportedPreviewFormats [1], NV21 should be always supported. However, when I run camParam = mCamera.getParameters(); camParam.setPictureFormat(ImageFormat.NV21); mCamera.setParameters(camParam); on my nexus 4, I get an error setParameters failed. The only way to get

[android-developers] help needed

2013-03-15 Thread ramesh babu
for developing google map application why do we required sha1 key??... -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Finding classes inside a package in Android

2013-03-15 Thread Nitin Khanna
I am trying to find classes inside a package in Android. PathClassLoader.getResources(packageName) does return an Enumeration, but its empty. What am I doing wrong? ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); String path = packagePath.replace('.', '/');