Filter
Exclude
Time range
-
Near
12 Feb 2025
I put a work request into the IT Department for a WIFI booster and this thing arrived 🤡 #workrequest #warrnamboolbotanicgardens #isbigbrotherwatchingus
3
10
118
For a content piece in the works, I'm looking for the best, tested tips for making jollof rice. What's one hack you can swear by when making Nigerian jollof rice? Let me know in the comments. Please RT and tag your fav food creators too, thanks. #workrequest #jollofrice
6
3
8
898
Asked Claude, how to implement Battery Optimization in Android with Kotlin, and it gave the below code snippets with explaination ------------ To optimize battery life in an Android app built with Kotlin, you can follow these best practices: 1. **Minimize Wake Locks**: Wake locks prevent the device from entering a low-power state, draining the battery. Use wake locks judiciously and release them as soon as possible. ```kotlin val wakeLock = PowerManager.WakeLockTag.acquirePartialWakeLock("MyApp:WakeLock") // ... do some work ... wakeLock.release() ``` 2. **Efficient Network Operations**: Network operations can consume significant battery power. Use batching to reduce the number of network requests, and consider implementing a local cache to minimize network usage. ```kotlin val retrofitInstance = Retrofit.Builder() .addCallAdapterFactory(RxJava2CallAdapterFactory.create()) .build() retrofitInstance.getData() .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe { /* handle response */ } ``` 3. **Optimize Sensor Usage**: Sensors like GPS, accelerometer, and gyroscope can drain battery quickly. Use these sensors judiciously, and remember to unregister listeners when not needed. ```kotlin private val sensorManager by lazy { getSystemService(Context.SENSOR_SERVICE) as SensorManager } private val accelerometer by lazy { sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) } override fun onResume() { super.onResume() sensorManager.registerListener(this, accelerometer, SensorManager.SENSOR_DELAY_NORMAL) } override fun onPause() { super.onPause() sensorManager.unregisterListener(this) } ``` 4. **Minimize Background Services**: Background services running indefinitely can consume significant battery power. Use WorkManager or JobScheduler for background tasks, and stop services when they're no longer needed. ```kotlin val constraints = Constraints.Builder() .setRequiredNetworkType(NetworkType.CONNECTED) .build() val workRequest = PeriodicWorkRequest.Builder(MyWorker::class.java, 15, TimeUnit.MINUTES) .setConstraints(constraints) .build() WorkManager.getInstance(applicationContext).enqueue(workRequest) ``` 5. **Efficient Image Loading and Caching**: Loading and decoding images can be battery-intensive. Use efficient libraries like Glide or Coil, and implement disk caching to reduce battery consumption. ```kotlin Glide.with(this) .load(imageUrl) .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC) .into(imageView) ``` 6. **Optimize Animations**: Complex or excessive animations can drain the battery. Use animations sparingly, and consider disabling them when the device is in low-power mode. 7. **Avoid Memory Leaks**: Memory leaks can cause excessive memory consumption, leading to garbage collection cycles that drain the battery. Use tools like LeakCanary to detect and fix memory leaks. 8. **Battery Optimization Hints**: Provide battery optimization hints to the system to prevent your app from being aggressively killed or throttled in low-power situations. ```kotlin @RequiresApi(Build.VERSION_CODES.M) fun requestBatteryOptimizations() { val intent = Intent(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS) intent.data = Uri.parse("package:${packageName}") startActivity(intent) } ``` 9. **Test and Optimize**: Use tools like Battery Historian and Android Profiler to identify and address battery-draining issues in your app during development and testing phases. By following these best practices, you can optimize your Kotlin-based Android app for better battery life, providing a smooth and efficient user experience. -------------------- so to sum it up all in brief , the below are necessary and mandatory 1, minimize wake locks 2, efficient network operation such as local cache 3, optimize sensors usage 4, minimize background services 5, efficient image loading and caching 6, optimize animations. 7, avoid memory leaks 8, battery optimization hints and last 9, Test and Optimize #androidsdk #androidstudio #claude #anthropic #generativeai #batteryoptimization

1
2
584
RT 🔒: Does anyone know any clinical psychologists who trained (or are currently training) at King's? #WorkRequest
1
2
85
7 Feb 2023
Want to #simplify the #workrequest process? Arora ATLAS Request uses #configurable wizard-style #questions and #answers to guide the user to accurate #workrequests! Contact us to receive a #demo today! edatai.com/arora-atlas-reque…
2
3
50
6 Feb 2023
Check out our latest #blog to find out which type of #Maximo #WorkRequest tool you should implement to improve #customerexperience: #web-based or #app-based. edatai.com/which-maximo-work…
2
4
64
Check out the latest SmartSuite Showcase! In this episode, we dive into how marketing teams are using our platform to gain client / internal approval for their projects, tasks, work requests and plans. #SmartSuite #Marketing #ClientApproval #WorkRequest bit.ly/3aYFtjA

2
124
Day 35: Tutorial ved app p-3 > add constraints to the WorkRequest in WorkManager #100Days100Projects #100DaysOfCode #100DaysOfAndroid #Android #Kotlin Git repo: github.com/aman1sr/tutorial_…

1
3
#Day26 #100DaysOfCode Learnt about basics of Work manager. Creating work using Worker class, defining WorkRequest and submitting it to WorkManager.
2
26 Apr 2022
Day 24 of #100DaysOfCode #100daysofcodechallenge > Finished the DataStore Codelab > Completed Forage app :> it was a fun challenge > Learnt about: ~ Started WorkManager basics like: Worker, workRequest, workManager ~ When to use WorkManager ~ 2 Work request types #AndroidDev
1
3
#WorkRequest: Looking for a contact at #TwitterIndia. Please do get in touch if you have a lead. Thanks in advance folks!
7
2
Film & TV twitter. I’m in the market for After Effects / Photoshop / Premiere generalists who do 2D/3D/editing all in the same go. Is this you or someone you know? Hit me up, as the kids say. Please RT etc. #workrequest
9
20
9
You could consider using a BroadcastReceiver to kick off a WorkRequest. The Worker can then move the state as needed. It's different but more robust than an IntentService.
1
1
2 Dec 2021
Day 10. ▶️ Background work with WorkManager - Kotlin ✅ 1. Introduction ✅ 2. Getting set up ✅ 3. Add WorkManager to your app ✅ 4. Make your first WorkRequest ▶️ 5. Add input and output #100DaysOfCode #Kotlin #code
1
4
6
Take the example of downloading and caching music. It can be done deferred if it's not urgent, or right away if the user directly requested it. In both cases the worker calls setForeground. But only in the urgent case the WorkRequest should be expedited.
1
6
A WorkRequest on the other hand can be important to the user and needs to be expedited.
1
4
19 Oct 2021
If you are attending the 2021 #IFMA World Workplace Conference from October 26-28 in Kissimmee, Florida, be sure to stop by Booth #726 to receive a demo of #AroraATLAS #Request! #conference #networking #demo #technology #software #data #iot #workrequest #workorder #easytouse
1
4
コードみる限り、6時間ごとに診断サーバーとの通信をするWorkRequestを出すように設定されてますね。意外と頻繁だなって思いました。
1
2
WorkManager tips num.7 If you use WorkManager in a library, you should stick to the default configuration: WorkManager is a singleton, app and library share the same configuration. Also: - add Tags to WorkRequest - use getLastCancelAllTimeMillisLiveData buff.ly/3aWTzbv()

2
3
What would you like to have done for you this week? Flight bookings Reminders Adminstrative work Social media help Correspondence Editing & proofreading Transcription Whatever your work needs are, we have the right match for you #WorkRequest #HireAnEA #Delegate #MondayMorning
2
3