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

Apps auto start a app while charger connected

Hello everyone,
I am working on a app that automatically open when mobile is connected to charger, i have done coding also but it is not working, please help me this, i am sharing the code below:

Start.java
Java:
package com.androidsmile.labxs;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.util.Log;

import static android.content.ContentValues.TAG;


public class Start extends BroadcastReceiver {




            @Override
            public void onReceive(Context context, Intent intent) {

                if (Intent.ACTION_POWER_CONNECTED.equals(intent.getAction())) {
                    Intent i = new Intent(context, MainActivity.class);
                    i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                    context.startActivity(i);

                }}}

Manifest

Java:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.androidsmile.labxs">
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
    <uses-permission android:name="aandroid.permission.BATTERY_STATS" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
    <uses-permission android:name="aandroid.permission.READ_POWER_STATE" />


    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">

        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.PREFERENCE" />
            </intent-filter>
        </activity>
        <receiver
            android:name=".Start">

            <intent-filter>
                <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
                <action android:name="android.intent.action.ACTION_POWER_CONNECTED"/>
                <action android:name="android.intent.action.ACTION_POWER_DISCONNECTED" />
            </intent-filter>

        </receiver>


    </application>



</manifest>

[FREE GAME] Freeze Whiz

Just released this game one week ago, it is one of the hardest casual games on the play store. If you're all about the skill, you should test this and have fun with it.

I would be happy to see your scores.

Link:

https://play.google.com/store/apps/details?id=com.matthewmell.freezewhiz

HsTeBrBWe522GIuUAhMLvb-RdQv9jTVIfCZelza5YmntQTctlA6tv9RuOGm_r6hRHx8=w1920-h937-rw
QxzE3sv6eunvfrcf0N6Gl8PBFcgaMqTzNKkk971yVadrHZLvTGy8hrqS2CvcMrfDGfJB=w1920-h937-rw

qvDIyGcT8kBxs0YPjN1oexgpHzgMAf2uZoxltqYgmwllUtmzpRpfORiu4NyHD-9vBA=w1920-h937-rw



Description:

The penguin's habitat is melting away due to climate change.

Save the penguin by drawing lines of ice. Cover as many holes as you can.

Be fast, be sharp - saving the penguin in not an easy task.

How far can you go?

Have fun!

Share this game to raise awareness for global warming.

PDF Files Recovery App or Recover Deleted PDF Files

Recover your lost PDF files easily with pdf recovery app for android. One of the best app available on the Play store that is giving 100% result while recovery of deleted pdf files. Deleted pdf documents and files can easily scan and can restore into an SD card or in the internal phone storage.

No root access is required while recover lost pdf data only thing that required is a stable network connection because scanning can only be done online. To get all your documents back into your storage you just need to install this app and click on the scan button.

This android application provides the user a very easy and modern interface that is easy to interact with. With just a few clicks, the recovery process starts and it is 100% safe. Stop hesitating! Moves toward the fastest way to recover photos, recover videos, recover audio from your SD card and mobile device.

Easily restore all lost pdf files into SD card or in the internal storage without any difficulty with pdf recovery app. pdf file recovery app also repair corrupt pdf files that can be corrupted because of any reason. i.e. malware
Key features
• PDF recovery app is easy to use
• User-friendly GUI
• Quickly Scan all deleted documents
• One click to restore or recover deleted pdf files
• Deleted PDF restore into SD card or in phone memory
• No root Access is required to recover deleted pdf documentss

Help Nextbook Tablet constantly freezes and crashes

I don't think u quite get my problem. I can't see how u can possibly think a pitch black wall paper that's 92kb in size and has used all of 12 kb of data to keep my eyes from hurting is eye candy. As for Nova Launcher it's 27mb app that uses very little data and yes I disabled Launcher 3 which constantly stopped responding Nova has not once not responded or frozen Nova has 50m+ downloads with a rating of 4.6 on the play store The info in the activities helped me find the hidden apps on my device. KUDOS to CAMERON SUMMERSON, Editor in Chief of How To Geeks. He handles all of the UX writing for Nova. He rewrote all the text from the ground up for the 6.0 launch. Svim, you have single handedly made up my mind to uninstall and leave this forum. Next time maybe you should pay more attention to the help a new member is looking for!!!!!!!!!!!

Help Stuck on LG screen

When I start my Metro PCS L70 it starts up to LG logo and stays there. If I try to reset it, power and volume buttons, I click yes to erase and reset, twice. It goes to android screen says 'erasing' and then quickly flashes to the next screen (barely long enough to read the word 'installing...') and then just goes immediately back to the LG screen and stays. The only thing the phone allows me to do is go to download mode (volume up, plug into PC) which brings me to "Update Firmware" screen and stays at 0%. Can anybody tell me what wrong with it and how I could possibly fix it? I don't believe the phone was rooted, this is how I received the phone
Since it boots into download mode there's hope. Flash the firmware (kdz) file for your device and it should boot normally.

iPhone (Pix, Music, etc.) to S20 Ultra

Here's a nice, almost comprehensive guide on migrating your data out of your iPhone into an Android device:
https://www.computerworld.com/artic...ch-from-iphone-to-android-ultimate-guide.html
It's more focused on using online services to do your transfers as opposed to physical media like microSD cards.
But however you're going to approach this, keep your iCloud account active.

Apps How to get ViewPager to recognize and wrap_content on tab fragments?

My problem:
I 'm having an issue and cannot determine why the ViewPager will not display the tab fragment fields unless I hard code the 'layout_height" parameter? Below I have an image of what happens and what my goal is.

The ViewPager resides in the ConstraintLayout beneath the TabLayout. The 'blueprint" layout provides a visual image of the ViewPager constrained to the ConstraintLayout to expand as needed.

What I have tried:
I have watched 3-4 TabLayout tutorials and read various documentation. The only difference between my project and those is that my activity is not specifically restricted to just the tab layout, but begins after the other fields. However, I'm not sure this has an impact because, as I said, if I hard code the height of the ViewPager each tab fragment content can be seen within each tab.

Let me know what else may be needed to help assist my issue since I provided limited code (see below).


What happens:

Tab with no fields displayed.JPG


The Goal:

The Goal.JPG


The white line is both the ViewPager constrained to the Constraint Layout

ContraintLayout-ViewPager.JPG


Related code (ViewPager setup and ViewPager XML):
Java:
SectionsPageAdapter adapter = new SectionsPageAdapter(getSupportFragmentManager());
        adapter.addFragment(new SourceFragment(noteDetails.get(2), noteDetails.get(3)), "Source");
        adapter.addFragment(new QuoteTermFragment(noteDetails.get(5), noteDetails.get(6)), "Quote and Term");
        adapter.addFragment(new FilesFragment(), "File");
        viewPager.setAdapter(adapter);
        tabLayout.setupWithViewPager(viewPager);

XML:
   //.... tablayout code and items....
   </com.google.android.material.tabs.TabLayout>

    <androidx.viewpager.widget.ViewPager
            android:id="@+id/view_ViewPager"
            android:layout_width="0dp"
            android:layout_height="0dp"
            app:layout_constraintTop_toBottomOf="@id/view_Tab_Layout"
            android:layout_margin="5dp"
            app:layout_behavior="@string/appbar_scrolling_view_behavior"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintBottom_toBottomOf="parent">

    </androidx.viewpager.widget.ViewPager>
</androidx.constraintlayout.widget.ConstraintLayout>

Slo-Mo camera sounds like a horror movie

Ah, my bad and you are no doubt correct in the need for additional frames to convert. Recording in slo-mo would fill my needs 99% of the time. It's that rare occasion that a random video captures something that would be hilarious if slowed down and viewed with such quality.

Recording in 60fps would allow you to do that, though higher frame rate would be better. I have some footage in 240fps that looks slick, but haven't posted anywhere yet (done with a gopro)

Apps Android Room: Passing method variables to @Query annotation statement

I did find resolution to this issue, but not as expected. The following code was provided by Android Room development as the proper syntax and solution. They stated that the examples provided shouldn't be taken literally, which doesn't make any sense from a documentation standpoint. The purpose of documentation is to "document" how to do or use something, why would you make it up? Especially when the purpose of the Room Persistence Library is to reduce complexity, even in querying data.

@Query("SELECT CommentID FROM Comments WHERE Comment LIKE '%' || :value || '%'")
List<Integer> customSearchCommentsTable(String value);

Anyhow, sorry for the rant. Just know the example provided in the documentation does not work as implied.

For further reference if needed, see the following I posted:
Issue Tracker:
https://issuetracker.google.com/issues/149519050

StackOverflow:
https://stackoverflow.com/questions...turning-data-known-to-exist/60622070#60622070

Contacts back up

Go into your contacts app, view the contacts list, then go into the app's settings. Somewhere in there you'll find an option to import/export contacts (possibly under 'contacts management', but as LG will use their own contacts app it will depend where they put it). Choosing 'export' lets you export them to a vcard file (.vcf) which you can then copy to your computer. That's a standard format which you can import into any contacts management program.

The actual contacts database is in a location you won't be able to see without root (basic information security: if it was in a 'public' place any app with filesystem access would be able to copy your contacts and upload them to their favourite spam sites), so exporting them is the way to do it.

If you sync them with a cloud service (e.g. your GMail account) you can probably export them from there as well.

Ok great I'm gonna give that a try! Thank you &#128513;&#128513;&#128513;

Virus on Phone

Did you notice the part where you can limit how much space it uses, thereby making it unnecessary to manually clear its cache? :)

Its option to clear cache is generally not needed, as it obeys the limit it's given. That's more for a one-off thing if you want to clear its [user-limited] cache for some reason.

Yes.
But all of those cache limits seem large to me.

I don't even have apps that size.

For what its worth, I see no purpose in any cache at all.

When I delete it all, my device runs great.

When my device starts moving slow and stumbling, 99% of the time it is due to a gigantic pile of steaming cache.

Small memory devices should have the ability to just not allow apps to build caches at all.

Yes, I know that the info is supposedly making the app faster and that it will just reload when I open the app again.

Frankly, I am fine with that.
But there is no need for it to just sit there and grow and grow and grow, as it winds up just slowing the device down to a crawl and then a stop eventually.

My ol'lady has an identical device.
She likes to take pictures.
She downloaded some crAPP that was supposed to do something with her photos that she thought sounded cool.

So after a week or so, she is bitching about her phone, and me for 'doing sonething to it'.

Mind you, this is a device that has 16GB internal memory, about 6¼GB is used by the system.

Her phone was non-functional.
As in non-responsive.

I actually had to go into the developers options and turn all the animation off completely.

Then I could navigate, albeit very slowly.

So, it turns out that her memory is completely full.

She has a 32GB SD card, with about ⅓ space remaining, but the phone clogged.

The phone is set to put pictures and videos onto the SD card.

I checked the file manager, and nothing seemed to be amiss- no giant files, no folders with large amounts of files, but 0 memory available.

The device crashed a couple of times, just trying to find what the heck was causing this.

Luckily, I had already installed Android System Cleaner on her device, so I closed all open apps and ran it.

There is a duplicate finder feature, and I used it.

It turns out that this turd of an app she got has been storing a copy of every single video and photo on the device- but in its own cache files in the device's internal memory.

So there was a copy of every single thing on the SD card on the device as well.

So luckily, the duplicate finder feature tells you the location of the files that it finds, and I used this info to delete the offending garbage.

As far as I am concerned, that picture app should be classified as malware.

If it wasn't for that cleaner finding those files within minutes, I would need to have located and sorted through 6GB of digipoop by hand.

Part of the problem is that she plays endless amounts of those stupid 'candy' games, where you match items and solve puzzles.

Many of these games have hundreds of texture and layout files that are stored on the internal memory.
Whatever that app was, made copies of all those as well.

As just one of these games has around 800 of these files, you can only imagine what it was like having 800 more put onto the device, and then another copy onto the SD card.

She has like 6-8 of these games, and does not delete the files when she moves on to other games.

Just because I mentioned it here, the next time I get a hold of her phone, I will screenshot her apps list from the Play Store.

I still get it and clean it out every once in a while, and update the apps she needs updated, so I will screenshot it (or part of it) then shoot the pics over to my device and send them in a message.

Transdroid question

I've just started using Transdroid and had no trouble with the setup, but something odd is happening and I can't figure it out.

When files in a torrent are set to "priority: don't download" and I change the priority to "normal" in Transdroid, the priority updates in both Transdroid and rutorrent, but the files don't start to download. If I then go into rutorrent and change any other "don't download" file in the torrent (not one of the ones I changed in Transdroid) to "normal," all of the ones that I changed in Transdroid with start to download. Any idea why that would be happening? Anything I can to to fix it, so that when I change file priorities from "don't download" to "normal" in Transdroid, they start to download?

Filter

Back
Top Bottom