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

HELP Video Player App, play the next video at the end

HI, I would like to play the next video in the folder after the first one is finished but I don't know how to do it. I know that I must put something in the OnCompletion() but I don't know how to create the link with the VideoFolder class. I managed to play again the video, like a loop, but I wanna make a loop of the whole folder and idk how to do. If someone can help me...

HELP How to adapat screen size of a Relative Layout videoView

Hi, for an app that is a Video Player, I want to create a button that stretches the video to the edges of the screen. I have made a RelativeLayout :

Java:
<VideoView
        android:id="@+id/video_view"
        android:keepScreenOn="true"
        android:layout_width="fill_parent"

        android:layout_alignParentRight="true"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:layout_alignParentBottom="true"
        android:layout_height="fill_parent"/>

and the code for the button :

Java:
case R.id.videoView_track:

            DisplayMetrics metrics1 = new DisplayMetrics();
            getWindowManager().getDefaultDisplay().getMetrics(metrics1);
            android.widget.RelativeLayout.LayoutParams initialParams = (android.widget.RelativeLayout.LayoutParams) videoView.getLayoutParams();

            if (clickCount==1){
                initialParams.alignWithParent = true;
                videoView.setLayoutParams(initialParams);
                clickCount=0;
            }
            else if (clickCount==0){
                DisplayMetrics metrics = new DisplayMetrics();
                getWindowManager().getDefaultDisplay().getMetrics(metrics);
                android.widget.RelativeLayout.LayoutParams params = (android.widget.RelativeLayout.LayoutParams) videoView2.getLayoutParams();
                params.width = metrics.widthPixels;
                params.height = metrics.heightPixels;
                params.leftMargin = 0;
                params.addRule(RelativeLayout.CENTER_IN_PARENT, RelativeLayout.TRUE);

                videoView.setLayoutParams(params);
                clickCount=1;
            }
            break;
    }

The "else" part works, the video is first stretched and when i click the button it adapts to the screen size without stretching but I don't know how to do the contrary (the "if part"), how to kind of reset the params...

Thanks for your help

Is it possible to programmatically measure methods CPU time? (not execution time)

I have an application that uses OpenCV to process images from the camera in real-time. The processing consists of several steps, wrapped in separate methods like filtering, thresholding, etc. I would like to have an estimate of CPU time used by each of the methods to make an estimate of their energy consumption. I know that I could do something like

Java:
public long filter(Mat input) {
   long time = System.elapsedRealtime();
  
   ...

   return System.elapsedRealtime() - time;
}


to get the execution time of each method call but I think since I'd like to correlate it with energy consumption it would not be precise enough. Is there some way to maybe get the total CPU time of the current process? (I know in Android Studio's Energy Profiler I could trace CPU time of methods but I wanted to know if this is achievable at runtime programmatically)

Obamaphone service - through VIrgin Mobile - Annoying Ads

Checked your link. Found "Online" and "Oklahoma" but no Obama anything.
They were called "Obamaphones" because that's when they started the program. They are paid for with the "Lifeline" program that helps/helped people with their land lines. If you dump the Obamaphone, you can still have the credit applied to your landline instead.

Samsung Settles Note 4 Class Action

This is all ancient history, just like the Note 7 was. Is there any new Samsung smart-phone news?

Yes, plenty! I try to keep this thread up to date, but August 11 and 11 AM Eastern is the next Unpacked Event for awesome new stuff:
https://androidforums.com/threads/note20-the-last-of-the-note-series.1327714/page-2

And while it's ancient history, litigation takes years in some cases: this was one of them, because Samsung continued to file motions to dismiss. The courts kept denying the motions, finding merit in the case based on compelling evidence.

What? Class Action Lawsuit? I didn't get any money

If you did not sign on as a plaintiff member of the class, you would not. But this was years ago... water under the bridge. That's why I get emails from Top Class Actions, so I know what's going on. The Note 4 isn't the only consumer product knowingly sold with critical faults.

Android Front Camera Replacement

Short answer: no.

Long answer: the camera would have to fit physically, be 100% compatible electronically, and would have to be 100% compatible with the phone's firmware (which was built for the particular camera that the manufacturer installed). Mobile devices aren't PCs: if you change the camera the OS won't recognise that the hardware has changed, identify the camera model, search for a driver and install it. What it will do is try to interact with it as if it was the original camera, and almost certainly crash whatever app tries to use it.

You would probably have more luck trying to find out whether the phone can drive an external webcam via the USB port (I don't know, I've never heard of anyone try, but I've also never looked to see whether anyone has).

Edit: the thread merge since I posted this has changed the post I was replying to, making it read less like the question is actually about replacing the front camera. Hence I think large parts of this answer don't apply to the current question, but can't be bothered to try to rework. I still don't have an answer, and do not think that you'll be able to trick the installed camera app into using a USB camera in place of the front-facing camera, which I think is what's actually being asked.

Phone locks up. UGH!

I was wondering where the old Moto Help app had gone to on my E6 Plus. Its now called Device Help and it's still there on mine. It may be of no use but could lead to online support, I think.

I did a search earlier and the Motorola and Lenovo support forums had nothing similar, just start up freezing.

(My older E6 Plus is on 1 June patch btw)

How does this scam work?

Yup.
That is what scammers count on- mimmicking the behavior of legitimate businesses.

My father stopped doing business over the phone entirely.

He never got scammed, but that never stops them from trying.

So all legitimate businesses are told that no one in the house does any business over the phone.
They no longer call, and when we get calls like that we know that it's a scam.
Yeah, I stopped answering calls a long time ago, except as outlined in this thread, i.e., when I'm in the mood to have a little fun. :o

Any call I don't recognize, I just ignore and let it go to voice mail. There my message tells them there's no point in calling back repeatedly, and that the only way they're going to talk to a human being is by leaving their name and number. The ONLY ones who do are legitimate people.

I've had 20+ calls per day, for weeks on end, and I can't explain how annoying that is. Recently, for whatever reason, they've slacked off to *only* about 5-10 per day. :rolleyes:

Stop Redirects, Possible??

Dang I just knew you were going to say DDG. Like Google,DDG another I prefer Not to use. Even though Amazon not as bad as Google is, still prefer not just Handing over my personal info. Since posting this request, I tried over 15 different "Private" browsers, dozens of "ad blocking"browsers on top of prior browsers.couple of ad blockers (blockade,Ad blocker+) so far nothing worth noting really works against redirects. Curiously I went with the redirects just see results.197 redirects in a row. Probably been more but a sister found out I was using Her phone for this and took it back. and damn you talk about being mad.. what? You didn't actually think I would risk MY PHONE did you?? Seriously?!!

Notice how I used the words 'SEARCH ENGINE' and not 'APP'?

I do not use DDG browser or app.
I use DDG search engine on a browser of my choice.

The browser is my choice in browser because I have yet to have any other demonstrate such speed, security, and customization.

I also already told you that ad-blockers are virtually useless against redirects.
That is why redirects exist.

The only way I have found to get rid of the majority is to block the IP of the redirect and/or use a browser that is fast enough and allows you to be fast enough to go around or get behind the redirect.

Also, these bastard redirects can even be hidden in your browser cookies, and so they can even follow you from site to site and reappear over and over.

Also, do not discount what I said about how some sites use the best thumbnails to get clicks on them- and there (disappointingly) is no video or gallery even linked at all- only more redirects, full page popups, etc.

This is all part of the game.
You CAN choose to avoid sites that do such things, as there are plenty that do not.

A thing you may want to try is a VPN.
A decent one will mask your location, so you can at least avoid local advertising and redirects.

https://f-droid.org/en/packages/ch.protonvpn.android/

Help Samsung Tablet wifi and Ethernet

Ok, I have bene able to enable it for ethernet and wifi (i had to put junk addresses in the DNS and Gateway), Now i just need to find a remote tool like VNC server.

Edit:
And mission complete. With the junk details in the gateway for the ethernet, it uses wifi(DHCP) for internet. DroidVNC-NG as the VNC server on the tablet. I can reach the tablet from the LAN and test the internet network experience using the WiFi without utilizing it's bandwidth or relying on it actually working at that time.

sorry for clogging up your forum but i couldn't find the answer anywhere. It just needed more experimenting.

Clearing cache

Wow svim, that is some explanation. thanks for taking the time to answer my 'problem'.
So even if the RAM drops to about 300Mb I shouldn't be woried.
I understand that if the system (or apps) need more ram-space they'll just remove unnecessary ram so that they can work properly.
Thanks again.
Andy

AT&T splash screen needs to die

I am buying another Galaxy S10+... Well I want to buy it but it has this hideous loud and blinding ATT boots screen. I put up with that crap years ago but I won' t do it again.
I read alot of the posts here and I am hoping there are some newer answers out there. How bout people? Can you help me? ❤️

What others have said:

https://www.amazon.com/dp/B07PJV9ZLR/ref=cm_sw_r_cp_apa_glt_fabc_A7FBGJSYN0PE3TV3QAW7

No Call recorder for Galaxy A11 ??? please help

Your best bet is to just do a search on the play store for call recorder and try each one until one works...
I'm not sure what the legalities are in Australia, mate...
You could install a VPN and see if that may help the issue
Thank you - Im now making progress - years ago full feature "call recorder" used to be free - now some Only offer trial versions - it seems the world is getting Tighter $$$ - also some are full of ads - some I now see do work- but with some Limitations.

Android script to automatically print files copied to a folder?

Is there a script for android that would automatically print files that are copied to a certain folder? Once printed, I would like the script to then delete the files in the folder. At the moment I am using the HP Print Service plugin to print from android to a HP printer, but want to automate this process so that I don't have to open each document that I want to print. I simply want a script to print all files in a folder and when printed delete those files. File types I need printed are jpg, PNG, doc, docx, pdf.

If there is nothing already written to do this, how difficult would it be to write something like this for android?
Probably not difficult, if you're already proficient in writing *nix scripts. However....

I agree with @mikedt. I think the easiest thing would be to use an app that already exists.

But something jumped out at me that you might want to rethink/reconsider. Given all the potential for something to fail along the way (a paper jam, for example, or running out of ink or whatever), *I* would move the files somewhere else after they've [theoretically] printed, and only delete them when you're sure they really did print. Of course, if they're not of such importance that this kind of caution is called for, never mind! :)

the Official MCU thread

its pretty badass!!!!!! wait until the very end......there is an end credit scene as usual with most MCU movies.
I could not enjoy the movie, too many talkers who thought they where quietly whispering, and there was a few bums whose heads cut off the bottom edge of the screen, my eyes jumped over there, younglings...

I kept wanted to block them with my hand in my sight too, but had to move and watch the ending and the end credits too.
I have to re watch it, I got up a few times too.. Just sort of put me off watching movies until there is no one inside the theater ya know.
Still what I can remember was alright.

How to read data(measurements) from Arduino Ethernet Web Server

Thanks! I mean I want to build an android application for my samsung mobile phone in order to gather the measurements and keep the history, obviously display the measurements + control button and things like this...


Do you know how to code in either Java or Kotlin? I believe that's what's used for building Android apps with Android Studio.

Filter

Back
Top Bottom