[android-developers] Re: Display Cropped Camera Preview

2013-06-06 Thread kaciula
Four years later, I would like to konw if you have found a good way to show 
a cropped camera preview? I am struggling with this for a couple of days.

On Wednesday, May 20, 2009 10:29:07 PM UTC+3, Max Salley wrote:

 I'm working on an app that requires the user to be able to read some 
 text that's in the camera's preview images.  The camera has plenty of 
 resolution for the range I'm looking at, but when it's shrunk down to 
 fit on the phone's display it's completely unusable.  What I want to 
 do is just display a subset of the preview images, but display them at 
 the native resolution of the image, rather than the scaled down 
 image.  I tried Camera.Parameters.setPreviewSize, but it seems to have 
 no effect (giving it (1, 1) is the same as giving it (100, 
 100), which is the same as some rational value).  I also tried 
 capturing the image using Camera.PreviewCallback.onPreviewFrame 
 andconverting it to a bitmap then using a canvas from a SurfaceView to 
 display a portion of the bitmap, but the SDK has no way to convert 
 from the camera's format to bitmap, and it seems that doing such 
 things in the preview callback is unworkably expensive.  How should I 
 draw a subpicture at native resolution rather than the entire image 
 scaled to fit the phone's screen? 

 Thanks 
 - Max

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




Re: [android-developers] Re: RECEIVE_BOOT_COMPLETED not sent after power off? (works on restart)

2012-12-20 Thread kaciula
I have a similar issue. My users on Samsung Galaxy S 3 report that after 
reboot, my app's alarms don't work anymore.

On my nexus one and other tested devices, everything works OK after reboot.

What would be the solution for this?

On Monday, February 7, 2011 12:18:52 AM UTC+2, Kostya Vasilyev wrote:

 If it really is hibernation (as opposed to a reboot), then alarms *should* 
 persist, and there should be no need to reset them. Anyone have one of 
 those and willing to check?

 --
 Kostya Vasilyev -- http://kmansoft.wordpress.com
 07.02.2011 1:07 пользователь Peter Sinnott psin...@gmail.comjavascript: 
 написал:
  I think the newer HTC phones (Desire HD/Z) support hibernation of some
  sort. I have a vague recollection of it being mentioned at a launch
  event in London.
  
  On Feb 4, 11:31 am, Yorgos X yor...@gmail.com wrote:
  Mysteriously enough (new phone, haven't explored it much), a setting was
  preset to fast boot the device (is called Fast boot - turn off to use 
 some
  Market apps) and this apparently causes the device to start after a 
 power
  off without sending the BOOT_COMPLETED action. Can any of you test this 
 on
  their devices to confirm it is happenning for a fact? I unchecked this
  setting and my receiver works on both power off/startup and restart.
 
  On Fri, Feb 4, 2011 at 1:15 PM, Yorgos X yor...@gmail.com wrote:
   yeah, i have checked the logs and thre is no indication of the app 
 starting
   or the action boot_completed received. the sd is not mounted neither 
 when
   the app is installed or at anytime during the testing process. As 
 I've said
   before, on other devices that only provide power off functionality 
 and not
   bot power off and restart, when I power off and then start up again, 
 the
   action is received normally. On my phone it works well on restarting 
 but not
   when powering off and then starting.
 
   On Fri, Feb 4, 2011 at 1:09 PM, Marcin Orlowski 
 webnet.andr...@gmail.comwrote:
 
   2011/2/4 Yorgos X yor...@gmail.com:
well, i run it from eclipse to install it and then restart and 
 power off
   the
phone to test if it works. Are the apps run straight from eclipse 
 stored
   on
the SD card? i don't know about that to be honest. I haven't done 
 that
explicitly though
 
   No, they are run from internal memory, so that shall be fine.
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to 
   android-d...@googlegroups.comjavascript:
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com javascript:
 android-developers%2bunsubscr...@googlegroups.com javascript:
   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-d...@googlegroups.comjavascript:
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com javascript:
  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: Sole Trader in Germany?

2012-07-23 Thread kaciula
Thanks for all the info.

Indeed, what is the perfect way to handle this is to open a business bank 
account in the company's name. And I think UK is the most appropriate for 
this. But it will take time and it will cost. We can't really afford it 
right now because we're in an early stage of our business and are 
bootstrapping. But we'll move in this direction.

On Friday, July 20, 2012 9:33:08 PM UTC+3, Nobu Games wrote:

 In addition to what I said: the German bank account owner might get into 
 trouble with the German tax system because of the money you earn for him. 
 He is actually obliged to tell the tax office about any kind of income he 
 has and in my book that money you earn counts as his income, since he owns 
 the account.

 I don't know how the German tax office networks with German banks and 
 whether they try to peek into transactions but I think that's a possibility 
 for uncovering fraud. I don't think that you and your company are at any 
 risk here, but your German friend might be.

 In my opinion the only sane way out of this situation is that the German 
 account owner terminates that account and that you open a real business 
 bank account in your company's name.


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

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

2012-07-20 Thread kaciula
Because Android developers from Romania, as well as developers from a lot 
of other countries, can't sell apps on the Android Market. 

http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=150324


On Friday, July 20, 2012 12:06:42 AM UTC+3, bob wrote:

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

 On Thursday, July 19, 2012 7:09:04 AM UTC-5, kaciula wrote:

 Is anyone here a developer who sells Android apps via Google Checkout and 
 is located in Germany?

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



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

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

2012-07-20 Thread kaciula
The entire business is located in Romania (which is in EU). Only the bank 
account is in Germany and the owner is a regular guy who lives in Germany. 
And the account is a Giro account at the Baden Wurtembergische Bank.

Basically, we'd like from time to time to transfer the money from the 
German bank account to our Romanian bank account and to pay all our taxes 
in Romania and not bother at all with Germany. However, we don't know if 
maybe the German bank raises some flags to the local authorities because of 
the money transfers from Google Checkout to the German bank account.

Thanks for the help

On Friday, July 20, 2012 2:39:01 PM UTC+3, superpsycho wrote:

 I´m a german dev-beginner and i can tell you, our taxsystem is as complex 
 as hell... 
 I think you have a german giro-account right? So the way i would go is to 
 contact the local depatment of taxes where your bank is located. They might 
 help you much better than any dev because the whole thing depends on the 
 location of your business... If you have your business in germany you have 
 to pay full taxes at all... if you are located in EU you might have to pay 
 Mehrwertsteuer in germany but your countrydepending taxes (to YOUR 
 country) for the business.. If you locate the business in not EU countrys 
 you have to pay duty and so on and so on... so if you like to tell me which 
 institute you use i´m able to tell you witch departemnt you have to call.

 Have a great day!

 Am Donnerstag, 19. Juli 2012 14:09:04 UTC+2 schrieb kaciula:

 Is anyone here a developer who sells Android apps via Google Checkout and 
 is located in Germany?

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



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

[android-developers] Sole Trader in Germany?

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

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

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

[android-developers] AutoCompleteTextView doesn't show dictionary suggestions

2012-03-05 Thread kaciula


I have a custom AutoCompleteTextView where the user can freely enter text 
and whenever the user writes @ I show a dropdown with suggestions of custom 
usernames. Unfortunately, I also need to show the dictionary word 
suggestions above the keyboard and, for some reason, 
AutoCompleteTextViewdoesn't 
show dictionary suggestions, although it inherits from EditText where it 
does show.

So, does anyone know what the problem is and how to fix it? Or should I go 
to a different route to obtain what I want? I see that the Twitter app has 
both autocomplete and dictionary suggestions when composing new Tweet.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Scenario where initLoader() does not call onLoadFinished()

2011-12-12 Thread kaciula
As I said, the initial bugs were fixed by revision 4 of ACL. However, there 
is still a bug present in both the ACL and Android. I've tested it with 
Android version 3.2 and 4.0. Check out the updated project at 
https://github.com/kaciula/BugRetain

I think this is a pretty important bug. The scenario is this: From activity 
A, go to activity B, switch once the orientation and go back to activity A. 
As a consequence of this bug, I can't write an app with fragments that use 
setRetainInstance and is available in both orientations. I really need a 
workaround until the Android guys fix the issue. Thoughts?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Scenario where initLoader() does not call onLoadFinished()

2011-11-04 Thread kaciula
It turns out that the new revision fixed part of the problem but the bug 
still remains in some cases.

If you take the code I posted and run it, press the button to launch the 
new activity, switch orientations only once and then press BACK, it shows 
the wrong value. The idea is to press BACK from the second activity while 
it's in a different orientation than the initial activity (if that makes 
sense). For example, activity A is in portrait, press button, switch 
orientation of activity B to landscape, press BACK and then enjoy the bug.

Looking more deeply at this, it seems that the problem appears only if 
onLoaderReset() is called. So, if onLoaderReset() is called, subsequent 
calls to initLoader() launches/reconnects the loader but onLoadFinished() 
is never again called.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Scenario where initLoader() does not call onLoadFinished()

2011-10-24 Thread kaciula
The new revision (rev. 4) of android support package fixes these issues.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Monkeyrunner doesn't work after icecream sandwich update

2011-10-19 Thread kaciula
I've just installed the latest Android tools, platform tools and platform.

If I try to run monkeyrunner in a terminal I get the following exception:

Exception in thread main java.lang.NoClassDefFoundError: 
com/android/chimpchat/ChimpChat
at 
com.android.monkeyrunner.MonkeyRunnerStarter.init(MonkeyRunnerStarter.java:60)
at 
com.android.monkeyrunner.MonkeyRunnerStarter.main(MonkeyRunnerStarter.java:188)
Caused by: java.lang.ClassNotFoundException: com.android.chimpchat.ChimpChat
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 2 more

Does anyone know how to fix this?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Scenario where initLoader() does not call onLoadFinished()

2011-10-17 Thread kaciula
However, if I compile it using API Level 7 but run it on a tablet emulator I 
still can reproduce the problem. I thought that if you used the acl, when 
running on a honeycomb device, the built-in fragment implementation would be 
used. But I see that this is not the case here.

Regarding the configChanges workaround, what exactly are the problems that 
appear? Except for 
adding 
android:configChanges=keyboardHidden|orientation|keyboard|screenLayout, 
is there something else I should modify?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Scenario where initLoader() does not call onLoadFinished()

2011-10-11 Thread kaciula
Indeed, the loader manager destroy() method is called and the field 
mDestroyed is set to true. After this, the loader manager is not functional 
anymore. In onLoadComplete() it exits if mDestroyed is set to true. So i 
guess the problem is that the loader manager for that fragment is destroyed 
but our fragment is still alive. I would venture to say that this is a bug.

It would be helpful if we find a workaround. I have a big app with a lot of 
fragments using loaders. For some, I removed setRetainInstance(true) but for 
others I must use setRetainInstance(true).

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Scenario where initLoader() does not call onLoadFinished()

2011-10-11 Thread kaciula
I noticed that this problem doesn't appear if I use a ListFragment with a 
CursorLoader/AsyncTaskLoader and setRetainInstance(true). It only happens 
when I use a basic Fragment with CursorLoader/AsyncTaskLoader and 
setRetainInstance(true).

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Scenario where initLoader() does not call onLoadFinished()

2011-10-11 Thread kaciula
Here you go: https://github.com/kaciula/BugRetain

It uses a CursorLoader to take 2 values from a database through a content 
provider and shows them on screen. Press the button to move to a second 
activity, then press BACK and then switch orientation of device. The values 
from db are no longer showing.

PS: I am eagerly awaiting a thorough chapter for loaders in your books :)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Scenario where initLoader() does not call onLoadFinished()

2011-10-07 Thread kaciula
I have a simple activity with one fragment. The fragment uses a CursorLoader 
to load some data from a ContentProvider. I just call initLoader() inside 
onActivityCreated() and I populate the UI in onLoadFinished(). If I switch 
orientations, everything works as expected (onLoadFinished() is called 
again).

Now, if I move to a new activity, press BACK to get back to my first 
activity and then switch orientations, I see that onLoaderReset() is called 
and then, in onActivityCreated(), although initLoader() is called, 
onLoadFinished() is never called after that. And as a consequence, my UI 
shows no data.

After doing some testing, I see that this problem appears only if I use 
setRetainInstance(true) in my fragment. So what's the deal? And how can I 
fix this without removing setRetainInstance(true)? Do I have to do something 
in onLoaderReset()? Do I have to somehow give the loader the new activity as 
the context?

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: savedInstanceState always null

2011-09-22 Thread kaciula
What you are experiencing is a known bug (at least known by me for
over a year now). Check out my answer here
http://stackoverflow.com/questions/3042420/home-key-press-behaviour/4782423#4782423

I've also filed an issue a couple of months ago. The idea is that in
some situations, after you press HOME and come back to the app, a new
copy of the initial activity is created, instead of resuming the old
one. Check out the details in the link provided.

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

2011-07-04 Thread kaciula
Check out this link: http://code.google.com/p/android/issues/detail?id=15968

From 9th December 2010 RapidSSL and Geotrust certificates have been
issued from a new 2048Bit root.

You have to install an intermediate certificate on the server side.

On Jun 30, 7:17 pm, dashman erjdri...@gmail.com wrote:
 From my Android app, I access my server using
 https and using java classes (e.g. HttpURLConnection)

 Sometimes, I get - but not always and maybe only
 on HTC phones.

  javax.net.ssl.SSLException: Not trusted server certificate

 do a reboot and then works.

 but it happens again later on.

 the certificate is issued by RapidSSL.

 from my desktop browser - FF, IE and Chrome - no complaints.

 any help?

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


[android-developers] Re: Main Activity Launches On Stack Every Time Home Screen Icon Is Clicked

2011-04-11 Thread kaciula
Check out my answer (kaciula user) on this issue on stackoverflow.com:

http://stackoverflow.com/questions/3042420/home-key-press-behaviour/4782423#4782423

I've filed a bug on b.android.com a couple of months ago but the bug
report is still unnoticed.

On Apr 9, 9:14 am, Tony Chuinard tony.chuin...@gmail.com wrote:
 My application consists of a LoginActivity followed by a
 BrowseActivity.  When the user hits the Browse Activity, then hits the
 Home button, then hits the application icon again, the LoginActivity
 relaunches (but they're already logged in and in the browse activity
 so they should be there).

 However, if I hit back, the BrowseActivity is still there, and the
 LoginActivity is revisible when I hit back twice.  It seems like the
 LoginActivity gets pushed to the top of the stack and displayed every
 time the application is launched, but the docs say that the last
 activity from that 'task' will be launched (which is what I want - a
 return to the BrowseActivity).

 I have a static LoginManager class, so I could check if that data is
 null or not in LoginActivity onCreate() and do a finish() if
 necessary, but I feel like that's a huge hack when my application
 should be behaving like this already.

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