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

Samsung J2 Pro app update boot-loop, need contacts

So, trying to help out a mate whose phone started to optimise apps and hit "63 of 63" before rebooting. It complains about a missing file/directory, though the friend says nothing was done by him other than turning it on. I charged it overnight and then tried the old "wipe cache" from the recovery menu, but still stuck. I thought maybe I could browse the system using Samsung software or a variant of Linux, but nothing sees it.

j2-loop.jpg


Is it cactus? Was just really after the contacts.

Cheers

kotlin/jetpack search list

I am looking for some advice on an app I have been developing over the last couple months. In an abstract explanation, the app's main screen (MainScreen()) shows items that the user has added. There is an add button which loads an add screen (AddScreen()) which by default shows all possible items that can be added. I have a search text field with a filter list underneath and have implemented some logic that has them work together to only show items that match both the search and filter criteria.

Currently, I am using just a regular mutable list to hold items that should be displayed. If there's nothing in the search text field and no filters are selected than we just assign the entire list (defined in a view model) to the regular mutable list in AddScreen()

Code:
val resultsList = mutableListOf<whatever>()
...
if (dontFilter && dontSearch)
    resultsList = viewmodel.itemMap.values.toMutableList()
else {
    // do search/filter logic
    resultsList.add(whateverItem)
}
LazyColumn(items = resultsList) {
...
}

the variables that are associated with the search text field (onValueChange) and filters (onClick) are all state variables but should the resultsList be a state variable defined in the view model as well?

I have a random bug that I am trying to find but cannot seem to reproduce when I try. It may have something to do with process death but after I have added an item from AddScreen and then click add to load AddScreen again, the list sometimes does not show all possible items (all of ItemMap.values in above example), even though the search text field and filters have been cleared.

I need to pay more attention to whether this happens after I am using an already running an instance of the app (and process death may have occurred) or if it is a new instance... I am thinking the former though because it always seems to happen when I am quickly trying to show someone else the app (naturally...) as opposed to me restarting an app while testing after a code change.

Any advice?

Black bar at bottom of screen. Help.

Hello. (Samsung Galaxy S7) All of the sudden this black bar appears at the bottom of my screen, ..it's a little bit over 1/8".....it doesn't bother me except can't see bottom of the icons on text messages and a few apps. My phone and battery are fine, and internet is fine except this black bar blocks things on some websites and text messeges. The phone is about 4 years old tops and works good.... Just feel like I did something to cause this black bar and want to find a solution. I have tried deleting apps, and doing alot of obvious things. i have researched it and can't find a solution...Thank you, Barb

  • Question Question
Samsung Messages app - exploit/security risk?

Does anyone else using the Samsung Messages app get these texts? What would be the exploit they are trying to take advantage of?
  • From international numbers
  • No notification of new message, but shows up in your list of conversations with (No subject) and a date
  • When you click into the conversation there is no message, no date
  • Blue dot next to profile pic indicates they use Samsung chat mode (?)

Open ports on Android 13 4.14 is this normal? What are they for, nmap results

I ran an nmap scan on my Samsung A22 running Android 13 4.14, these are the open ports that were returned, I've checked the services and port numbers and not found much information, can someone shed some light as to why they're open and what they're being used for please?


Nmap scan report for 192.168.1.155
Host is up (0.18s latency).
Not shown: 993 closed tcp ports (conn-refused)
PORT STATE SERVICE
1070/tcp filtered gmrupdateserv
2383/tcp filtered ms-olap4
3031/tcp filtered eppc
8042/tcp filtered fs-agent
8087/tcp filtered simplifymedia
9002/tcp filtered dynamid
33899/tcp filtered unknown

Thanks!

One Plus 3T microphone issue

I have a 3T that I want to dedicate to an app that needs the microphone. The microphone is not working in any app. I even tried Gmail, making sure to give permission and Gmail hears nothing. I have looked at a lot of settings and all seems to be correct but maybe I am missing something? Can anyone suggest how to turn on my microphone? Thanks.

  • Question Question
Help Luoran MP3

So I'm in this situation where I got this mp3 player eventually factory reset it after taking data and placing it on an SD card now I don't have Spotify if anyone can help me figure out how to sideload on this MP3 that would help out a lot I tried going into safety mode (dunno what it's called) and it was in Japanese which doesn't help me i also found out its bqaed of android so if you have any ideas please shout them at me. I'm also new here please don't judge to harshly.

Not more goo

I had hardly noticed docs, sheets, and slides on the Moto G Plus. When I investigated, I found out that not only are they part of the horrifying googooplex but they actually contain mb of data. I certainly did not put anything there as far as I know. What could this dark matter be?

  • Question Question
Need help!

I am trying to root my INFINIX ZERO 5G 2023 | Model No. X6815D and i am facing an issue.
basically my phone launched with android 12/XOS 12 but when i purchased my phone it was on android 13/XOS 13 which means it got an update but now i want to root my phone and i require the firmware of my phone and i found it on the web but the firmware doesn't mention which android ver it is and there is no other web site which mentions it.
can anyone help??

Android Studio | No Play store in my virtual phone

Hi
Not sure if this is the correct section but does anyone know much about Android Studio?
I googled on ways how to emulate android phone so I can test intune mobile device management stuff

I followed this guide and it was pretty easy to set up:

Setting up an Android Emulator for testing Intune features - Azure Cloud & AI Domain Blog

Overview As more customers leverage either standalone Microsoft Intune or Microsoft Endpoint Manager for cloud management of their devices they also seek an efficient means to upskill administrators on Intune features and capabilities without the need to purchase devices upfront for testing...
azurecloudai.blog
azurecloudai.blog

I made a Google Pixel 7 with Android 11 and picked an image with google play like the guide says

But when I launch the virtual phone it doesnt have the google play app installed ( even thought I made sure I picked it)
is there anything else I may have missed?

Also is it possible to take "snapshots" or save the current state of the virtual phone and revert back to it just like a virtual machine snapshot?

If anyone knows much about setting this up in Android studio I would appreciate any help

How to save image to real sdcard?

Welcome

I have this function to save image external storege. But only save to internal. How to fix this?


fun saveBitmapToExternal(context: Context,
bitmap: Bitmap,
fileName: String,
extension: String = "image/jpeg",
compressFormat: Bitmap.CompressFormat = Bitmap.CompressFormat.JPEG,
qualityCompress: Int = 100) {

val date = System.currentTimeMillis()
var bitmapSave: Boolean

if ( Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q ) {
val collection = MediaStore.Images.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY)
val dirDest = Environment.DIRECTORY_DCIM + "/jphoto"
val directory = File(dirDest)
if ( !directory.exists() ) {
directory.mkdirs()
}

val newImage = ContentValues().apply {
put(MediaStore.Images.Media.DISPLAY_NAME, fileName)
put(MediaStore.MediaColumns.MIME_TYPE, extension)
put(MediaStore.MediaColumns.DATE_ADDED, date)
put(MediaStore.MediaColumns.DATE_MODIFIED, date)
put(MediaStore.MediaColumns.SIZE, bitmap.byteCount)
put(MediaStore.MediaColumns.WIDTH, bitmap.width)
put(MediaStore.MediaColumns.HEIGHT, bitmap.height)
put(MediaStore.MediaColumns.RELATIVE_PATH, dirDest)
put(MediaStore.Images.Media.IS_PENDING, 1)
}

val newImageUri = context.contentResolver.insert(collection, newImage)

context.contentResolver.openOutputStream(newImageUri!!, "w").use {
bitmapSave = bitmap.compress(compressFormat, qualityCompress, it!!)
}

if ( bitmapSave ) {
showSnackBar(resources.getString(R.string.photo_done), fontTextSize, Snackbar.LENGTH_SHORT, numberRow = 2)

newImage.clear()

newImage.put(MediaStore.Images.Media.IS_PENDING, 0)

context.contentResolver.update(newImageUri, newImage, null, null)
} else {
context.contentResolver.delete(newImageUri, null, null)

showSnackBar(resources.getString(R.string.photo_add_error), fontTextSize, Snackbar.LENGTH_SHORT, numberRow = 2)
}
} else {
val directory = File(Environment.getExternalStorageDirectory().toString() + "/DCIM/jphoto")
if ( !directory.exists() ) {
directory.mkdirs()
}

val file = File(directory, fileName)
val save = saveImageToStream03(bitmap, FileOutputStream(file), compressFormat, qualityCompress)

if ( save ) {
val values = ContentValues().apply {
put(MediaStore.Images.Media.DISPLAY_NAME, fileName)
put(MediaStore.MediaColumns.MIME_TYPE, extension)
put(MediaStore.MediaColumns.DATE_ADDED, date)
put(MediaStore.MediaColumns.DATE_MODIFIED, date)
put(MediaStore.MediaColumns.SIZE, bitmap.byteCount)
put(MediaStore.MediaColumns.WIDTH, bitmap.width)
put(MediaStore.MediaColumns.HEIGHT, bitmap.height)
put(MediaStore.Images.Media.DATA, file.absolutePath)
}
// .DATA is deprecated in API 29

context.contentResolver.insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values)

showSnackBar(resources.getString(R.string.photo_done), fontTextSize, Snackbar.LENGTH_SHORT, numberRow = 2)
} else {
if ( file.exists() ) {
file.delete()
}


showSnackBar(resources.getString(R.string.photo_add_error), fontTextSize, Snackbar.LENGTH_SHORT, numberRow = 2)
}
}
}

private fun saveImageToStream03(
bitmap: Bitmap,
outputStream: OutputStream?,
compressFormat: Bitmap.CompressFormat = Bitmap.CompressFormat.JPEG,
qualityCompress: Int = 100
) : Boolean {
var bitmapSave = false

if ( outputStream != null ) {
try {
bitmapSave = bitmap.compress(compressFormat, qualityCompress, outputStream)

outputStream.close()
} catch ( _ : Exception ) {
}
}

//outputStream.
return bitmapSave
}

Braille talkback

Hi,I am new to android development ,iIwant to integrate braille display which is an inbuilt feature in android phones and also in braille display there is a specific scan activity which scan only the braille devices like orbit reader ,the main question is what is the packet that the braille devices(orbit reader) uses to advertise itself so that it is shown in the scan results.I want the information about the advertisement packets that the braille device utilizes especially for orbit reader 20 which is also a braille device that reads the screen and displays the information in braille language.

3 button navigation bar, hide this until I need it

Edit:
How can I hide the standard 3 button navigation for Android on a Motorola?

Google responses only point to using swipe gestures navigation. I want to use the 3 button. Navigation system I've been using for years.

This morning, I could swipe down and the buttons would appear. Then I updated and they won't go away. When I type gets in the way and it closes aps if my palm barely grazes it.

Filter

Back
Top Bottom