Problem with resizing widget on Samsung
I am a Member of the UK parliament and from time to time my phone goes mental with phone calls. I have, therefore, written a widget to make handling phone calls more efficient (less pressing of buttons and swiping). This is available on google play if you search for my name as John Hemming.
There is another MP who wants to use my widget, but he has a Samsung phone. I can get the widget to resize on my HTC SV One, but not on Samsung. The relevant resizeable parameter is set as vertically resizeable (It is designed to sit on the main home screen taking up 2 columns and between 1 and 4 rows telling you who has called you and who you have called with each person only appearing once).
Can anyone suggest why it won't resize on Samsung. It will resize on Sony.
Re: Problem with resizing widget on Samsung
I don't have an answer, but let me just say that it's so cool that we have an MP who writes Android apps on our forum!
Sent from my DROID RAZR using Android Central Forums
Re: Problem with resizing widget on Samsung
Quote:
I am a Member of the UK parliament and from time to time my phone goes mental with phone calls. I have, therefore, written a widget to make handling phone calls more efficient (less pressing of buttons and swiping). This is available on google play if you search for my name as John Hemming.
There is another MP who wants to use my widget, but he has a Samsung phone. I can get the widget to resize on my HTC SV One, but not on Samsung. The relevant resizeable parameter is set as vertically resizeable (It is designed to sit on the main home screen taking up 2 columns and between 1 and 4 rows telling you who has called you and who you have called with each person only appearing once).
Can anyone suggest why it won't resize on Samsung. It will resize on Sony.
I have no knowledge of code what so ever, but I would guess that TouchWiz doesn't like something in your lines of code. Or vice versa. To me that makes the most logical approach. The other person can try installing another launcher (Nova, Go launcher) to see if it works. If if does, it's TouchWiz, if not....I have no idea.
I love Samsung's devices, but hate TouchWiz...I love Nova launcher myself, and Nova is a little better at resizing widgets. Not much, but it is better.
Re: Problem with resizing widget on Samsung
I have got round it by creating multiple widgets with different sizes. They are static on Samsung, but resizable on other phones.
Re: Problem with resizing widget on Samsung
Glad to hear you found a workaround. The issue is that Samsung's TouchWiz launcher (homescreen) doesn't appear to have inbuilt support for unrestricted resizing — at least not when presented with a widget such as yours. If you were to allow completely unrestricted resizing with the RESIZE_BOTH flag, it may or may not have worked, but the only guaranteed fallback is creating multiple different sizes, just as you did.
Also, welcome to AndroidCentral! By all means, feel free to stick around and join the conversation. :)
Re: Problem with resizing widget on Samsung
Quote:
I have got round it by creating multiple widgets with different sizes. They are static on Samsung, but resizable on other phones.
Glad you found a solution. I will check out your app.