• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Creating typeconvertor to convert Int timestamp to LocalDate

What would be the best way to go about this. I am using 2 different APIs and one returns a date as a String and the other returns date as an Int timestamp in the format of e.g. 162000360

I was using the ThreeTen backport for Date/Time classes. I have successfully created a type convertor for the date I get back as a String - provided below

@TypeConverter
@JvmStatic
fun stringToDate(str: String?) = str?.let {
LocalDate.parse(it, DateTimeFormatter.ISO_LOCAL_DATE)
}

@TypeConverter
@JvmStatic
fun dateToString(dateTime: LocalDate?) = dateTime?.format(DateTimeFormatter.ISO_LOCAL_DATE)


I'm struggling to replicate the same for the Int timestamp as the DateTimeFormatter requires a String passed into it and won't allow an Int. Any help is much appreciated

ADB not working - what am I doing wrong?

I believe it worked out well.

FWIW - updated 'steps'

Removing bloatware from Samsung Galaxy S10
Android v11, UI 3.1

1. download https://dl.google.com/android/repository/platform-tools-latest-windows.zip
2. Extract
3. (I did it, but it is optionally) copy sub folder "platform-tools" to C:\ADB
4. On smartphone, change to developer mode:
a.Settings > About Phone > Software Information >tap 'Build number' 7x
b.Settings > Developer Options (at the bottom) > USB Debugging: enable
c.Click OK
d.In the next screen (optionally select "Always allow from this computer") plus "Allow"

5. Connect the smartphone using USB

Change USB mode to "File Transfer mode":

6. Smartphone: Settings > Developer options (at the bottom)
7. Tap on: "Default USB Configuration", select: "Transferring Files"

8. Windows (command prompt) go to C:\ADB (or to 'platform-tools')
9. Enter: adb devices -l

it should show that device is connected, like:

C:\adb>adb devices -l
List of devices attached
RF8MC0QDR2P device product:beyond1lteeea model:SM_G973F device:beyond1 transport_id:1

10. Collect a list of all installed software
Enter: c:\adb>adb shell pm list packages

11. selectively remove software (in this example "LED cover software")
package:com.samsung.android.app.ledbackcover
package:com.sec.android.cover.ledcover
(remove the word 'package:' in the uninstall command)

C:\adb>adb shell
beyond1:/ $ pm uninstall --user 0 com.samsung.android.app.ledbackcover
Success
beyond1:/ $ pm uninstall --user 0 com.sec.android.cover.ledcover
Success
beyond1:/ $ exit

c:\adb


-

[Free][App] Pictures, Videos, Story Downloader for Instagram

With 'Pictures, Videos, Reels, Story Downloader for Instagram - IG Saver', you can save images, videos, stories and reel from Instagram to your device, as well as share downloaded files with friends.

All you have to do is activate IGsaver from the main menu and then open Instagram. Now all you have to do is click the 'download’ button to download any photo or video from any Instagram account. All your downloaded content will be saved directly in your downloaded gallery.

IGsaver is an excellent application for downloading photos and videos from Instagram. It is very convenient to use and, unlike other similar applications, it integrates perfectly into Instagram. Thus, you can not only use Instagram as before but also get the opportunity to download any photo or video from this network.

Pictures, Videos, Reels, Story Downloader for Instagram - IG Saver is an Instagram Reels, Story, IGTV, Feed and Timeline, Images and Videos Downloader App. You can see Your Following Friends list and their Stories, You can also see Your TimeLine. You can Download, Search public profile and from url without login in this app. App supports Dark, Light Mode and Multiple Language. You can mark your friends as Favorite and can see them on Favorite Section, from where you can visit their profile. Interstitial and Banner Ad Support and Many More Features are Available in the App, Download the App and see all the features.

Features

Download Media from Public URL
Search Public Profile and Download their Media
Instagram Story Images and Videos Downloader
Instagram Feed Images and Videos Downloader
Instagram Timeline Images and Videos Downloader
IGTV Video Downloader
Following Friends
Search User
Multiple Accounts Supports
Favorite Friends Option
View Friends Feed and Stories
Dark and Light Mode with Awesome UI
Easy to Manage Dark and Light Mode
Multiple Language Supports
Easy to Manage Language
Share All Downloaded Images and Videos
View All Downloaded Media in Gallery Section


Screenshot: https://imgur.com/a/Wmt5fnh

Google Play: https://play.google.com/store/apps/details?id=com.hyghmedia.igsaver

App Info:

Current Version: 1.1
Requires Android: 5.0 and up
Content Rating: Rated for 3+

Predictive text missing

Old problem for those in this thread. New problem for me. I have an S7. A couple months ago predictive text disappeared. No fix yet. I'll try this 4 hours in safe mode jive tonight. I saw another thread where someone said the fix was to hold the down-volume button and the power button for 15 secs. of course, not a fix.

Question using Astro File Manager to copy music files to my Android

Thanks for your responses. It turned out that there were 7 folders that could not be copied. I decided to try another File Manager as was suggested. I tried File Manager Plus and got the same error message for all 7 folders. However, File Manager Plus told me that the error had to do with characters, as was stated above. It turned out that one song in each folder had a ? in it. Once I removed them, they copied fine. IMO, File Manager Plus is a much better app than Astro File Manager. But Astro did most of the job.

Help Misbehaving

Hello, just to share my own experience as I had experienced exactly the same issue, first time I got it to boot I did not realize it was due to the phone being connected to the computer, using it as power source. Now I had the issue again (after restarting the phone) and only got it started again right after I read this post of yours, so thank you for connecting the bits together there.

The answer from svim is probably the best solution - get a new phone sounds a great option and one I will look into in near future, since it today it's second time i had to perform this factory reset and as much as cloud keeps most of the data, it is simply annoying.

If Battery Share app causes you troubles however, you can switch it off and it will stay off, in settings > applications > app info - you can find Battery Share, and find two buttons, Deactivate and Force app off, press both from left to right, then just to be safe you can set the app to not be able to pop up over your other apps if it somehow turned on again. This could save the bother.

But it seems the phone is just going haywire in more cases than this one, so I suppose the power issue of battery life coming to end is a good assumption. As it does not last as long as it used to be and the charging times vary pretty randomly. I think my battery is near over and so will be yours ( if you still have the phone, as since it is oct 2020 I assume you have rather moved on.)

Trying to figure out notification

Which version of Android is your kid's phone running?
There might be a Notification Log option in the Settings menu that might reveal more relevant information on that mystery notification. But it depends on the phone and what version of Android.
With 11, it might just be a matter of enabling it:
https://www.howtogeek.com/689683/how-to-see-your-notification-history-in-android/
Or when it involves older Android versions, you can try making your own Notification Log using Widgets:
https://www.techrepublic.com/article/how-to-view-dismissed-notifications-on-android/
There's a preset buffer in the Notifications log so it only goes back a day or so, or less if your kids are getting a lot of Notifications.

Android tablet forgets settings

As far as lights go....
the light bulb itself will last longer if turned on and left on.

What wears a lightbulb out is the change in state and the change in heat.

Incandecent bulbs were cheap enough to replace, and inefficient. So it was far cheaper to replace the bulbs than 'waste' the electricity.

Flouresent bulbs worked differently, although the ballasts inside are rather pricey. It would be a hard call as to what costs more- running the lights constantly, or replacing the bulbs and eventually the ballast/fixture.

Even worse are those stupid curly flouresent bulbs that replaced the incandessents in our lamps and other fixtures. These monstrosities used rather little power, but often cost $10 each. The worst part of it was that they were advertised to last for many years, and most often you were lucky if you got one or two years out of them.

Oh, yeah, and just like the other flouressents, they too have mercury in them, so ther is that as well.
Probably better to turn those on, and leave them on. It will take a bulb like that its lifetime to burn the amount of electricity that would equal the cost to replace the bulb.

And now we move on to the LED replacements for our lamps and such.
So far, so good with these.
They use very little power, and are much more pleasing to the eye than flouresents.
But, they do have a tendency to flicker sometimes, and the cost is astronomical.

So it is safe to say that it is cheaper to leave these lights on, than to wear them out from cycling on and off.

Filter

Back
Top Bottom