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

Apps Accessing phone GPS coordinates

You should be able to access the phone's location by querying the fused location provider directly on-device. You shouldn't need to run a bunch of queries against a costly web API. (I think; I'm not actually a developer, but I wasn't able to find any sort of pricing or limitations on using the on-device resources.)

https://developer.android.com/training/location/retrieve-current

Looks perfect. Thanks very much!

Arraylist Code Error

I have a problem with my code

package com.example.java;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ListView;

import org.w3c.dom.Element;

import java.sql.Array;
import java.util.ArrayList;
import java.util.Arrays;

public class MainActivity3 extends AppCompatActivity {
private static final String Tag = "MainAcitivity3";
@override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main3);
Log.d(Tag, "onCreate: Started.");
ListView mListView = (ListView) findViewById(R.id.listView);
Intent intent = getIntent();
String asd = intent.getStringExtra(MainActivity2.namabarang);
String asdf = intent.getStringExtra(MainActivity2.jumlahstock);

Item sparepart = new Item(asd,asdf);
ArrayList[] itemlist = new ArrayList[1];
for(int i=0; i<2;i++)
{
itemlist = new ArrayList<Item>(); // initialize each element with ArrayList object
}
itemlist[0].add(sparepart);
itemlist[1].add(sparepart);

PersonListAdapter adapter = new PersonListAdapter(this, R.layout.adapter_view_layout,itemlist[0]);
mListView.setAdapter(adapter);

String number = intent.getStringExtra(MainActivity2.extraint);
if(number != null) {
FrameLayout lay = (FrameLayout) findViewById(R.id.frames);
if (number.equals("1")) {
lay.setVisibility(View.INVISIBLE);
mListView.setVisibility(View.VISIBLE);
} else {

}
}
else{}

}

public void onBtnClick (View view){
Intent intent = new Intent(this,MainActivity2.class);
startActivity(intent);
}



}

And i plan to save the item in specific array in the arraylist and here is the error i got

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.java/com.example.java.MainActivity3}: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1

Help Google Play Apps will NOT Update!

Did you also clear all data from Google Play Services?

I know you say that was done for Google Play Store, but the two separate apps work together.

Hi, this has been resolved a while ago. After a couple of Google Play manual updates it started updating on it's own and updating apps normally. I'm sorry, I should have marked this as resolved. I'll do it now. Thanks for getting back.

Help Anyone know the OTG connected flash drive max capacity for the S8+?

Android only supports FAT32 and exFAT for external USB media so the issue doesn't sound like it necessarily has anything to do with that Sandisk flash drive itself but there's a good chance whatever OTG adapter is the actual problem. If that is the case, it makes no difference what USB storage media you try, if the OTG adapter/cable isn't compatible with your S8, nothing can be detected and mounted.
Do other USB devices connect to your S8 through this OTG adapter/cable and it's just this Sandisk drive that's a problem? That would indicate the problem is with the Sandisk drive and your phone. If you cannot get anything to connect to your S8, using that OTG adapter/cable, that would indicate that it is the problem.
What OTG cable/adapter do you have?

Note10 Hacked

Yeah no idea how exactly it was infected or whatever. It would have to be some sort of zero day. Thing is I am sure that this is going on just cannot explain it as unlikely as I know as that sounds. There has a been a lot of those discovered lately

You actually said earlier that you had installed several security apps and a VPN before it happened.
Uninstall them all, wipe the cache partition and see if it stops.
One of them is possibly sending false popups that you have been hacked to trick you.

No need at all for flashing new firmware at this stage. Step back from the dynamite folks, we don't know where the rat is yet.
Also, If you go into Sttings/About/Software Information:
What are the One UI and Android versions listed?

Bode.

add delay between videos

im looking for a way to play videos but add a delay between videos, so during the delay there won't be anything on the screen at all, then when the video starts back up again, the video will be displayed again

the reason is because im making reaction videos, and a lot of videos will get blocked if you show too much of the video, especially for reacting to tv shows like the walking dead, so that's plan only show 10 seconds at a time, then have a black screen from a video that i made with black pictures, then i would use the pop up view for the video player, if i could get this to work, it would save a tremendous amount of time editing, because right now i have to add lots of pictures over and over again throughout the entire video, and for tv shows it's a very long process
Also it doesn't necessarily need to be a video player to accomplish this, it could also be done with a video editor, although so far the ones i tried, kinemaster and video show, once you cut out a section the 2 remaining sections fits together instead of staying apart, and with kinemaster although you can make clips transparent you can't make the parant clip transparent just the overlays, any ideas to accomplish this affect would be awesome, and i Will be forever grateful for any ideas thanks

Help The phone locked itself out of nowhere and added a password

Your friend obviously did set up a lockscreen password at one time (just randomly guessing the necessary password is mathematically not going to happen) so you should be the proactive one and get things settled now. Have her go into the Settings menu, open up the menu for Security, and intentionally set up a lock screen with a password or gesture or whatever that she won't forget.

Librera. Book Reader of all formats

Hi, great product - I have been looking for a product that reads all my various ebook and pdf format and allows me to list them by cover view by folder on device. perfect!!

Although is there a way to pre-load the cover display (you have to go into each folder to load them once) - i dont mind running it at the start (update) and letting it update all my books/cbr/pdf/epub/mobi formats with covers (from the files).

Lastly is there any reason why some of my book covers are not display (just shows file name), even though the cover exists in the file and is shown when using calibre on PC, etc

Thanks.

Warranty bit: recovery

T

Could you be more specific and provide some pertinent details? Vague references can only result in equally vague suggestions.
-- What is the specific model I.D. of your Note 10.1? (i.e. some have a SCH-i925x designation, some GT-N80xx)
-- Where did you obtain the ROM you used, and are you sure that it specifically matched your model? ROMs are not interchangeable between different models or different variants, they are very specific.
-- It's also vital you used the correct version of TWRP. They're also model specific. There's an Exynos and a Qualcomm version of TWRP for Note 10.1 devices.

From your description, it sounds like either the flashing process failed in some way (posting the end result Odin log might reveal something notable) or you used a ROM that doesn't match your model I.D. Flashing an incorrect ROM will result in something like that a boot loop or failure to boot up at all -- with no working operating system your Note can't boot up so it just fail. Try downloading the appropriate Samsung stock ROM from sammobile or frija, flash that onto your Note to restore it back to working condition. Flashing a stock, Samsung ROM will install a clean copy of Android and a stock Recovery so when you get your Note working again, you'll need to start over if you want to root and install a custom ROM again. Just be sure everything you flash onto it is for your specific model.

https://www.sammobile.com/firmwares/
or
https://forum.xda-developers.com/t/tool-frija-samsung-firmware-downloader-checker.3910594/
Thank you, I'll be able to provide you with details tomorrow, much appreciated.

Kyocera Dura Force Pro 2 Bugs

Picked up 2 of these phones for $900 each from Verizon April. Within 14 days the first one screen cracked while in my pocket however prior to that both have the screen wobble and would lock up randomly browsing or just in the app selection screen. After the screen broke I got a new different phone. My wifes has been ok aside from the frequently random lockups and screen wobbles until yesterday... Yesterday her phone just turned off and never came back on after a phone call. These have been the single handedly worst decision in a phone purchase I have ever made. After days of research and reviews trying to find a durable phone i have ended up with a lawsuit against verizon and kyrocera for lost time and data. The worst part is we had made the purchase to ensure our new sons photos and video memories would be secure and protected. What a disaster we happened across this absolute foreign GARBAGE.

Filter

Back
Top Bottom