Hi.
I try this:
http://docwiki.embarcadero.com/RADStudi ... id_Support
But FDeviceToken is empty.
Has anyone tried this example?
Thanks.
RAD10.4.1 Phone Readmi 5A Android 8.1
Search found 715 matches
- Fri Dec 18, 2020 10:18 am
- Forum: Technical
- Topic: Firebase Android Support
- Replies: 0
- Views: 396
- Mon Dec 14, 2020 2:49 pm
- Forum: News
- Topic: RAD Studio 10.4.2 Beta and a Teaser Image
- Replies: 0
- Views: 587
- Sat Dec 05, 2020 4:01 am
- Forum: Technical
- Topic: Build BASS library
- Replies: 1
- Views: 487
Re: Build BASS library
I found what the problem is. But I don't know how to fix it. Set true Generate Android App Bundle file (arm + arm64) . In Development mode Build fine. Switch to mode Application Store I get the error. Set false Generate Android App Bundle file (arm + arm64) and now no error in mode Application Store...
- Fri Dec 04, 2020 4:06 am
- Forum: Technical
- Topic: Build BASS library
- Replies: 1
- Views: 487
Build BASS library
Hi. Delphi 10.3 / Delphi 10.4.1 When I use the Developmen t mode everything works perfectly. When I switch to Application Store mode I get the error when Build: [DCC Error] E2597 C:\Users\Public\Documents\Embarcadero\Studio\20.0\PlatformSDKs\android-ndk-r17b\toolchains\arm-linux-androideabi-4.9\preb...
- Wed Dec 02, 2020 10:26 am
- Forum: Technical
- Topic: Android 7 the application crashes
- Replies: 2
- Views: 1264
Re: Android 7 the application crashes
Crashes HOW exactly? Please be more specific. Debager does not work. I think I have found a solution. It looks like it works: function TDM.AndroidServiceStartCommand(const Sender: TObject; const Intent: JIntent; Flags, StartId: Integer): Integer; var //Android 8.1 ServiceChannel: JNotificationChann...
- Fri Nov 27, 2020 8:54 am
- Forum: Technical
- Topic: Android 7 the application crashes
- Replies: 2
- Views: 1264
Android 7 the application crashes
Hello. There is a foreground service code that works great on Android 8.1. In Android 7 the application crashes after a splash screen (I sent my apk). I don't have an Android 7 phone. What's missing for Android 7? RAD 10.3 Thanks. interface uses System.SysUtils, System.Classes, System.Android.Servic...
- Wed Nov 25, 2020 4:55 am
- Forum: Technical
- Topic: [Android]BASS
- Replies: 31
- Views: 12022
Re: [Android]BASS
I understand that in Androidapi.JNI.App the method needs to be rewritten as follows:
What are the next steps for the service code to see this update? Thanks.
Or is it not the right way.
Code: Select all
procedure startForeground(id: Integer; notification: JNotification; foregroundServiceType: Integer); cdecl;
Or is it not the right way.
- Wed Nov 25, 2020 4:40 am
- Forum: Technical
- Topic: Image Update
- Replies: 8
- Views: 2262
Re: Image Update
Code: Select all
Image1->Picture->Bitmap->FreeImage();
Image1->Picture->Bitmap = NULL;
- Tue Nov 24, 2020 6:55 am
- Forum: Technical
- Topic: [Android]BASS
- Replies: 31
- Views: 12022
Re: [Android]BASS
I found for API 29 need more parametrs FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK public final void startForeground (int id, Notification notification, int foregroundServiceType) JavaService.startForeground(StartId, ntf, 2);//too many actual parameters But no version with three parametrs. :( serv.jpg
- Thu Nov 12, 2020 9:40 am
- Forum: Technical
- Topic: [Android]BASS
- Replies: 31
- Views: 12022
Re: [Android]BASS
It is necessary to re-set the foreground service permission in the project options.
I can see in the running applications that the service is running. However, there is no service icon in the tray. In 10.3.3, the service icon was in the tray.
I can see in the running applications that the service is running. However, there is no service icon in the tray. In 10.3.3, the service icon was in the tray.

- Thu Nov 12, 2020 9:34 am
- Forum: Technical
- Topic: Implicit string cast from 'AnsiChar' to 'string'
- Replies: 3
- Views: 1924
Re: Implicit string cast from 'AnsiChar' to 'string'
Sorry I fix. Change to ReadStringAsUtf8.
- Thu Nov 12, 2020 7:26 am
- Forum: Technical
- Topic: Implicit string cast from 'AnsiChar' to 'string'
- Replies: 3
- Views: 1924
Re: Implicit string cast from 'AnsiChar' to 'string'
Hi, rlebeau. Where is my mistake now? All Russian characters are unreadable. RAD10.4.1 procedure DoMeta(); var meta: MarshaledAString; metaPtr: TPtrWrapper; metaStr, songName: String; startPos, endPos: Integer; begin meta := BASS_ChannelGetTags(str, BASS_TAG_META); if (meta <> nil) then begin metaPt...
- Thu Nov 12, 2020 4:38 am
- Forum: Technical
- Topic: [Android]BASS
- Replies: 31
- Views: 12022
Re: [Android]BASS
I am trying to use now 10.4.1 Debugger still doesn't work. The application starts normally but the service does not start. :( In manifest: <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="29" /> <service android:exported="false" android:name="com.embarcadero.services.serPublic" /> Some...
- Wed Nov 11, 2020 1:58 am
- Forum: Technical
- Topic: [Android]BASS
- Replies: 31
- Views: 12022
Re: [Android]BASS
Hi. Not all phones start the service. Everything is fine on my Android 8.1. I took a phone with Android 7. The service does not start. There is no service icon in the tray. Maybe need to add something to the service code? If someone has a phone with Android 9, please check or the service starts ther...
- Wed Nov 11, 2020 1:02 am
- Forum: Technical
- Topic: Update Progressbar
- Replies: 14
- Views: 4770
Re: Update Progressbar
Thanks a lot for the detailed explanation! I removed from the code BASS_SampleFree. My code contains three buttons PLAY, STOP, CLOSE //STOP play procedure TForm1.Button2Click(Sender: TObject); begin BASS_ChannelStop(str); //BASS_StreamFree(str); //BASS_SampleFree (smp); Text1.Text := ''; //title son...