Collection views widget - display two with different data? - Java for Android App Development

Is it possible to display two different collection widgets on the home screen with each showing a different data source?
I have a collection widget that pulls data from a table exposed by my content provider. It works just fine. Now if I add a 2nd widget and point that data source to a different table exposed by my content provider, the 2nd widget is created just fine but it only displays the content from the initial table defined by the first widget.
I do use a configuration activity to set the parameters. I know this is very generic right now and I can post code if it is deemed necessary, but right now I just wanted to see if this should work or if I am trying to do something that the framework won't do.
Thanks,
Eric
Sent from my Nexus 10 using Tapatalk

Related

Input needed - New Project Idea - Windows Phone 7 Hub type functionality

I'm wondering if there is already an application that does the following:
I'm thinking of creating an application that will allow a user to turn any icon into a widget that will track/count various stats and present the user with a number that increments or an icon that changes (user configurable):
Use/Example 1: An icon/widget that tracks an RSS feed and displays a number on the icon that represent the number of new feeds (similar to the SMS and GMail counters).
Use 2: Same idea but think twitter updates
Use 3: Same idea but with non-gmail email
Use 4: Monitor Battery Power (could switch between multiple icons or change the background color)
Use 5: A widget that toggles wifi or gps but uses custom icons to represent the on/off state
As you can imagine the possibilities are endless..
I'd appreciate some input on whether a similar application already exists, if there would be major technical roadblocks to doing this, etc.
Thanks!

Tasker Profile Suggestions

I have just recently booted and rooted my new tablet. Im curious about some interesting uses of Tasker in a tablet as opposed to phones.
Thanks for making this stuff so easy!
nothing different bro
you will have to use the same way for the tablet at well...just a diff if u using in car it would enhance
wrathofnero said:
I have just recently booted and rooted my new tablet. Im curious about some interesting uses of Tasker in a tablet as opposed to phones.
Thanks for making this stuff so easy!
Click to expand...
Click to collapse
If you're into a "hubs" style look for your tab, using Tasker with Minimalistic Text provides an easy way for links to navigate the various screens set up.
I'm no tasker wizz, but I find it useful to have the screen remain on when AC power is connected. I take my tab to work and this lets me to see incoming messages, change songs, etc., while I use my PC.
Maris_ said:
If you're into a "hubs" style look for your tab, using Tasker with Minimalistic Text provides an easy way for links to navigate the various screens set up.
Click to expand...
Click to collapse
I'm curious about these hubs. I've seen the minimalistic text, but I hadn't really had time to solidify a use for it.
Hubs are great until you realize how much extra resources these additional widgets take up to suppor them. Depending on number of home screens and images used multipicture livewallpaper can take up a bunch of memory. Minimalistic text takes some too. It can all add up culminating in pauses and stutters jumping from app to app or screen to screen as the OS tries to shift resources around. With some work though things can be optimized to minimize impact.
Sent from my SCH-I905 using Tapatalk
Check out this link for more details on hubs: http://forum.xda-developers.com/showthread.php?t=1232357
There are some great ideas, examples, and instructions in there.
I suppose if someone goes overboard with widgets on homescreens it could impact battery life, whether using hubs or not. I haven't noticed any difference, personally.
i got really annoyed with minimalist text because you could only make icons that are really small
so what ive done is just find my wallpaper images and on photoshop overlay the hubs then use multipic to make a differenT wallpaper for each homescreen then make transparent icons that swich between homescreens and put them ontop of the writing i have overlayed in photoshop kinda confusing but it works !
look at any of my themes and all of them in the screenshots have my homescreen with this setup
I set my tasker to change my wifi settings to off when screen is off and always on when I am listening to pandora or streaming radio so that I can save some power by not having to have the screen on all of the time while streaming, but that is all.

[Q] How to modify content of S-View window?

Hello,
I have the Galaxy S4 with S-View cover, the one with the small window.
If I close the cover the S4 shows the time and date inside the small windows area of the cover.
I want to develop an app or widget or whatever to change the content of this 'window'.
Is there any way to show different content inside that 'window'?
I think I must act on the hall-sensor event - is that possible?
How can I change the default behaviour and replace the content of the window by my own content?
Thanks for any hint which leads me into the right direction.
Would love an app or widget that does this. Would love for it to display spotify playing info.
Sent from my GT-I9505 using xda premium
Still need help
Hi,
it is also a question for me if this is a Samsung specific feature? Or is it an Android feature?
Where I can get development background information on this? Especially on the intents, events, etc.?
Thanks!

[Q] Custom quick settings tiles (as in slimroms): How do you get those?

Hello,
I'm using Slimkat 4.4.4.8269 since its release. It has a neat feature called the custom tiles which is the feature that keeps me on that rom because I was unable to find a similar function in another ROM.
The Slimroms custom tiles basically lets you set unlimited "custom" tiles in the quicksettings which you can set with apps, os functions or whatever. They take a second action for a long press and they can cycle through multiple apps on that one tiles.
This is basically a quickstarter for apps. The thing that makes this marvelous is actually that opening an app doesn't get that app into the foreground, that statusbar stays in the foreground such that I can open a second and third, etc. app through very few taps.
An example what I use this for: My worst but not rare case here:
Navigation+speedcam warner+mozilla stumbler(wifi and cell existance to gps mapper)+openwlanmap.org (wifi to gps mapper)+openbmap.org (wifi and cell to gps mapper).
The best approach is to use a directory on the homescreen, if my launcher supported it. This way i don't have to search in the app drawer.
So I would open the directory, start app 1, press home screen, start app 2 and so on.
Until i started the 5 apps, I have done (swipes and presses+ app-open-taps combined) 15 actions.
Using custom tiles as slimkat offers it in the status bar I swipe to open the quick settings and then open my apps, 1 swipe+5 taps=6 actions.
This is for me much faster and allows me to pay much less attention to my phone while starting what I want.
However, I would like to update to Lollipop or M, anyways, go with CM most likely but that feature isn't there. I found out that the GravityBox with the xposed framework offers some kind of similar features but it only features 2 custom apps, currently I have a bit more than 20 in my status bar.
I could use "Tasker" for this approach as well, but actually that configuration is rather weird and static to one action/app (condition) which I first have to fulfill. That approach fails if one of the apps is already started and I only want to start one app especially if that meets Taskers condition. I end up using the app drawer and search for my app.
This post pretty much covers the configuration and outcome of the custom tile in Slimroms in two pictures:
http://forum.xda-developers.com/google-nexus-5/orig-development/rom-slimkat-hammerhead-stable-5-0-t2511512/post51495728#post51495728
Have you seen any other ROM with decent updates (that seems to be only CM for the hlte at the point of writing) or way to accomplish something similar? It doesn't need to be in the statusbar, even though that is quite easy to access.
Parts of my post I took from my post to a CM feature request at JIRA:
https://jira.cyanogenmod.org/browse/CYAN-2227?jql=text%20~%20%22custom%20tiles%22
Thanks in advance!
Try Layers, http://forum.xda-developers.com/galaxy-s4/themes-apps/systemui-overlays-5-0-t3025183
Thanks for the reply. I think layers is some sort of theming app overlaying the normal icons with other colors. This is something new to me and interesting, but not what I wanted in this thread.
I found something that goes a bit in that direction: Hangars. It displays some appbar in the notification area. Upon opening an app the area disappears and I would have to open the notification area again. Still better than the homelauncher and its folders.
Something I tested previously going into the same direction is the PIE control as well as some sidelaunchers like omnirom and such. Still the custom tiles allow a faster operation.
If anyone is interested in those, you could vote for this as well:
https://jira.cyanogenmod.org/browse/CYAN-2227, It enclosed this feature.
From time to time I changed to CM or something like it, but return very quickly to my custom quick tiles as they are irreplacible and other roms waste time and I can hardly operate them blindly like slimkat.
Just heads up, Google finally may have thought those tiles to be useful and they were added in Marshmallow. You can only go there using the System UI tuner (google for it, if you don't know what it is. You'll need another app to configure those nicely, like custom quick settings. Due a bug you can't add more than 18 tiles in total, but if you like it and don't need more go ahead. Right now I have 40+ and they're in color.
So far I can't think of changing from the lovely slimkat.

Fcc Car Launcher [official thread]

Hi, all!
Welcome to the official thread for FCC Car Launcher - a customizable auto launcher for android head units (Rockchip MTCB/MTCD+ and FlyAudio) as well as android smartphones/tablets.
Its major features:
- Full function launcher with supports of all standard third party android widgets
- Deep integration with head units (MCU etc). My mission here is to implement as many functions in the launcher itself as possible. In case of Rockchip devices to get rid of most xposed modules (my deep respect to their authors, great job, but they sometimes slow down the device significantly) and replace them with the normal built-in functions.
- Customization. The FCC Cat Launcher has some built-in customizable widgets which can help to make your home screen more personal (you can adjust widgets size, colors, features etc).
- Built-in music widget with support of FM Radio (with ability to give names to radio stations), Spotify, Google Music, PowerAmp, PC Radio, Neutron and Stellio players.
- One-click navigation widgets with quick route building (supports Waze, Google Maps, Yandex Navigator and other navigation apps).
- Phone calls via connected phone using 'Ok Google call [name]' request or by clicking on built-in Contact widget.
- Other features.
FAQ
1. I love MiniMap but can you put other navigation app there?
Unfortunately this is not possible. MiniMap is part of FCC and is based on Google Maps API for Android. It is not another app (not even a Google Maps app), that can be just replaced within the FCC interface. Android does not allow to integrate third party apps (navigation apps) inside another third party apps (FCC Launcher).
If your head Unit supports Split Screen (ie can display Two apps at the same time), this can be partially done with split screen.
2. Is it possible to cache maps for MiniMap for offline use?
- Yes. In the latest FCC Launcher beta version you can select Offline Mapbox map and download it to your device.
- For Google Maps - No. Caching is directly prohibited by Google license for using Google Maps API (MiniMap). Moreover, Google even does not provide developers with such a caching API. Therefore you will need a constant internet connection to use MiniMap. The somewhat good news is that the map itself does some short-term caching on your device, so it saves some data (but not too much).
3. Notifications are only popping up for a split second / flashing. How to fix this?
That means that animations are disabled on your device.
- Go to the device's Developer settings: FCC settings - System - Advanced - Developer settings (if it asks for code - it's "7890" for AllWinner T8).
- Scroll down and change 3 parameters "Window animation scale", "Transition animation scale" and "Animation duration scale" from "Animation off" to "Animation scale 1x".
4. Routing on Google Maps in MiniMap doesn't work. It asks for API key. What should I do?
- Turn-by-turn navigation in built-in Google Map fragment is directly prohibited by Google. Therefore it is not possible to use it. .However if you have your own Google Developer account (Google Maps API key) you can use it to draw a simple route line on the MiniMap. Please note that it will NOT have any turn-by-turn data like distance to next turn or estimated time of arrival.
I do not recommend to purchase Google Developer account just for this feature:
- Google Developer account will cost money for you (a one-off payment) which is reasonable only if you really want to develop android apps.
- Routing requests cost money. But currently Google provides a 200$ per month free usage for Maps, Routes, and Places every month which should be enough for individual usage.
Links: Get API key, Pricing. Don't forget to enable Maps API and Directions API in your Google Cloud Console.
Tutorial:
Translation to your language
Guys, many of you suggested your help with translation of the app to your native languages.
I have setup a translation project on OneSky site.
Here is the link: HELP TRANSLATE FCC CAR LAUNCHER
Links:
Release channel: https://play.google.com/store/apps/details?id=ru.speedfire.flycontrolcenter
Beta channel: https://play.google.com/apps/testing/ru.speedfire.flycontrolcenter
(I would suggest to stick with the release channel since beta channel can be really buggy sometimes and is intended for beta testers only)
As a developer I will be happy to discuss with you any ideas or issues.
Here is a couple of tutorials:
1) Quick look on home screen setup process:
How to write LogCat log:
You need to have ROOT:
1. Install LogCat Extreme LogCat Extreme
2. Select VERBOSE level of details (very important) Video 1
3. Write and send log: Video 2
Initial setup (do this if you see black screen):
Important checkbox during first setup:
{
"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"
}
Please make sure to check that checkbox "Always allow FCC Launcher to add widgets..".
Full setup process:
Thank you! Great launcher in deed! I really love many options, customisations and support for widgets!
Using it for some time and works great on MTCB with Malaysik ROM.
Highly recommended.
Does this run under Android Auto?
jcthorne said:
Does this run under Android Auto?
Click to expand...
Click to collapse
I don't think so. Not tested at least.
SpeedFire- said:
I don't think so. Not tested at least.
Click to expand...
Click to collapse
Well it was posted in the Android Auto forum so thought I would ask. Seems its not relevant to this section then.
this would be the right forum:
https://forum.xda-developers.com/android-auto/android-head-units
CadillacMike said:
this would be the right forum
Click to expand...
Click to collapse
Agreed. I've already asked moderators to move this thread there (along with the other launcher's threads which are located here). Hope they can do this.
Altitude widget
SpeedFire- said:
Agreed. I've already asked moderators to move this thread there (along with the other launcher's threads which are located here). Hope they can do this.
Click to expand...
Click to collapse
Great to have this official thread at right place
I would like to suggest new widget, if you are wiling:
Altitude. In addition to existing build-up widgets (odometer, speed), it would be nice to have altitude. For some of us enjoining off-road adventures in high mountains, it would be nice to have a snap view of GPS altitude.
pa.ko said:
Altitude. In addition to existing build-up widgets (odometer, speed), it would be nice to have altitude. For some of us enjoining off-road adventures in high mountains, it would be nice to have a snap view of GPS altitude.
Click to expand...
Click to collapse
Thank you for suggestions!
I've just sent a new version to BETA channel with two new features:
1. Auto-brightness with relatively good control on the levels:
2. Altitude widget
SpeedFire- said:
Thank you for suggestions!
I've just sent a new version to BETA channel with two new features:
1. Auto-brightness with relatively good control on the levels:
2. Altitude widget
Click to expand...
Click to collapse
Wow! Great! Never seen such prompt reaction to feature requests Thanks!
BTW, your auto brightness control is great. For users wondering why so many sliders I'll tell that I struggled with 'dumb' auto brightness (with no additional control beside day/night levels) as they are either too bright or too dimm in dusk or dawn. So it is great to have it customisable to your needs.
SpeedFire- said:
Thank you for suggestions!
I've just sent a new version to BETA channel with two new features:
1. Auto-brightness with relatively good control on the levels:
2. Altitude widget
Click to expand...
Click to collapse
1.
Latest beta crashes of I go to FCC settings (enters the main settings screen but crashes if I select FCC settings). So I could not access new auto brightness config to check how it works.
2.
Altitude works nicely. I'll suggest to round it to integer (remove decimals). Decimals take valuable space in widget and are basically useless as GPS altitude precision is in meters (even tens of meters to be exact in commercial GPS units)
CadillacMike said:
Latest beta crashes of I go to FCC settings (enters the main settings screen but crashes if I select FCC settings). So I could not access new auto brightness config to check how it works.
Click to expand...
Click to collapse
Ok. Thanks for info. I'll check. What type of device do you have?
For now you can access the same setting from Brightness widget.
pa.ko said:
1.
Latest beta crashes of I go to FCC settings (enters the main settings screen but crashes if I select FCC settings). So I could not access new auto brightness config to check how it works.
2.
Altitude works nicely. I'll suggest to round it to integer (remove decimals). Decimals take valuable space in widget and are basically useless as GPS altitude precision is in meters (even tens of meters to be exact in commercial GPS units)
Click to expand...
Click to collapse
Hopefully both of the issues are fixed in new beta.
New feature:
- Ability to launch any selected app by clicking on the following widgets: Time, Distance, Av.speed, Altitude (see their preferences)
Would you please allow to add third party music player widget in your app.
rizu3544 said:
Would you please allow to add third party music player widget in your app.
Click to expand...
Click to collapse
They are allowed. This launcher supports all third party android widgets.
Moreover it has a built in music widget which supports: fm radio (with ability to give names to radio stations), Spotify, Google Music, PowerAmp, PC Radio, Neutron and Stellio players.
I suggest to make a YouTube video on a how to/overview of the launcher. The price is a bit high . I will rate this launcher now at a max of 3.99 dollars. For the premium version. Now it looks like you what to make fast money . I see this before with a lot of new apps. At the and it all goes wrong. Sorry to say this. Thanks for the nice developments at this stage
Maybe a stupid question, but how do I delete a widget?
HarryBk said:
Maybe a stupid question, but how do I delete a widget?
Click to expand...
Click to collapse
Hold a finger on it for a second and move the widget to the cross:
Been using this launcher for the past couple of days. Works really well (px5 head unit). Gonna try to make a video of it soon. Keep updating and adding features, before this I was using Car Launcher Pro, but that seems abandoned. Basically what I'm always looking for is an attractive and functional launcher where buttons and text are large. Could we get a screensaver with time, current song, speed, and weather info on a black background (like in Car Launcher pro, only there it only showed time)
vassandrei said:
Could we get a screensaver with time, current song, speed, and weather info on a black background (like in Car Launcher pro, only there it only showed time)
Click to expand...
Click to collapse
I think I can, but first I need to understand better why don't you just setup a separate screen with large widgets (this is all possible with FCC Launcher). Many users told me that the launcher helped them to get rid of screensavers since all the info can be made large enough and is available.
So, what do you really want from screensaver what is not available now via home screen? Thanks.

Categories

Resources