RecyclerView - Android Software Development

Hello,
I am using a RecyclerView from the support library and i am currently displaying some view with a CheckBox inside. The checkbox is bound to the currently displayed object. When I click the checkbox, some background thread is activated to update the object in the database and then to produce a updated list of objects for the recycler view. The updated list will be given back to the main thread and adapter.notifyDataSetChanged() will be called. This happens in a matter of milliseconds and is working fine. But i've got one problem: The checkbox animation is stopped the moment notifyDataSetChanged is called. I've tried stuff like calling "setIsRecyclable(true)" on the holder and everything, but i have no idea how to stop the view from stopping my animations. :/
Do you guys have any idea?
Olli
Okay never mind, i've got it! Rubber duck debugging at it's best. While writing the post i got the idea, that the recyclerview can not know which item is which after the change. So I called "setHasStableId(true)" on my adapter and implemented "getItemId" which not only fixed my problem, but also added nice animations! Took me only 3 hours to get to this conclusion! Thank you, XDA!

Related

Fun with Scrollbars

Okay - I know how to change the width of scroll bars but what I am wondering is if there is a way to control where the start or end. Basically, I like to display my calender on my screen and I prefer the Calender app to the Today Agenda plugin included in the Faria ROM. When I get lots of appointments it puts scroll bar on the front screen.
Problem is that these start below the date line and block off part of the screen that I want to see. As you can see from the attached screen shot, the right hand side of the PhoneAlarm control panel is not visible, so I cannot see signal strength. I know I can see it at the top, but let's just say I am anal like that
What I wondering is if there is a way to force the scroll bars to start below the speed dial plug-in?
I don't think so. But if you use a different plugin for your calendar, then some of those can have a fixed size and their own scroll bar. I use Pocket Breeze and have mine set up just for that reason. PB has a scrollbar but the whole screen does not.
BTW: What is the tool bar right under your Date plugin???
BTW: What is the tool bar right under your Date plugin???
it's phonealarm,
i second 'the change the today agenda plugin height'
and also try out vijay's toggle to gain screen space
http://forum.xda-developers.com/showthread.php?t=243211
The tool under the date plugin is PhoneAlarm.
It's a great tool, and Bruce the author is a great developer, but I've had a few troubles >= WM5.
But, I love the app, and AlarmToday.
dcdivenut: regarding the scrollbars, it is possible but a little complicated and you have to registry edit, so backup first.
1. Backup Registry, then using a good registry editor go to
HKLM > Software > Microsoft > Today > Items
2. Find the Plugin you want to be scrollbar less, eg in my case VJAudioNotes.
3. Glance through the entries and find the one that says "Type". Double click type and change the value to 5
4. Go into Settings > Today and make some minor change to your today screen to force it to refresh (or just soft reset). Hopefully the changes will now be reflected.
This will force the plugin to the top of the screen and force scrollbars to occur under that plugin.
Eg:
V
Thanks
Thanks for the ideas (and sorry for the delay in gratitude, it has been a crazy day at work!)
The bar is indeed phoneAlarm and I am using the B&W Pure skin in minimized mode. It is a VERY useful tool that adds true profile capability with both time and activity based profile switching. The product has great support (forum based) and the next version (1.6) is in beta right now. There is also a lite version.
I will try some of the solution suggested and see what I can make work. I really wanted to stay away from utilizing another app just to prevent scroll bars so I will give vijay's process a shot and see what happens.
Worked perfectly
I tried Vijay's suggestion and it worked perfectly. Then for kicks and giggles I tried it with Battery status as well and it worked there too, forcing the scrollbar below that. Then I tried it with the photo dialer and it would not take so this is where I am at now, which is definitely a situation I can live with. Thanks Vijay!!
Not that I'm "Mr. OG" and been around this forum for a long time but I've done a **** load of reading in this forum and never once came across this. That is a fantastic little tip there VJ!
Good stuff!
j3d1n4s7y said:
I've done a **** load of reading in this forum and never once came across this. That is a fantastic little tip there VJ!
Good stuff!
Click to expand...
Click to collapse
That's what I'm here for. I have to say, I've also excreted an enormous amount of reading on the site, and can't say I've seen this tweak either, but one day I was fussing about with my plugins and thought I'd try it, and hey presto, Robert's your father's brother.
Post more screenshots guys.
V

Calendar bug in touch HD ?

I've got an appointment set up in Outlook on the PC for 7pm-11:30pm this evening.
When I synchronised, the home screen on the HD says "Tomorrow 19:00 - 23:30" instead of "Today"
If I tap the appointment on the home screen to enter the calendar program, it correctly shows under today's date, with nothing tomorrow.
Possible bug in TouchFlo ?
Anyone else seen this ?
Or am I being really dumb and missing something obvious ?
EDIT : After a soft reset, the word "tomorrow" vanishes. So it looks like TouchFlo failed to update the home screen properly until the device was reset.
my bug is different
I have a different bug, no mine doesnt seem to do what you say... as far as I can see...
My bug is that when you set in options to always display day, week or month view and you quit calendar and start it again, bang it goes back to Agenda view (which is rubbish)... is there a fix to get it to stay in what its asked to stay in.
truthseekers said:
I have a different bug, no mine doesnt seem to do what you say... as far as I can see...
My bug is that when you set in options to always display day, week or month view and you quit calendar and start it again, bang it goes back to Agenda view (which is rubbish)... is there a fix to get it to stay in what its asked to stay in.
Click to expand...
Click to collapse
I'm seeing the same thing. When selecting the calendar or appointment from touchflo it always takes you to the agenda view as opposed to the default view you select in the calendar.
bugsy said:
I'm seeing the same thing. When selecting the calendar or appointment from touchflo it always takes you to the agenda view as opposed to the default view you select in the calendar.
Click to expand...
Click to collapse
I was having the same issue.
I needed to reset my device (Pressing power button until it gives the pop up to turn off) and once it came back now it is working fine..
I can set it which way I want now and the setting is sticking...
...and more:
I got all of them... calender always opening in agenda view, a TOMORROW instead of a TODAY until reset, AND another one: IF you activate lets say THREE alarms, only the first one shows up on the today screen, no matter what time it is... So if it the first alarm is over, my Touch ELF's display would change to show to the next open one, but the HD does NOT. Ridiculous...
I see 4 every day all the call.!?Sync by activesync.How to delette this sync?
I too am bothered with this problem.
I want my calendar view set to Month view. So I've choosen Month view form the options and everything seems OK. However, everytime I choose calendar from the home screen it briefly starts in Month view, and then opens the agenda view.
I've tried everything I could find on the net to solve this problem, including:
- Adjusting the calendar to month view and afterwards soft-resetting my HD. Still the same problem.
- Adding -vm to the shortcut in the calendar shortcuts in the Windows directory and in the Windows/Startup directory. this opens the calendar in month view, but from the Home screen still no success.
- Searching the registry for relevant settings, but i'm not knowledgeable enough yet to find the correct ones.
By the way, if I set my calendar view to Day or Week, the same type of problem occurs.
Since I really don't like the Agenda view this really starts to annoy me.
Any other thoughts out there on something I could try?
Regards, Jack
i have the same problem! does anyone know abetter more fingerfriendly calendar program with tf3d integration?
Deixi
Strange stuff...
I don't have the problem everybody describes, but instead next day appointments show with a DS_TOMORROW: prefix instead of Tomorrow: The font is big and it occupies quite a lot of space, looks buggy and pretty annoying.
With regard to a finger friendly calendar - I used Agenda One, but it doesn't work from TF3D Home screen by default - the link needs to be edited, and I can't find the thread where the way to do it was described.
With regard to opening the calendar in the "right" view, it should be relatively easy to fix.
Searching the registry won't help because the links in RF3D seem to be hardcoded - this is the bad news.
The good news is that there's a Manila Patcher which allows to change things. If you know the arguments (somebody mentioned -vm), you can change those.
With regard to today's events prefixed with "Tomorrow", it seems that this is indeed a Manila bug, it just doesn't refresh data. You don't have to reset the device, disabling and enabling Manila is enough. This is not a workaround of course, because resetting is actualy easier, just to reiterate that TF3D is at fault.
Not 100% sure, but if I'm using the device around midnight then TF3D doesn't roll the appointments. If I'm not then it does.
Could be a complete red-herring though. . .
Does HTC have any bug tracking system available for the public, at least for submitting bugs?
Thanks for the tip on SSMaPa vangrieg!
Installed it, added "-vm" in the arguments box belonging to calendar.exe, and after some messages I am now enjoying my calendar in glorious Month view!
And before I forget, the other possible arguments are: -vd for Day view, -vw for Week view, -vy for Year view and of course -va for the dreaded Agenda view
By the way, this is what HTC Support mailed me after just one day's wait:
In order to solve your problem, you will need to hardreset your device. All data and settings will be deleted, so please back-up all your data first. Remove your SIM and memory card and go to Start, Settings, System, Clear Storage and follow the on-screen instructions.
Click to expand...
Click to collapse
Might try that some day, but for now this seems to be werking fine!
Regards, Jack
fasty said:
I've got an appointment set up in Outlook on the PC for 7pm-11:30pm this evening.
When I synchronised, the home screen on the HD says "Tomorrow 19:00 - 23:30" instead of "Today"
If I tap the appointment on the home screen to enter the calendar program, it correctly shows under today's date, with nothing tomorrow.
Possible bug in TouchFlo ?
Anyone else seen this ?
Or am I being really dumb and missing something obvious ?
EDIT : After a soft reset, the word "tomorrow" vanishes. So it looks like TouchFlo failed to update the home screen properly until the device was reset.
Click to expand...
Click to collapse
I too have this problem, and the thing at fault here is apparently the Touch Flo 3D interface. Just as described in the original post, the calendar app itself displays everything correctly, but on the Today Screen in Touch Flo, "tomorrow" entries do not change over to "today entries" when the date changes, i.e. it fails to update.
A soft reset does indeed correct the problem, but it is also sorted out if you change the calendar content in some way. This morning, for instance, I made a simple edit (changed the location variable) in one of the entries, and PRESTO! - the entries on the Today screen were properly presented.
Now, I'm not a programmer, but it seems to me that the Today screen doesn't recognise a date change as something that should trigger an update. Shouldn't it be able to force this somehow?
Speaking about Calendars, does anyone know how to change the text color of the topic while on the TFLO3D home screen.
It is a grey color and it makes it impossible to read.
Hi there, I have the same bug with Touch Flo, but no need to reset the phone. Just go in Start / Settings / Today, untick Touch Flo, do OK, this closes the Touch Flo applications. Then rego there to tick Touch Flo, this runs Touch Flo with the right information.
HTC advised me to hard-reset the device. The problem continues.
Soft resetting touch-flo does seem to cure the problem of the immediate appointment, but it is not a permanent fix.
- Steve
I have another bug in the calendar of the Touch HD.
When I create an all-day event with a reminder, it just doesn't remind me : no ring, no vibe, just the screen that is switched on, and the pop-up appear. But it works fine with a regular appointment. Do you have the same bug ?
I don't know about you guys but i wanted to test this out so i entered some false appointments for 3 days in a row and i'm on the 2nd day and it has worked wonderfully.
It doesn't say 'today' but the top rows are showing today and has 'tomorrow' for the the appointment tomorrow.
I waited till midnight and it did roll over.
Or is this problem only via syncing from Outlook or something?
I have entered a few bogus meetings for the next day on the phone itself to test out your theory and on midnight the Tomorrow tag simply stayed there.
So once again I have no idea what triggers the bug.

[Q] Confused with coding for layout.

Hi there, long time lurker first time poster here!
Slowly getting into android but i really cant get my head around the layouts. I would love to be able to use the AbsoluteLayouts but that isn't a good idea anymore.
Basically after some work i have managed to get a gallery working at the top of the screen. I want my app to look like this in essence: Ok can't post outside links at the moment, fair enough. Think of the android market. Icons to the left and a bit of information for each app next to it and a buy button on the right.
However i have no idea where to start off. Since i have the gallery already i have no idea how i can add things underneath it without screwing anything up.
Can anyone help? Thanks in advance!
Sorry to bump but the issue has changed, I have built an app but would like like the text to be besides the icon. Any chance someone can help? Using a linear layout.
http://img263.imageshack.us/i/sellscreen.jpg/
RED_ said:
Sorry to bump but the issue has changed, I have built an app but would like like the text to be besides the icon. Any chance someone can help? Using a linear layout.
http://img263.imageshack.us/i/sellscreen.jpg/
Click to expand...
Click to collapse
Are you using a List View? Looks like one.
How do you build up your content for the list?
In my view the best solution for your problem would be:
- Use a ListView
- Build your own ListAdapter (drived from BaseAdapter for example)
The Adapter builds the view for each item (or recycles an already built up view, the ListView handles that).
The view for each item would be a horizontal oriented LinearLayout with two items (the image and the text) and the adapter fills the layout with the information of the current item.
For better layout handling I would define the layout for the items in an extra xml file and use the LayoutInflater-Service inside the Adapter (if a view has to be built).
Hope this helps and points into a helpful direction
Devmil
Thanks for replying, managed to find a solution in the end without using ListView. Thought about moving to a RelativeLayout as its more effcient but as my app is very small anyway in the end i've just gone and used nested LinearLayouts with a textview and imageview in each one.
Ridiculously simple when you look back on it.
I was actually going to use this tutorial which does what you explained i think: http://www.anddev.org/iconified_textlist_-_the_making_of-t97.html but it left me with a force close error so that went out the window.

[Q] ActionBarSherlock - Tabbed navigation AND integrated spinner possible?

Hi all,
Title really says it all. I have a tabs set up at the moment but I want to add a spinner to the action bar as well. To use as sort of a category tool. So a user can go through the tabs but also simply what they are seeing by selecting something from the dropdown spinner.
I've seen tutorials for a spinner in the actionbar and they require the navigation to be changed to list
Code:
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
Mine at the moment is of course
Code:
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
Is it possible to have both? I have a title and tabs underneath to the title action bar is empty at the moment, a perfect place for a spinner. This is what I have right now: http://i1.ytimg.com/vi/ppuv-FP6c4w/maxresdefault.jpg I'd like to be able to add a spinner that is always showing where it says 'ABS ViewPager Tabs'
Any help would be appreciated. Haven't found a tutorial that integrates both yet.
RED_ said:
Hi all,
Title really says it all. I have a tabs set up at the moment but I want to add a spinner to the action bar as well. To use as sort of a category tool. So a user can go through the tabs but also simply what they are seeing by selecting something from the dropdown spinner.
I've seen tutorials for a spinner in the actionbar and they require the navigation to be changed to list
Code:
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
Mine at the moment is of course
Code:
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
Is it possible to have both? I have a title and tabs underneath to the title action bar is empty at the moment, a perfect place for a spinner. This is what I have right now: http://i1.ytimg.com/vi/ppuv-FP6c4w/maxresdefault.jpg I'd like to be able to add a spinner that is always showing where it says 'ABS ViewPager Tabs'
Any help would be appreciated. Haven't found a tutorial that integrates both yet.
Click to expand...
Click to collapse
Since the ActionBarSherlock library is closesly related to the native action bar, I googled and found this similar question. It seems that, using these libraries it is not possible, however there are several methods to use instead (but those aren't so nice).
Bugger. Guess I could try doing it with a custom view and work from there like shown in that link. Hmmm, might have to rethink how my app lets users navigate.
That stuff that I plan to put in the spinner has to be somewhere so I guess I should look to creating this custom actionbar thingy. Hopefully the output is smooth. Already using a ViewPager that the guy who answered mentioned so this may not be too hard.
RED_ said:
Bugger. Guess I could try doing it with a custom view and work from there like shown in that link. Hmmm, might have to rethink how my app lets users navigate.
That stuff that I plan to put in the spinner has to be somewhere so I guess I should look to creating this custom actionbar thingy. Hopefully the output is smooth. Already using a ViewPager that the guy who answered mentioned so this may not be too hard.
Click to expand...
Click to collapse
This video from Google I/O 2013 helped me very much with my app navigation design: http://www.youtube.com/watch?v=XpqyiBR0lJ4&list=PLOU2XLYxmsIJOOTFfYzhR2d-rcSbBbEE_
nikwen said:
This video from Google I/O 2013 helped me very much with my app navigation design: http://www.youtube.com/watch?v=XpqyiBR0lJ4&list=PLOU2XLYxmsIJOOTFfYzhR2d-rcSbBbEE_
Click to expand...
Click to collapse
Thanks, I'll give that watch.
I'm currently using GridViews with custom adapters to show my content under each tab so if I could have an onClick change what the getView() method of the adapter shows to a user I could just keep it really simple and have simple buttons instead of a spinner.
That seems like a good option at the moment.

[WIDGET][YotaPhone2]Yota Toolbelt 1.0.4

Introduction
What is it?
Yota Toolbelt is my stab at developing something useful for the Yotaphone 2. It's a functional widget for the back screen, combined with a simple front screen widget. It has been tested on the latest Lollipop firmware (1.44).
What it does?
- The front screen widget allows you to toggle mirroring mode with a single click.
- The back screen widget allows you to toggle mirroring, wifi, Bluetooth, wifi tethering, ringer mode and YotaEnergy. Additionally you can place shortcuts to URLs to open your favorite websites quickly.
- The new "Contact list" action allows you to browse your contact list, make calls and send SMS's from it.
Click to expand...
Click to collapse
Images
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Check the screenshots tab for more
Click to expand...
Click to collapse
Installation instructions
I'm not going to bother putting this on Google Play because of the extra work with little benefit, so you have to install the apk manually. Here's how:
1. Check "allow installation of apps from unkown sources" from Settings - Security so that you can install the file.
2. Download the apk file and put it on your phone, or download it to your phone directly.
3. Open the apk file with some file manager and install it.
After this you can add the front screen widget like you would add any widget, by long pressing your home screen, selecting widgets, and then dragging the "Yota Toolbelt" on your home screen.
The back screen widget can be added from Yotahub.
Click to expand...
Click to collapse
Download
Download here (1.0.4)
Click to expand...
Click to collapse
Changelog
Code:
Current changelog: 2015-07-11
Version 1.0.4
- [NEW] Toggle for Wifi tethering.
- [NEW] Toggle for ringer mode: Normal/Vibrate (Toggling silent mode is simply not possible on Lollipop - Thanks Google!)
- [CHANGE] Added shortcuts to related system settings on long press to all but the Mirror widget in the config utility.
Old change logs:
Code:
Version 1.0.3
- [NEW] General settings for Contact list. These settings affect ALL INSTANCES of contact lists.
---- Choose the sort order
---- Choose name format
---- Choose dialer (EPD / mirrored). This should be changed only if you are having trouble making calls from the Contact list.
---- Lock EPD automatically when calling from Contact list to prevent accidental presses.
- [NEW] Added fast scroll support for the Contact list
- [FIX] Fixed Contact list not always closing after sending SMS or making a call
- [FIX] Fixed Mirror widget starting in incorrect state when mirrored.
Version 1.0.2
- [NEW] Contact list
- [FIX] Fixed a bug where widgets would not react after a while
Version 1.0.1
- [NEW] More advanced configuration utility
- [NEW] Battery level monitor / YotaEnergy toggle
- [NEW] Support for bookmark shortcuts that can be opened in EPD browser
or the default system browser in mirrored mode
- [NEW] Support for all widget sizes
- [NEW] Support for white theme
- [CHANGE] Changed the graphics to follow Yota's icons more closely.
Click to expand...
Click to collapse
Known issues
- This Widget requires Lollipop to work. No backwards compatibility.
- The battery widget doesn't have push effect. Also, toggling YotaEnergy on takes surprisingly long time. There's nothing I can do about that.
Click to expand...
Click to collapse
FAQ
The graphics.. They look.. ehrm..
- Awesome, right!? I'm a programmer, not an artist. If someone wants to create new graphics for the widget, I am very willing to change them. Each button should be the same size, at least 140x140px.
What are all these permissions?
- Bluetooth/Wifi/Network permissions are required for toggling wifi and Bluetooth directly without the system's dialogs.
- The vibration permission allows the buttons to vibrate on click.
- The READ_CONTACTS permission is for the new contact list portion, allowing it to list your contacts.
- The PHONE_CALL permission is for making a call using the front screen's dialer.
- The READ_PHONE_STATE is used for making the "lock EPD on dial" function work
Click to expand...
Click to collapse
For developers
I had to do some serious reverse engineering to figure out how to activate and deactivate the mirroring and YotaEnergy, so to save everyone's time, here's how to do it:
Activate mirroring from front screen:
Code:
Intent i = new Intent("yotaphone.intent.action.MIRRORING_START");
context.sendBroadcast(i);
i = new Intent("yotaphone.intent.action.MIRRORING_START_MANUAL");
context.sendBroadcast(i);
Activate mirroring from back screen:
Code:
Intent i = new Intent("yotaphone.intent.action.MIRRORING_START_FROM_BS");
context.sendBroadcast(i);
Deactivate mirroring:
Code:
Intent i = new Intent("yotaphone.intent.action.MIRRORING_STOP");
context.sendBroadcast(i);
To check is mirroring on right now, and to lock the EPD (asynchronous):
Code:
ServiceConnection mConnection = new ServiceConnection() {
public void onServiceConnected(ComponentName className, IBinder service) {
IFrameworkService mService = IFrameworkService.Stub.asInterface(service);
boolean isMirroringOn = mService.isMirroringOn();
mService.lockBackScreen();
}
public void onServiceDisconnected(ComponentName className) {}
};
Intent i = new Intent("yotaphone.intent.action.GET_SERVICE_BINDER").setPackage("com.yotadevices.yotaphone2.bsmanager");
context.getApplicationContext().bindService(i, mConnection, Context.BIND_AUTO_CREATE);
//Remember to unbind when you don't need the service anymore
To detect when mirroring is started, listen for the following broadcast:
Code:
yotaphone.intent.action.MIRRORING_START
To detect when mirroring ends, listen for both of these broadcasts:
Code:
yotaphone.intent.action.MIRRORING_STOP_MANUAL
yotaphone.intent.action.MIRRORING_STOP
To turn YotaEnergy on:
Code:
final Intent i = new Intent("yotaphone.intent.action.POWERSAVE_START");
context.sendBroadcast(i);
To turn YotaEnergy off:
Code:
final Intent i = new Intent("yotaphone.intent.action.POWERSAVE_STOP");
context.sendBroadcast(i);
To open Yota's EPD browser:
Code:
Intent i = new Intent();
i.setComponent(new ComponentName("com.yotadevices.yotaphone.yd_browser", "com.yotadevices.yotaphone.yd_browser.BSBrowser"));
i.putExtra("URL_TO_OPEN", "http://www.google.com");
context.startService(i);
Click to expand...
Click to collapse
XDA:DevDB Information
Yota Toolbelt, Device Specific App for the YotaPhone
Contributors
Jeopardy
Version Information
Status: Stable
Current Stable Version: 1.0.4
Stable Release Date: 2015-07-11
Created 2015-06-28
Last Updated 2015-07-11
Suggest features
I am open to suggestions for functions to add. Functions I've considered:
Flashlight - this one's doable, but it seems a little pointless. How are you going to turn the flashlight on in the dark when there's no backlight on the EPD?
Volume/Vibrate/Silent toggle - Probably doable, but requires some work so that it's easy to use.
Rotation lock - Not sure about this, but pointless anyway. The rear screen doesn't support horizontal view in the first place, unless you're mirroring, and then you might as well use widgets on your front screen.
Airplane mode - This one requires root access, and is quite hacky to implement.
NFC toggle - Cannot be done without root.
GPS toggle - Cannot be done without root.
Any ideas?
Thanks for doing this.
You might want to add Hotspot and data network
Would you be able to add Shortcuts? That would be very useful and its a shame the stock app does not allow this.
All Day On XDA said:
Thanks for doing this.
You might want to add Hotspot and data network
Would you be able to add Shortcuts? That would be very useful and its a shame the stock app does not allow this.
Click to expand...
Click to collapse
I'll look into your suggestions. I think the hotspot function required root access, and that is not very user friendly.
About the shortcuts - Isn't the stock Apps Launcher widget exactly what you're looking for?
Jeopardy said:
I'll look into your suggestions. I think the hotspot function required root access, and that is not very user friendly.
About the shortcuts - Isn't the stock Apps Launcher widget exactly what you're looking for?
Click to expand...
Click to collapse
the stock app allows links to apps only. Shortcuts are a subset of apps that can be added to the desktop. Eg in Google Maps you can create a shortcut on your homescreen that starts directions to a pre set destination. Or eg Chrome allows shortcuts to websites to be placed on the homescreen.
Edit: This may be beyond the scope of this widget. Apologies
All Day On XDA said:
the stock app allows links to apps only. Shortcuts are a subset of apps that can be added to the desktop. Eg in Google Maps you can create a shortcut on your homescreen that starts directions to a pre set destination. Or eg Chrome allows shortcuts to websites to be placed on the homescreen.
Edit: This may be beyond the scope of this widget. Apologies
Click to expand...
Click to collapse
Ah, I see. I've never used these before.
It is possible yes, but the biggest issue here is how you create and associate them to the widget. By default the shortcuts are created by the applications, like Chrome and Google Maps, and those applications send the shortcut Intent to the Launcher application. There is no way of telling the system that the shortcut should show up on this widget.
It probably could be possible to create these shortcuts manually for supported applications, like Chrome, but that would require quite a lot of work.
Nice work @Jeopardy! Thanks for sharing some dev notes too, might be useful for future widgets/apps.
PS You could officially kick off the "YotaPhone Original Android Development" device subforum with your widget (0 threads there now).
SteadyQuad said:
Nice work @Jeopardy! Thanks for sharing some dev notes too, might be useful for future widgets/apps.
PS You could officially kick off the "YotaPhone Original Android Development" device subforum with your widget (0 threads there now).
Click to expand...
Click to collapse
Thank you. Yeah I was wondering for the right place to put this. Now that you mentioned it, I guess the proper place would be the Original Android Development, but to put it there now would require a moderator.
Jeopardy said:
I am open to suggestions for functions to add. Functions I've considered:
Flashlight - this one's doable, but it seems a little pointless. How are you going to turn the flashlight on in the dark when there's no backlight on the EPD?
Volume/Vibrate/Silent toggle - Probably doable, but requires some work so that it's easy to use.
Rotation lock - Not sure about this, but pointless anyway. The rear screen doesn't support horizontal view in the first place, unless you're mirroring, and then you might as well use widgets on your front screen.
Airplane mode - This one requires root access, and is quite hacky to implement.
NFC toggle - Cannot be done without root.
GPS toggle - Cannot be done without root.
Any ideas?
Click to expand...
Click to collapse
Since I am using the "default" black theme I would prefer to have an option to switch between "black" and "white" version. I already created the changed images to basically switch your images to "all transparent" with white icons and a white circle around them for "pressed status". Since I am a new user I can't attach them to the post yet. Can you tell me a way to share them with you?
Besides that: can you share the sources of your widget to allow us to build upon it ourselves?
Thanks for your work on this!
crazy-ivanovic said:
Since I am using the "default" black theme I would prefer to have an option to switch between "black" and "white" version. I already created the changed images to basically switch your images to "all transparent" with white icons and a white circle around them for "pressed status". Since I am a new user I can't attach them to the post yet. Can you tell me a way to share them with you?
Besides that: can you share the sources of your widget to allow us to build upon it ourselves?
Thanks for your work on this!
Click to expand...
Click to collapse
I just sent you a private message about those images.
I'll consider sharing the source later. At the moment it is rather messy and very much hardcoded. I am currently rewriting the configuration Activity to allow rearranging of the icons and adding some new functions. It will take some time for me to finish this to a level I'm satisfied with.
Jeopardy said:
I just sent you a private message about those images.
I'll consider sharing the source later. At the moment it is rather messy and very much hardcoded. I am currently rewriting the configuration Activity to allow rearranging of the icons and adding some new functions. It will take some time for me to finish this to a level I'm satisfied with.
Click to expand...
Click to collapse
Mail sent.
Thanks for the info. Looking forward to see updates to this useful tool (and the first widget posted in here!).
All Day On XDA said:
the stock app allows links to apps only. Shortcuts are a subset of apps that can be added to the desktop. Eg in Google Maps you can create a shortcut on your homescreen that starts directions to a pre set destination. Or eg Chrome allows shortcuts to websites to be placed on the homescreen.
Edit: This may be beyond the scope of this widget. Apologies
Click to expand...
Click to collapse
I just released an update which addresses your idea of shortcuts for system's default browser (Chrome) and EPD's browser. Now the widget's framework is so flexible that it is very easy to add new shortcut targets. The only problem (still) is that the shortcuts have to be created manually from the widget, which means relatively complex dialogs. Shortcuts for browser is extremely handy, but can you think of some other app whose shortcuts would be as useful?
i have try it on my Yota 2 4.4.3 apk not work !
9100_it said:
i have try it on my Yota 2 4.4.3 apk not work !
Click to expand...
Click to collapse
That was to be expected. I don't think they included the SDK library until Lollipop. Sorry.
Major update
Okay, here's a new update for you guys.
First off, the minor (but important fixes) include fixing nonresponsive buttons if the device has been inactive for a long time, and some minor optimizations.
The big new function is a fully functional contacts list! I had been working on this for a while, waiting for Yota to update their caller app so I wouldn't have to do it. But it seems they are busy doing something else. So I became impatient and decided to include it here, as it needs an EPD widget anyway to launch it. So just add the contact list widget to the toolbelt from options, open it from the back screen, and you can browse all your contacts (with phone numbers) and then call them directly from the EPD. It also supports sending SMS's, but the catch is that it uses the front screen SMS editor via mirroring, not Yota's sleek EPD editor. The reason for this is there's no way to hook up to Yota's editor.
While I was building this update I also noticed quite serious security flaw in Yota's EPD dialer app. By default if you want to make a phone call from your app you need to add android.permission.CALL_PHONE to your manifest. However, I found out that Yota has left their EPD dialer app completely open for any app to ask for immediate phone call (like mine does), without any permissions what-so-ever. What were they thinking?
It also became frustratingly clear how bad the SDK is at the moment. The documentation is nonexistent, and you cannot even create dialogs. So many workarounds had to be made to make this work nicely.
But anyways, let me hear your opinions and experiences. There's bound to be some bugs somewhere and there's plenty of room to expand the contact list portion, provided I have the time.
Looking forward to trying the newest version. Thanks for building this!
You might want to consider contacting the Indiegogo campaign folks, as it looks like you've earned yourself a free phone. I can't post the link because I guess I'm too new a user on here, but if you look at the updates and scroll down to "25 days ago":
FYI: If anyone successfully develops an application or service to work natively for the "always on" display I will reward them with a YotaPhone 2 for FREE at the end of the campaign!
Click to expand...
Click to collapse
MichaelA said:
Looking forward to trying the newest version. Thanks for building this!
You might want to consider contacting the Indiegogo campaign folks, as it looks like you've earned yourself a free phone. I can't post the link because I guess I'm too new a user on here, but if you look at the updates and scroll down to "25 days ago":
Click to expand...
Click to collapse
Wow, might as well try it. Thanks for the info!
Hi thanks for standing in where yota appear to lack
just downloaded and installed but although the contacts list works well the phone dialer doesnt but i do have a call confirm slider app (used to stop wrongly dialed numbers) which could block this (it does the same with yota dialer)
only way i have managed to work around this is to mirror the android dialer app but would be nice if you could? do anything?
like your commitment to develop - think you should look at a donate function somewhere..would buy you a coffee or two for your efforts
regards
kam1962 said:
Hi thanks for standing in where yota appear to lack
just downloaded and installed but although the contacts list works well the phone dialer doesnt but i do have a call confirm slider app (used to stop wrongly dialed numbers) which could block this (it does the same with yota dialer)
only way i have managed to work around this is to mirror the android dialer app but would be nice if you could? do anything?
like your commitment to develop - think you should look at a donate function somewhere..would buy you a coffee or two for your efforts
regards
Click to expand...
Click to collapse
Basically what I do, is ask the official EPD dialer to make the phone call for me. If your call confirm slider app blocks the yota dialer, it will also block this. I guess you cannot add exceptions to the caller app? (Probably not, knowing Android's telephony API...)
An ugly workaround for your specific case would be for me to turn mirroring on when you press the call-button from my contacts list, and then ask the system's default dialer to make the call. Then your call confirm slider app would show up normally in the mirrored mode and you could finish the call. I might consider adding this later on as a setting somewhere, but no promises. It would be a lot cleaner if the mirroring mode would not be needed to finish the call, because turning it on takes quite a while and is a hassle to deal with when trying to do simple actions.
What is the name of the app you are using? I'll take a look.
call confirm
Jeopardy said:
Basically what I do, is ask the official EPD dialer to make the phone call for me. If your call confirm slider app blocks the yota dialer, it will also block this. I guess you cannot add exceptions to the caller app? (Probably not, knowing Android's telephony API...)
An ugly workaround for your specific case would be for me to turn mirroring on when you press the call-button from my contacts list, and then ask the system's default dialer to make the call. Then your call confirm slider app would show up normally in the mirrored mode and you could finish the call. I might consider adding this later on as a setting somewhere, but no promises. It would be a lot cleaner if the mirroring mode would not be needed to finish the call, because turning it on takes quite a while and is a hassle to deal with when trying to do simple actions.
What is the name of the app you are using? I'll take a look.
Click to expand...
Click to collapse
thanks for reply been searching for it but cannot find it anywhere on app store!!! so guessing its gone
must have transferred from old phone or it just been removed from market this year? cannot remember
its called call confirm slider version 0.9.1 icon is black circle with telephone handset inside but dont have any other details.
had it for a few years now and has been stable / reliable
very similar to this
https://play.google.com/store/apps/details?id=com.callconfirmer.free
regards

Categories

Resources