Thank for that.

On 12/7/11, [email protected]
<[email protected]> wrote:
> =============================================================================
> Today's Topic Summary
> =============================================================================
>
> Group: [email protected]
> Url: http://groups.google.com/group/android-developers/topics
>
>   - Can Android do "waitForResponse"? [2 Updates]
>     http://groups.google.com/group/android-developers/t/fc6af48460ad584c
>   - Reverse Engineering .APK files [13 Updates]
>     http://groups.google.com/group/android-developers/t/9ab30f65ca9639a1
>   - [android-porting] android.permission.ACCESS_SURFACE_FLINGER error [1
> Update]
>     http://groups.google.com/group/android-developers/t/c61afa8403fba798
>   - surfaceview images [1 Update]
>     http://groups.google.com/group/android-developers/t/8b7c1df9690db514
>   - Texture compression filtering in the market [1 Update]
>     http://groups.google.com/group/android-developers/t/8917e279a24492f7
>   - Where does Locale information reside on Android? [2 Updates]
>     http://groups.google.com/group/android-developers/t/f5366beb145f2150
>   - Can't update my app in the Android Market [1 Update]
>     http://groups.google.com/group/android-developers/t/236675de86858967
>   - After updating sdk from r06 to r15 [1 Update]
>     http://groups.google.com/group/android-developers/t/d34c292347783cf6
>   - Internet read app [1 Update]
>     http://groups.google.com/group/android-developers/t/5d56b26e01614a84
>   - ListView with checkbox using cursor adapter in Android [1 Update]
>     http://groups.google.com/group/android-developers/t/6679f9cb8595cbd4
>   - Can the LVL check for Paid app be done from my free app ? [1 Update]
>     http://groups.google.com/group/android-developers/t/13a156fbd5ab7fd6
>
>
> =============================================================================
> Topic: Can Android do "waitForResponse"?
> Url: http://groups.google.com/group/android-developers/t/fc6af48460ad584c
> =============================================================================
>
> ---------- 1 of 2 ----------
> From: Vincent <[email protected]>
> Date: Dec 06 09:36PM -0800
> Url: http://groups.google.com/group/android-developers/msg/947f95fad6f751d6
>
> Hi,
>
> I am developing an application to communicate with a device via bluetooth.
> Same as the BluetoothChat sample, my application makes a service object,
> and call service.connect() to get a connectedThread for data transmission.
>
> and I have a command method, which takes an integer as its parameter.
>
> the problem is, sometimes, that device returns invalid data.
> So when I want to execute the command with ten different parameter, I need
> to do something like :
>
> for (i = 0; i < 10; i++) {
>     myService.write(command(i));
>     packet = *waitForResponse*(myService);
>
>     if (packet is valid) {
>         do something;
>     } else {
>         i--;
>     }
> }
>
>
> My program is using handler to deal messages, e.g. when the connectedThread
> read some data, it will
>
> mHandler.obtainMessage(ControlActivity.MESSAGE_READ, -1, -1, data)
>                          .sendToTarget();
>
> And there is a handler in my Activity class to deal with these messages.
>
> How can I do something like *"waitForResponse"* on Android?
> or Is there any other way to meet my requirement?
>
>
>
> API Level: 13
>
>
> ---------- 2 of 2 ----------
> From: Kristopher Micinski <[email protected]>
> Date: Dec 07 12:54AM -0500
> Url: http://groups.google.com/group/android-developers/msg/eefbb250f7028e8b
>
> In general, you're probably thinking about this the wrong way.  If
> something is implemented asynchronously, you should also implement it this
> way...  So for example, you should write your code such that in the
> handling takes care of it.
>
> Conceptually you can think of a transformation like this as slicing the
> code off at a continuation, and then taking your original function and
> decomposing it into several pieces.
>
> In this case you can move bits and pieces of your loop around and write
> your handler something like this:
>
> handleMessage:
>   if (i >= 10) then
>     ..
>   if packet is valid, then
>     ...
>   else
>     --i;
>   sendMessage();
>
> Trying to shoehorn the synchronous model into the asynchronous model is
> probably a bad idea, however..
>
> One more thing, you probably shouldn't be handling these messages within
> the activity class, right?  Unless you are doing UI stuff where it makes
> sense, you should have this done in another thread...
>
> kris
>
>
>
>
>
> =============================================================================
> Topic: Reverse Engineering .APK files
> Url: http://groups.google.com/group/android-developers/t/9ab30f65ca9639a1
> =============================================================================
>
> ---------- 1 of 13 ----------
> From: Anil Jagtap <[email protected]>
> Date: Dec 06 05:37PM -0800
> Url: http://groups.google.com/group/android-developers/msg/bc2e5781feb2ccf0
>
> Even if the application is reverse engineered and say an cracker gets
> 100% of your code. Still, what is use? it is your app that is first in
> android market in case of android market apps. If someone makes a
> clone, it is still a 'clone' and you are the original. We are using
> Java and hence risk of code stealing would always be there for us. May
> developing in C may help, but again it has its own complications.
>
> Cheers
> --
> anil
> Android Application Developer
>
>
>
> ---------- 2 of 13 ----------
> From: Kristopher Micinski <[email protected]>
> Date: Dec 06 08:41PM -0500
> Url: http://groups.google.com/group/android-developers/msg/2bcd153d1a8df209
>
>> Java and hence risk of code stealing would always be there for us. May
>> developing in C may help, but again it has its own complications.
>
>> Cheers
>
>
> That's not what he's worried about,
>
> he's worried that somebody will reverse engineer some authentication policy
> or something and reveal something other than just the source to the app..
>
> kris
>
>
> ---------- 3 of 13 ----------
> From: Kristopher Micinski <[email protected]>
> Date: Dec 06 08:42PM -0500
> Url: http://groups.google.com/group/android-developers/msg/a1e09bfb501b57f0
>
> On Tue, Dec 6, 2011 at 8:41 PM, Kristopher Micinski
>> policy or something and reveal something other than just the source to the
>> app..
>
>> kris
>
> Sorry, I thought he had specified this,
> though, that is what you're worried about, no?
>
> kri
>
>
> ---------- 4 of 13 ----------
> From: RLScott <[email protected]>
> Date: Dec 06 08:29PM -0800
> Url: http://groups.google.com/group/android-developers/msg/59511bb5c1038b5f
>
>
>> > kris
>
>> Sorry, I thought he had specified this,
>> though, that is what you're worried about, no?
>
> That's right.  It is an expensive app for a narrow market, which is
> why I am not distributing through the Google Marketplace.  The
> licensing scheme involves a free-trial mode when the app is first
> installed.  Then to unlock the paid mode, the user e-mails me the wi-
> fi MAC address.  I then calculate a license number that hashes into
> that MAC address and send them that license number.  They enter that
> license number and my code checks that the license number hashes into
> the MAC address.  The hash is really a trap-door function that is
> difficult to invert without the private key that only I have.  Of
> course someone could find where I am checking the hash and patch my
> code to skip around it.  But I am hoping that no one will find a way
> to defeat my code without patching it (i.e. inverting the trap-door
> function).  The code that inverts the trap-door function does not
> exist in the app.  It only exists on my computer.
>
>
> ---------- 5 of 13 ----------
> From: Kristopher Micinski <[email protected]>
> Date: Dec 07 12:15AM -0500
> Url: http://groups.google.com/group/android-developers/msg/a04b06bee707d9ca
>
> How much does your app cost?
>
> There seem to be a lot of questions like this lately, but in reality I
> think that putting in hours of effort to defeat the tiny fraction of people
> who would even attempt this is mostly a waste of time, let's say you spend
> 100 hours coming up with a defensive strategy, and your app costs $100, if
> you value your time at $10/hour (conservatively) then this would roughly
> equate to you needing to stop at least ten people, I highly doubt that a
> very narrowly targeted app will have even that many people trying that hard
> to break it...
>
> kris
>
>
>
> ---------- 6 of 13 ----------
> From: Christopher Van Kirk <[email protected]>
> Date: Dec 07 01:19PM +0800
> Url: http://groups.google.com/group/android-developers/msg/2b8174cf40779539
>
> Unfortunately, the truth is that you're not trying to stop 10 people,
> you're trying to stop 1 person from making a version that thousands can
> install without paying. It only takes one to let the cat out of the bag.
>
> On 12/7/2011 1:15 PM, Kristopher Micinski wrote:
>
>
> ---------- 7 of 13 ----------
> From: Kristopher Micinski <[email protected]>
> Date: Dec 07 12:23AM -0500
> Url: http://groups.google.com/group/android-developers/msg/be4cfa50965c7082
>
> On Wed, Dec 7, 2011 at 12:19 AM, Christopher Van Kirk <
>
>>  Unfortunately, the truth is that you're not trying to stop 10 people,
>> you're trying to stop 1 person from making a version that thousands can
>> install without paying. It only takes one to let the cat out of the bag.
>
> I suppose that is true, and I should have mentioned that, but even at this
> point I feel like you'll still have the majority of people going to your
> app, is this accurate?  Perhaps not, I don't sell my apps, so I'm
> unqualified and probably shouldn't be speaking on this point ;-).. Though
> you can get a copycat version of your app taken down fairly quickly, no?
>  Though this still doesn't stop the pirate version of the apk from floating
> around on the web.
>
> kris
>
>
> ---------- 8 of 13 ----------
> From: RLScott <[email protected]>
> Date: Dec 06 09:28PM -0800
> Url: http://groups.google.com/group/android-developers/msg/8cb58d340eee54fe
>
> On Dec 7, 12:15 am, Kristopher Micinski <[email protected]>
> wrote:
>> How much does your app cost?
>
> $300.  See TuneLab Piano Tuner for iPhone.
>
>
> ---------- 9 of 13 ----------
> From: Christopher Van Kirk <[email protected]>
> Date: Dec 07 01:32PM +0800
> Url: http://groups.google.com/group/android-developers/msg/dd119d88121862a2
>
> Well, in my opinion it's an impossible task. If the software can be
> separated from the hardware and examined, you're sunk. The best you can
> do is to make the cost of breaking in far exceed the cost of the app
> itself. That shouldn't be hard to do for the average app, since they're
> so cheap.
>
> On 12/7/2011 1:23 PM, Kristopher Micinski wrote:
>
>
> ---------- 10 of 13 ----------
> From: Christopher Van Kirk <[email protected]>
> Date: Dec 07 01:38PM +0800
> Url: http://groups.google.com/group/android-developers/msg/2e6941daa0af37a1
>
> Why is sound related software so expensive?
>
> On 12/7/2011 1:28 PM, RLScott wrote:
>
>
> ---------- 11 of 13 ----------
> From: RLScott <[email protected]>
> Date: Dec 06 09:43PM -0800
> Url: http://groups.google.com/group/android-developers/msg/34448a05c3be3f00
>
> On Dec 7, 12:38 am, Christopher Van Kirk
>> Why is sound related software so expensive?
>
>> On 12/7/2011 1:28 PM, RLScott wrote:
>
> If you think that's expensive, check out my nearest competitor on
> iPhone: Verituner.  He charges double what I charge.
>
>
> ---------- 12 of 13 ----------
> From: Kristopher Micinski <[email protected]>
> Date: Dec 07 12:46AM -0500
> Url: http://groups.google.com/group/android-developers/msg/a194d39269e7b97d
>
>
>> > On 12/7/2011 1:28 PM, RLScott wrote:
>
>> If you think that's expensive, check out my nearest competitor on
>> iPhone: Verituner.  He charges double what I charge.
>
> Is the algorithm extremely complicated?  Is there an amazing amount of
> engineering involved in doing this?
>
> At $300 I feel like I would be motivated to pump out a a nearly as good
> free version just so people wouldn't have to pay it, so I'm assuming there
> is some deep engineering knowledge that makes this extremely involved.
>
> kris
>
>
> ---------- 13 of 13 ----------
> From: Christopher Van Kirk <[email protected]>
> Date: Dec 07 01:51PM +0800
> Url: http://groups.google.com/group/android-developers/msg/943246be843dcbe9
>
> That's not really an answer, as such.
>
> Anyway, since you're going such a long way down the security route, why
> don't you, a) require a handshake with home base...code that is less
> likely to be manhandled by outsiders, and/or b) hash your binary do
> prove that it hasn't been tampered with.
>
> Paranoia seems rampant in the sound industry too. I guess it must have
> something to do with the RIAA.
>
> On 12/7/2011 1:43 PM, RLScott wrote:
>
>
>
> =============================================================================
> Topic: [android-porting] android.permission.ACCESS_SURFACE_FLINGER error
> Url: http://groups.google.com/group/android-developers/t/c61afa8403fba798
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: "[email protected]" <[email protected]>
> Date: Dec 07 01:38PM +0800
> Url: http://groups.google.com/group/android-developers/msg/7582a4672af1ebc7
>
> Thanks for your reply. Default my /dev/graphics/* is belong to graphics
> group.
>
> I change the android.permission.ACCESS_SURFACE_FLINGER permission
> protectionLevel from signature to normal
> in frameworks/base/core/res/AndroidManifest.xml file, it fixed the
> permission problem, although it's a bad idea.
>
> Finally We add same interface in MediaPlay, solve our problems.
>
> # cd /dev/graphics
> # ls -l
> crw-rw---- root     graphics  29,   4 2010-01-01 12:00 fb4
> crw-rw---- root     graphics  29,   3 2010-01-01 12:00 fb3
> crw-rw---- root     graphics  29,   2 2010-01-01 12:00 fb2
> crw-rw---- root     graphics  29,   1 2010-01-01 12:00 fb1
> crw-rw---- root     graphics  29,   0 2010-01-01 12:00 fb0
>
>
>
> --
> Jiang Bian
> http://www.wifihack.net/
> http://golang-china.org/
>
>
>
> =============================================================================
> Topic: surfaceview images
> Url: http://groups.google.com/group/android-developers/t/8b7c1df9690db514
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: JCR <[email protected]>
> Date: Dec 06 07:44PM -0800
> Url: http://groups.google.com/group/android-developers/msg/a5e0876bb11be0b7
>
> Hello,
> I created a layout where my surface view has been resized from the
> "original size", I did the following:
>
>         ViewGroup.LayoutParams params =
> mSurfaceView.getLayoutParams();
>         int
> mPixels=getResources().getDimensionPixelSize(R.dimen.profile_pic_dimension);
> //
> 200
>               params.width=mPixels;
>       params.height=mPixels;
>         mSurfaceView.setLayoutParams(params);
>       
> this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
> and I obta
> in a view like this:
> http://goo.gl/8ZXvR
>
> but then.. whenever I take the picture.. it doesnt saves as how I can
> see it on the view... but instead it saves it normal size like if the
> view was taking the whole screen (like if the surfaceview was never
> resized).
>
> I tried using this:
>
> Camera.ShutterCallback mShutterCallback = new Camera.ShutterCallback()
> {
>       @Override
>       public void onShutter() {
>               Camera.Parameters p = mCamera.getParameters();
>                 p.setPictureSize(mSurfaceView.getWidth(),
> mSurfaceView.getHeight());
>                mCamera.setParameters(p);
>               }
>       };
>
> but still didnt get the image size i wanted to.
> Any help to achieve this would be greatly appreciated.
>
>
>
> =============================================================================
> Topic: Texture compression filtering in the market
> Url: http://groups.google.com/group/android-developers/t/8917e279a24492f7
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: Christopher Van Kirk <[email protected]>
> Date: Dec 07 11:17AM +0800
> Url: http://groups.google.com/group/android-developers/msg/64e797615bc1830
>
> The docs say that the Android Market filters apks using the
> "supports-gl-texture" tag in the manifest. It goes on to say that
> absence of that tag is taken by the market to mean that ALL compression
> options are supported.
>
> How can one go about having two APKs, one supporting, say, ETC1 format,
> and the other supporting no compression formats (e.g. using decompressed
> PNGs)?
>
> Is this not possible? Wouldn't the APK with no tag be taken before the
> compression filtered APK since its compression behavior is more permissive?
>
> Cheers,
>
> Chris...
>
>
>
> =============================================================================
> Topic: Where does Locale information reside on Android?
> Url: http://groups.google.com/group/android-developers/t/f5366beb145f2150
> =============================================================================
>
> ---------- 1 of 2 ----------
> From: Nikolay Elenkov <[email protected]>
> Date: Dec 07 10:38AM +0900
> Url: http://groups.google.com/group/android-developers/msg/814e67458cbae4d0
>
>> I know in plain Java, it's in resource files, but where is it on
>> Android?
>
> Don't have access to the source code right now, but my guess
> would be in one of the framework's string.xml files.
>
>
> ---------- 2 of 2 ----------
> From: Zsolt Vasvari <[email protected]>
> Date: Dec 06 06:25PM -0800
> Url: http://groups.google.com/group/android-developers/msg/4ac591e891da3fd7
>
> Not that I can see.  I see translated text in them, but not formatting
> info.
>
>
>
>
> =============================================================================
> Topic: Can't update my app in the Android Market
> Url: http://groups.google.com/group/android-developers/t/236675de86858967
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: Susan Crayne <[email protected]>
> Date: Dec 06 09:20PM -0500
> Url: http://groups.google.com/group/android-developers/msg/ab2eec26b52d9942
>
> I realized yesterday that I had signed in with the wrong account.
> "uploaded an iPhone app" -- very funny.
>
> Susan
>
>
>
>
> =============================================================================
> Topic: After updating sdk from r06 to r15
> Url: http://groups.google.com/group/android-developers/t/d34c292347783cf6
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: Anil Jagtap <[email protected]>
> Date: Dec 06 05:50PM -0800
> Url: http://groups.google.com/group/android-developers/msg/e82b25d92effaa2a
>
> Simple Google search given me this
>
> http://androidbridge.blogspot.com/2011/09/error-retrieving-parent-for-item-no.html
>
> --
> anil
> Android Application Developer
>
>
>
>
> =============================================================================
> Topic: Internet read app
> Url: http://groups.google.com/group/android-developers/t/5d56b26e01614a84
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: TreKing <[email protected]>
> Date: Dec 06 11:42AM -0600
> Url: http://groups.google.com/group/android-developers/msg/e7198f0d58c67f18
>
>
>> anyone could help me ??? For some it isnt work ??
>
>
> http://www.catb.org/~esr/faqs/smart-questions.html
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>
>
> =============================================================================
> Topic: ListView with checkbox using cursor adapter in Android
> Url: http://groups.google.com/group/android-developers/t/6679f9cb8595cbd4
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: TreKing <[email protected]>
> Date: Dec 06 11:41AM -0600
> Url: http://groups.google.com/group/android-developers/msg/56475bcbe6443b59
>
>
>> But I need my ListView to have a checkbox for each item so the user is
>> able to select multiple items, then the selected items should be able
>> to identified so that I can do some stuff with those items.
>
> So have your adapter's getView() return a view that has a checkbox and
> handle its clicking accordingly.
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>
>
> =============================================================================
> Topic: Can the LVL check for Paid app be done from my free app ?
> Url: http://groups.google.com/group/android-developers/t/13a156fbd5ab7fd6
> =============================================================================
>
> ---------- 1 of 1 ----------
> From: Kostya Vasilyev <[email protected]>
> Date: Dec 06 09:32PM +0400
> Url: http://groups.google.com/group/android-developers/msg/e4539b352714f63c
>
> 2) is definitely true.
>
> I really wish in-app purchases of managed items were shown in the
> Market app, just like existing purchases of paid apps are, even if
> those app are not installed.
>
> 6 декабря 2011 г. 21:21 пользователь Kevin TeslaCoil Software
>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to