launch

How to resume (or launch) my app after a phone call ends in iOS (my app did *not* initiate the phone call)?

偶尔善良 提交于 2019-12-25 07:22:03
问题 I have seen several ways to "make sure that my app is shown again after a phone call which my app has initiated has ended" however that isn't what I want -> what I am looking for is a way to, say my app is currently running in the background doing network communications and someone calls me , I would like my app to either be able to "detect when the phone call has ended and resume my network communications" and/or "launch/resume my app back into the foreground when the phone call has ended".

IOS App Crash at launch

天涯浪子 提交于 2019-12-25 03:06:10
问题 I'm new in IOS development and i tried to modify an old app. Everything worked on my old mac (XCode 4.6) but when i transfer it to my new macbook pro with the last version of Xcode, i got this error on launch : 2015-01-15 12:06:00.998 GeneveImmo[5330:161539] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIApplication 0x7974cfd0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key view.' *** First throw call stack: ( 0

Cannot always launch DevicePolicyManager activity from another activity

风格不统一 提交于 2019-12-24 09:59:36
问题 I have some strange problem. When I try to launch DevicePolicyManager activity from my main activity, it loads properly. However, when I make a notification, call QuestionActivity (if user clicks the notification), and then try to call DevicePolicyManager activity from QuestionActivity, I get (logcat): INFO/ActivityManager(104): Starting activity: Intent { act=android.app.action.ADD_DEVICE_ADMIN cmp=com.android.settings/.DeviceAdminAdd (has extras) } WARN/InputManagerService(104): Window

Hiding the navigation bar immediately on app launch

你。 提交于 2019-12-24 00:40:07
问题 Based on the following code snippets, I was able to hide the status bar right when the app launches , but not the navigation bar (the bar consisting of the back, home, and task manager buttons) since it hides later after MainActivity's thread finishes loading up : Here's the manifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="dpark.sample2"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher"

launch an application from HTML with arguments

放肆的年华 提交于 2019-12-24 00:34:55
问题 Is there a way to allow an HTML file to open an application on the local computer and send that application arguments? We have an application that allows a user to set a link to an external application. We also provide a summary page in HTML (they usually interact with the application from outside the browser) with the link in HTML as well. We can get applications to launch if the program exists, but cant seem to send arguments through the HTML link. Is this even possible? Is it possible

iPad launch orientation

随声附和 提交于 2019-12-23 23:16:14
问题 After reading many posts, I still haven't got a clue how to solve this problem... The first view of my app is a tableViewController. I override (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation and it always returns YES. If I hold my iPad upright under landscape orientation, it rotates right after I launch the app. However, if I put my iPad flat on the table, even though my homepage is in landscape orientation, it launches in protrait orientation. So

Android open phone call application

懵懂的女人 提交于 2019-12-21 19:51:05
问题 I just want to open phone call application of android device. I dont want to provide that application a phone number. Just want to open it. I am using phone application's package name to open it. Because I am able to open any application I want through that package name with the code below. Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.android.contacts"); startActivity(launchIntent); I am not able to open Phone and Contacts application with the above code. What can

android - launch an activity of another app to get it's result

旧巷老猫 提交于 2019-12-21 16:25:11
问题 I have two applications, A and B. From A, I'm launching B for a result, using the following code: Intent fmIntent = getPackageManager().getLaunchIntentForPackage("com.example.B"); fmIntent.putExtra("hello", "world"); startActivityForResult(fmIntent, REQUEST_TEST); From B, I'm doing the following: getIntent().putExtra("completed", true); setResult(RESULT_OK, getIntent()); finish(); If I do the above for an activity within the same app, it works as expected. However, since its two different

UISplitViewController not showing popup button when launching portrait

心已入冬 提交于 2019-12-21 06:59:28
问题 I am doing an iPad app based on a UISplitViewController. I have a little problem with the toobar button when my app launched in potrait. The button to show the popover is not displayed. However when I rotate my iPad into landscape and then back to portrait, the button shows ! It looks like the following method is not called on launch (this is were I have the code showing the button): - (void)splitViewController:(UISplitViewController *)svc willHideViewController:(UIViewController *