Android Question Using intent, broadcast receiver and SDK version

ViMeAv ICT

Member
Licensed User
Longtime User
I'm getting something very strange, when using attached standard service, to receive an intent.
This works well when using
manifest sdkversion:
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="25"/>

But when I use
android 11:
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="30"/>
nothing is received.

Any ideas?
 

Attachments

  • Barcode.bas
    769 bytes · Views: 28
  • libraries.png
    libraries.png
    9.5 KB · Views: 29

drgottjr

Expert
Licensed User
Longtime User
we don't know what else your app does (beyond using a 3rd party api to
scan barcodes). we don't know how your scanner connects with your device.
you don't show your manifest. we also don't know why you picked sdk30 for
the upgrade? was there a reason for the particular jump? why even change if
sdk25 works? why stop at 30?

did you take a look at datawedge's documentation? i don't use datawedge or
zebra scanners, but i do think it appropriate to see what a software producer
might have to say about big switches. i looked; the documentation refers to all
sorts of issues of interest (at least to me) that might come into play when jumping
from sdk 25 to 30 with no stops in between. especially since datawedge itself
talks about its own many changes in the documentation.

runtime permissions came into play at sdk26. in most cases, "nothing" happens
if you ignore them. by that i mean "nothing" happens. but we don't know what is
supposed to happen, so we don't know if you ignored a runtime permission.

when you say, "nothing is received", are you talking about the intent? or the
scan results? or both? or something else? at some point the app presumably
starts, so that's something. at exactly what point does nothing start to happen.
do you know what that point is? are you logging each step in the process until
the messages stop coming?
 
Upvote 0

ViMeAv ICT

Member
Licensed User
Longtime User
I attached the complete project, please see scanner.zip.
this example is not using any 3rd party api's.

this is an test on the zebra tc21, works like the tc20, same problem.

also same problem on all other kind of scanners, using intent.
they all works with sdk25, none above.

problem: the customer gets at the installation the message the program is old.
they do not like this message.

nothing received, means no log in the Service_Start routine, when debugging.

maybe the intent needs a permission from sdk26, but i can't find this specific permission in the datawedge documentation.
 

Attachments

  • scanner.zip
    101.6 KB · Views: 26
Upvote 0

drgottjr

Expert
Licensed User
Longtime User

Attachments

  • permissions.png
    permissions.png
    37.2 KB · Views: 21
Last edited:
Upvote 0
Top