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

How do I hide "this" from TextEdit?

How can I hide "this" from EditText?
Bild.png


I tried to use this code:

Java:
textField.setCustomSelectionActionModeCallback(new ActionMode.Callback() {

    public boolean onCreateActionMode(ActionMode actionMode, Menu menu) {
        return false;
    }

    public boolean onPrepareActionMode(ActionMode actionMode, Menu menu) {
        return false;
    }

    public boolean onActionItemClicked(ActionMode actionMode, MenuItem item) {
        return false;
    }

    public void onDestroyActionMode(ActionMode actionMode) {
    }
});

textField.setLongClickable(false);
textField.setTextIsSelectable(false);

That code removed the "copy/paste" window when clicking on the EditText but still left me with this:
Bild2.png


Any idea how i can get rid of them? :)

USB data transfer failure

Hello. I've plugged my USB into the Samsung USB A to c adapter then plugged into my phone.
I successfully copied a mp4 video from my phone to the USB drive.

But, when I plug the USB thumb drive into my PC, I can read the files that was originally in that USB but not the mp4 video that I transfered from my phone.

But if I plug the USB back to the phone, I can watch that video.

If anyone knows how to solve this, please give me a hand. Thank you.

Is there real location weather widget for android without ad

My model is galaxy j2 pro and i tried google weather inbuilt weather widget but it is showing your home location. I want real location weather widget, basing on phone location, or whereever i am having the mobile.
i did not find this in andoid app in play google store.
The apps i tried only gives their choice of location or fixed location like home
I also do not want third party apps like accu weather, which is alleged to have sold the location data to third parties.
If there is a setting in google widget at a glance widget, then i will be gld.
if the widget belongs to reputed vendor, who does not sell data would be gled to use
When i click on the at a glace widget of google, it rounds and get you the fixed location.
Google location sharing service is entirelyl different settings , i think
If i have to make it , to know the weather where my mobile is , what i want.
There may be experts using those.
I

Would The Samsung A20 Be A Good Buy Today?

I am looking for a phone in a hurry because my Aspera Jazz is fairly useless with the maps application.

Don't want to spend much money if I can avoid it. But need one for my job.

The Samsung A20 at about $270 seems to me to be about the best in its price range. Would that be right?

But I'm a bit worried about reviews saying the screen cracks easily and screen protectors are not readily available because the phone is too new or something.

So I thought I would just come and ask here and see if anyone has any advice for me before I go out and get something.

Perhaps there's some tough cheap workhorse out there that everyone's using.

My hurried surveys seem to show that I should look for about 6" screen, 13MP cam, 3G Ram and 4000 battery, agreed?

p.s. and cost-wise I'm worried about the plan aspect which I'm not too sure about. My feeling is pre paid is cheaper for me and I've always had pre-paid phones. I don't understand it all but I think I need an 'unlocked' phone for that? Yes? No? What's the chances there'll be some caveat, some hassle of that sort with a phone that I might go to buy?

Like they sell them cheaper because they catch you on 'the plan' ? Or is that really not a worry?

Fix nonqr bike seat

Well, I finally scored a new (to me) bike. It's a Diamond Back Wildwood, and even the helmet was included. I'm going to have to adjust the seat height, most likely with a wrench, because there's no qr (quick release). Does anyone on here have advice about this? Could I possibly replace the current arrangement with a qr? Also, how do I add a kickstand?

Drop box.

While downloading an hour long videos via dropbox to my moto, Somehow they dissapear and give me the broken image of video, I am going to stop doing that and just have like half hour videos too, but it was for incase of an emergencies as well. Ontop of that, well I almost fear that dropbox will even over power cloud, I am just wondering if I could send my files to my drive accounts, and just like have my notes on there more.

But I am not looking for just space itself either, I have around 900 Terabites of notes, mostly on facebook and also on my blog too. I am a serious writer too. So my original thought was when download an hour long video, why does it show up a blank image ? Is it because of CCleaner?

BubbleDraws problems

Hello, I tried a tutorial: Learn Java Like a Kid Build Fun Desktop and Mobile Apps
And I have problems with Android Studio.
Indeed what I have done is only create a class BubbleView:
But I don't know what I have to do with the xml files...
thanks

Code:
import...

public class  BubbleView extends ImageView implements View.OnTouchListener {
    private ArrayList<Bubble> bubbleList;
    private final int DELAY = 16;
    private Paint myPaint = new Paint();
    private Handler h;

    public BubbleView(Context context, AttributeSet attrs) {
        super(context, attrs);
        bubbleList = new ArrayList<Bubble>();
        myPaint.setColor(BLACK);
        h = new Handler();
        this.setOnTouchListener(this);
    }

    private class Bubble {
        public int x;
        public int y;
        public int size;
        public int color;
        public int xspeed;
        public int yspeed;
        private final int MAX_SPEED = 5;

        public Bubble(int newX, int newY, int newSize) {
            x = newX;
            y = newY;
            size = newSize;
            color = Color.argb((int) (Math.random() * 256),
                    (int) (Math.random() * 256),
                    (int) (Math.random() * 256),
                    (int) (Math.random() * 256));
            xspeed = (int) (Math.random() * MAX_SPEED * 2 - MAX_SPEED);
            yspeed = (int) (Math.random() * MAX_SPEED * 2 - MAX_SPEED);
            if (xspeed == 0 && yspeed == 0) {
                xspeed = 1;
                yspeed = 1;
            }
        }

        public void update() {
            x += xspeed;
            y += yspeed;
            if (x < 0 || x > getWidth())
                xspeed = -1 * xspeed;
            if (y < 0 || y > getHeight())
                yspeed = -yspeed;
        }
    }

    protected void onDraw(Canvas c) {
        for (int x = 0; x < 100; x++)
            for (Bubble bubble : bubbleList) {
                myPaint.setColor(bubble.color);
                c.drawOval(bubble.x - bubble.size / 2, bubble.y - bubble.size / 2,
                        bubble.x + bubble.size / 2, bubble.y + bubble.size / 2, myPaint);

            }
        h.postDelayed(r, DELAY);
    }

    private Runnable r = new Runnable() {
        public void run() {
            //update burbujas
            for (Bubble bubble : bubbleList)
                bubble.update();
            //dibuja
            invalidate();
        }
    };

    public boolean onTouch(View v, MotionEvent event) {
        bubbleList.add(new Bubble((int) event.getX(),
                (int) event.getY(),
                (int) (Math.random() * 50 + 50)));
        return true;
    }
}

Apps Filtering List for Recycler View

Hello Everyone,

I am attempting to write a course scheduling app as an assignment. I am writing in Java and using a Room database. It's intended as a build-your-own schedule tool.

Basically, I have Terms, Courses, and Assessments. A term has its own courses, a course has its own assessments. All objects are created ad hoc based on the user's needs, so there are no established lists of objects aside from sample data I have provided in the database.

I am using a recycler view to display the courses in a Term details activity, but I haven't been able to figure out how to specifically display courses by Term instead of the full list of Courses. As of now, both sample Terms are displaying the full list of courses in their respective recycler views.

What would be a good way to go about filtering my course list by Term id?

This is how I am populating my Term's course list recycler view, and I know this is incorrect for what I am trying to do, but I am getting confused by the DOA, Repository, CourseViewModel, Database cycle. I have attempted to solve the problem from multiple levels and keep getting into Catch-22 type situations.


Java:
courseRecyclerView = findViewById(R.id.course_recycler);         
                    adapter = new CourseListAdapter(TermDetailsActivity.this);
                              courseRecyclerView.setLayoutManager(new LinearLayoutManager(TermDetailsActivity.this));
                    courseRecyclerView.setAdapter(adapter);
                    adapter.setCourses(allCourseList);
                    mCourseViewModel = ViewModelProviders.of(TermDetailsActivity.this).get(CourseViewModel.class);                  mCourseViewModel.getAllCourses().observe(TermDetailsActivity.this, new Observer<List<Course>>() {
                        @Override
                        public void onChanged(@Nullable final List<Course> courses) {
                           
                            adapter.setCourses(courses);
});

Sincerely,
Andrew

ONN tablets, behaving differently

Bought the ONN 10.1", liked it alot so bought the 8" as well. Both show to uname -a 'Linux localhost 4.9.117 #1 SMP PREEMPT, then different dates, then armv81.

On the 10.1" to close a program I touch the square and running apps appear and have an X in the upper left that closes the app.

On the 8" the apps appear, on on the screen to be scrolled to the side and do not have an X to close the app. I can swipe the app window to the top to close, so that works, but I would prefer to have consistent behavior on both devices..

Update says they're both up to date.

BOOTLOADER PROBLEM

Hi guys, my GOOGLE PIXELS XL has been stuck on infinite boot loop for a week or two now. i have researched on various solutions and has gotten a lot, unluckily for my i am not able to do any because my phone will not even come on access user data for a start.
i discovered i can flash the phone with SP FLASH TOOL, but that would require a SCATTER FILE which i cannot generate too, due to the phones current condition.
pls guys, i need someone who uses GOOGLE PIXELS XL to generate the scatter file for me or has the SCATTER FILE for the phone to either mail it to me @ (**mod removed email due to spambots seeing it :) ) or mail where i can get it or recommend other solutions.

N/B; ONLY FOR GOOGLE PIXELS XL users.
thanks

  • Poll Poll
Help I/We(?) have been cheated!(?)

Did you find that your Samsung product had the incorrect motherboard in it?

  • Yeah, I couldn't believe it!

    Votes: 1 100.0%
  • Nope, you're crazy buddy.

    Votes: 0 0.0%

Something does not seem right! I had purchased a Galaxy S7 Edge (SM-G935V) when they first came out. She had it about 6 months before she washed it in the washer (how many phones she has gone through is another thread). At any rate, I kept it and recently I decided to see if I could switch out the motherboard to keep it running. WELL, I opened the S7 to start the work and when I got to the motherboard, I found that it has a SM-G928V motherboard :| .... that's a motherboard for a Samsung Galaxy S6 Edge.

WHAT THE SNAPS???

I reached out to Samsung support and received a couple of pithy responses from their support (see attachment).

ACTION ITEM: If you have an old galaxy phone you're not using, take a look. I would suggest videotaping the work you do. Not sure if this was localized to a specific store, a region or if it's widespread. ALSO, it could have just been Verizon phones .... I don't know.

Help me out and let me know what you find. Keep in mind ... I still love Samsung products (in spite of a couple knucklehead social media support guys) and Verizon. Well, at least until I know if they've been jacking around with people.

Nexus 6 Vs Nexus 6P-Witch Is Better?

So this thread is going to discuss eitch is better and witxh is better for you to buy overall based on your preferences.

So we are going to discuss pros and cons of both and i own both devices so i can accurately tell you what these are so lets get started!

Nexus 6 (shamu):

Pros:

• Display is big so you'll find playing or viewing apps is quite pleasing to view even if you have big fingers.

• Has 3GB of DDR4 RAM (1GB IN USE OF OS)

• Storage can go up to 64GB or higher depending in the model (mine is 32GB).

• Huge battey capacity 3000MAh

• Highly Supported in the development community so you will find all kinds of ROMS to install and is officially supported by LineageOS up to LineageOS 16.0+.

• Dual front facing speakers.

• Fast Charging Supported.

• Specs: Qualcomm Snapdragon 810 2.67GHz 4 Core CPU with a Qualcomm Adreno 420 600MHz GPU using a 32-Bit Arch armeabi-v7a,armeabi.

• Decent Camera but a little outdated for its time, but still a good camera.

• Audio jack is in a perfect place insead of being in the bottom it's placed on the top middle of the device.

• Supports USB OTG devices such as external storage etc.

• Supports Wireless Fast Charging.

• Official TWRP Supported.

• Bootloader is easy to unlock and no security notice on every boot.

• Support USB Type-A Micro USB Input

Cons:

• Battery Life isn't the best as their is a faulty with the battery this is normal for the stock battery and when the device hits below 50% or even lower than 50% the device will randomly shutdown and assume the battery is dead, can be replaced but this is a faulty that google has not addressed and will never address at all!

• USB Type-A Micro USB port is open to break due to it's lack of support to keep it from breaking (this hasn't happend to me yet but experienced devices with the same USB tyoe as this device has).

• Dual Audio speakers do sound great but they do tend to flexuate from time to time and can last up to 15 to 25 seconds each time it happens this can be patched via software to an extent to help but this is more of a hardware issue then a software issue, this also affects calls because the other user on the other end can hear echos, but this can be patched via software end.

• This device is running a 32-Bit arch and runs great but unfortunately you lose the ability to use Vulkan OpenGL witch some newer games require to run, but isn't a deal breaker.

• Touch Screen is slighty too sensitive this causes small issues so when you scroll down on a page or in a app sometimes you will accidentally select an option you didn't want.

• No removable battery so it's a slight challenge to replace the components within your device without the proper tools and knowledge.

• No sdcard support so you wont be able to add additional storage.

• USB to HDMI output is NOT supported, unlike other devices MHL USB to HDMI is not supported.

• If your staying in stock OS this device is bloated with google stock apps and cannot be unistalled, and no new security patches are not being relased to this device.

• Device cannot view video content beyond 1080p but can render videos in software up to 4k but is not viewable within your device unless you upload it to youtube etc.

Nexus 6P (angler):

Pros:

• Great build quality feels similar to an iphone.

• Dual Audio Speakers that sounds better and works better then the OG Nexus 6.

• Great battery life (can lsst up to 5 to 8hrs depending on how you use it, it can last even longer).

• Audio Jack is on the top of the device witch is a good thing.

• Supports USB Type-C Connection.

• Specs: Qualcomm Snapdragon 820 2.67GHz 8 Core CPU with a Qualcomm Adreno 430 600MHz GPU ruuning on a 64-Bit arch arm64-v8a,armeabi-v8a.

• 3GB of DDR4 RAM.

• Storage can come in up to 64GB (mine is the 64GB model).

• Has a dedicated Fingerprint sensor on the back witch the OG Nexus 6 did not have.

• Has bigger capacity then the OG Nexus 6 3220MAh

• Decently sized display and more better resolution then the OG Nexus 6.

• Really amazing camera(s) that is an improvement from the OG Nexus 6.

• Less bloatware on the stock OS and apps are uninstallable!

• Officially Supported By LineageOS up to 15.1 (their are ither sources to get a higher version on LineageOS but is unofficially supported).

• Has decent development community you can find alot of ROMS for this device.

• Officially Supported By: TWRP

• Bootloader is fairly easy to unlock.

• Support USB OTG devices such as external usb drives etc.

• The device has a rating of IP68 water resistance.

• Device supports OpenGL Vulkan Support and runs games and apps requiring it very well.

• Fast Charging Supported.

• Touch Sensitivity is better then the OG Nexus 6.

Cons:

• No Wireless Fast Charging Supported (means you can not fast charge this device with anykind of wireless charging accessory).

• No MHL USB to HDMI output support.

• No removable battery.

• No sdcard support this means you cannot add additional storage.

• Device cannot view video content beyond 1080p but can renders videos in software up to 4k but is not viewable within your device unless you upload it to youtube etc.

• Battery slightly decreases a bit faster due to the 8 Core CPU but i love it still.

• After unlocking the bootloader you will receive a notic about notifying you to relock the bootloader to check for corruption this is normal and does go away after a few seconds but can annoy you if your not used to it!

İnstagram Private Api - Advice

Hello my friend,

I need to make an application that pulls user shares using instagram private api.
I will make the project mobile application using android studio.

Github stands on "charlieAndroidDev / Instagram4Andorid", "dilame / instagram-private-api", the most used is "mgp25 / Instagram-API" with php, but I'll develop mobile application with java-kotlin on android studio.

I'm a bit novice, but I love everyone on this forum and they help me. good that you are. Can you give suggestions on which api you can use or from someone else. and android studio with sample application, if the document would be very nice.

I'm sorry for my bad English, I hope it's a clear explanation.

Thank you and have nice work.

Filter

Back
Top Bottom