android-manifest

i didn't get my Latitude and Longitude in my MapView?

佐手、 提交于 2019-12-25 02:43:33
问题 Here I wrote code for getting lat and long values in my mapview activity, but its getting forced closed is there any modification or other methods to get these? public class GpsoverlayActivity extends Activity { /** Called when the activity is first created. */ MapView map; MapController mc; GeoPoint gp; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); map=(MapView)findViewById(R.id.mapView); mc=map.getController();

How can I check for GPS support in-App to add a feature for those with Location services enabled?

感情迁移 提交于 2019-12-25 00:37:37
问题 How can I check for GPS support in-App to add a feature for those with Location services enabled? My concern is, I know I'd have to specify the tag in the manifest to declare that the app uses location services, but I still want the app to function for those without. I just want to check and, if the service is available, use it; otherwise just ignore that one feature. Thanks. 回答1: You can check if any Location services are enabled by looking to see if any location providers are enabled. I'm

Why LayoutInflater does not work in my case?

可紊 提交于 2019-12-25 00:27:18
问题 My main.xml layout simply contains a button and a LinearLayout content_area , which shows below: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <LinearLayout android:id="@+id/myBtns" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="horizontal" > <Button android:id="@+id/btn_one" android:layout_width="100dip" android:layout

Is there any function at manifest or somewhere when I install my app, the app it will appeare at device like browser app?

爷,独闯天下 提交于 2019-12-25 00:10:15
问题 I am making my apk like browser but the problem it is when I install at emulator or at device the app it is not at the DefaultApps -> BrowserApp it is only at the apps. Or if anyone has an idea how to do that please let me know. I want it to show at the BrowserApps . This is my manifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="searchwith.smartbrowser"> <uses

Retrieving and playing a video file stored locally on an android VR headset (Oculus Quest)

╄→гoц情女王★ 提交于 2019-12-24 20:52:17
问题 I am in the midst of making some prototypes that require me to play large video files from a unity application (10gb+). These are 360 videos that will be played in a hospital environment and therefore I am hard pressed to simply upload these videos to a server as I am doing now and streaming them. The Hospital does not allow downloads like these and the connection is not good enough to stream it effectively. My solution to this is to add the videos to the headset manually and then simply play

manifest merging error, throws exception

别说谁变了你拦得住时间么 提交于 2019-12-24 20:00:26
问题 I'm trying to convert my app to Instant app . I create the base module but my manifest giving some error. I tried a lot. Is this is a plugin error or any third party library issue which I am using? I am attaching here my Manifest file of base module and app module . Please help me to resolve this issue. ManifestFileOFBaseModule: `<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package=

asking about android:installLocation on manifest

戏子无情 提交于 2019-12-24 19:26:02
问题 so i learned the syntax for the installLocation for the android manifest , in the i typed the android:installLocation as an attribute and it has an error, but when i remove the android: part and just leave the installLocation everything works out, my minsdk is 7 targeted is 8, i use emulator 2.1 update 1. i just want to make sure that there is nothing wrong with this, if this is just normal? cause all the syntax sample includes the android: part of the code? i have screenshots, but new

Intent definition in Manifest file

♀尐吖头ヾ 提交于 2019-12-24 17:48:51
问题 I would like to start my own SMS editor when user selects "Send message" from contacts application. How do I define intent in manifest file to allow passing contact details to the editor? Thanks a lot 回答1: There are many "contacts applications" for Android, not just one. You declined to indicate which "contacts application" you are referring to. Some "contacts applications" may use ACTION_SENDTO with an smsto: Uri for sending an SMS. In that case, you can add an <intent-filter> to your

VideoView-To Play swf file

Deadly 提交于 2019-12-24 17:28:16
问题 I made an application in which I want to play an SWF file in a raw folder. When I run the app, it shows Sorry, the video cant be played. I don't know how to rectify it. I've installed the Adobe Flashplayer11.apk and SWF player on the device. However when I run my apk, it couldn't open. Is the VideoView capable of playing SWF videos? Here's my code: package com.video.in; import android.app.Activity; import android.net.Uri; import android.os.Bundle; import android.widget.MediaController; import

Two Packages in Same APK possible?

狂风中的少年 提交于 2019-12-24 16:53:31
问题 I am trying to implement this great technique of sharing preferences across two different applications while still MODE_PRIVATE. My problem is that the first application cannot assume that the first application is installed (and vice versa) and so: Context c = createPackageContext("com.app.first", MODE_PRIVATE); Must be replaced by: Context c = createPackageContext("com.app.shared", MODE_PRIVATE); But that mandates adding that com.app.shared for real, which translates into a second APK? In