Start external app/Activity and add my own header?
I am using Sygic Navigation on my HTC Hero. I can start it by calling the correct intent as I described here. Now, Sygic starts in fullscreen-mode and I cannot use the BACK-button to go back to my previous Activity (don't ask me why).
The question is: is there some trick or way so I can control how that Sygic Activity is started? I want to add my own "header" on top; the header contains my buttons for navigation. It would be great if I could add that header, then have Sygic below that (as the "content" then, as shown here).
Asked by: Ada760 | Posted: 20-01-2022
Answer 1
Now, Sygic starts in fullscreen-mode and I cannot use the BACK-button to go back to my previous Activity (don't ask me why).
Aw, c'mon! Please can I ask why? Pretty please? :-)
The question is: is there some trick or way so I can control how that Sygic Activity is started? I want to add my own "header" on top; the header contains my buttons for navigation. It would be great if I could add that header, then have Sygic below that (as the "content" then, as shown here).
No, sorry.
Answered by: David157 | Posted: 21-02-2022Similar questions
android embed default audio player in app/activity
I would like to know if it is possible to embed the default audio player into one of my activities. Or at least be able to embed the section that has the play/pause button and the audio track seek bar.
The reason I would like to embed it rather than open it in a new intent (like this:
Intent audioActivity = new Intent(Intent.ACTION_VIEW);
audioActivity.setDataAndType(Uri.parse(getAudioURL()), "audio...
Exit/Finish an app/activity - android
I've got 4 activities say Act1, Act2, Act3 and Act4.
A button in Act1 opens Act2, a button in Act2 opens Act3, a button in Act3 opens Act4.
I want two things to be done:
I've a button in Act4 which directs the user to Act1, the prob is when the user clicks back in Act1, i want to close the app instead of opening the Act4..
I've opt...
Where I could find the source code for the built in wallpaper app/activity in Android.
If you long press the Android luncher and then you pressed Wallpapers an app/activity is opened and you could select the wallpaper (it have a gallery view at the bottom). Where I could find the source code for this app/activity in the Android source code (can you point me to the file location or the github url for the app/activity specific path).
java - Android hide app/activity name on status bar
I would like to hide status bar app name and leave only icon. (And add button + spinner but i know how to do it) I search in google and on stackoverflow but the only thing that I found is how to hide whole status bar.
I just want to do something like this:
Link to screen
android - What the best way to measure app/activity startup time?
After googled this topic, I know there are several ways to measure the startup time of an android app.
adb logcat -b events | grep am_activity_launch_time, see this post
adb logcat -s ActivityManager:I | grep Displayed
use reportFullyDrawn programmatically
adb shell screenrecord --bugreport /...
testing - How to run Android UI Tests and pass arguments to the App/Activity
I want to run UI tests for Android app with some predefined data which will vary depending on the test case. In iOS, it's possible to pass arguments to the tested app like this:
app = XCUIApplication()
app.reset()
app.launchArguments += ["--myArgument"]
app.launch()
These arguments are later available inside the app process.
Is there something similar for Android UI testing? Best w...
java - Is there a way to explicitly say to android system resolve my intent to default app/activity for current intent action?
I need to open web link from my android application, but without prompt to user chooser dialog also known as "disambiguation dialog", just use default browser to handle this intent.
When I use this code:
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
there is no guarantee that resolving intent will be result in only one activity, according t...
java - How can I use MVVM with the UI components of the App/activity and AsyncTask
As I know that the ViewModel should be secluded from the UI/View and contains only the logic that observes the data that's coming from the server or database
In my App, I used REST API "retrofit" and blogger API and I tried to migrate/upgrade the current code to MVVM but there are a few problems, let's go to the code
BloggerAPI Class
public class BloggerAPI {
...
Android app/activity disposes when switching to another app
I've been asked to fix an android application which has issues after switching to a newer device. The switch was from android 7/8 to 11. The application opens up google maps for navigation but very often when returned to the app all data is lost, and clicking on anything will reset it back to the startup activity. It doesn't matter which apps it switches between the issue happens with all of them.
I've tried several...
android - Re-open calling App/Activity after called Activity is re-launched
Let's say an App A calls Activity B1 in App B with startActivityForResult.
Activity B1 starts a foreground service B2 to run a long-running task. Let's say Activity B1 was killed since the user navigated away while waiting for B2 to complete. But when the user clicks the foreground service notification for B2, it relaunches the Activity B2. When B2 is complete, I want to set the ResultCode and return to App A....
Still can't find your answer? Check out these communities...
Android Google Support | Android Community | Android Community (Facebook) | Dev.io Android