activity

Intelligent MySQL GROUP BY for Activity Streams

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm building an activity stream for our site, and have made some decent headway with something that works pretty well. It's powered by two tables: stream : id - Unique Stream Item ID user_id - ID of the user who created the stream item object_type - Type of object (currently 'seller' or 'product') object_id - Internal ID of the object (currently either the seller ID or the product ID) action_name - The action taken against the object (currently either 'buy' or 'heart') stream_date - Timestamp that the action was created. hidden - Boolean of

Problem in opening Sub Activity of ActivityGroup

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am working with ActivityGroup and I want to open an sub activity of the ActivityGroup on selection of another tab. Please anyone let me know if it is possible or not? example - I have tab1 and I open a subActivity(say activity "A") in the same tab using ActivityGroup and now when I click on tab2 I should open the same Activity "A" with all its contents. Thanks in Advance. 回答1: I really, strongly urge you to stop using ActivityGroup. This has been deprecated. The fragment support library provides a much better way to do these

Disable Xamarin Form and Show Activity Indicator

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have a Xamarin Form which is using Scroll View. I am trying to show a Activity Indicator at the top as I have a ListView in the middle. But when the user scrolls down the loading is not shown. So, I need help in disabling the page and showing loading at some z-index as in a popup. 回答1: If you want to have an overlay while the screen is loading you can do this. <Grid> <ScrollView> <!-- Insert your page content in here --> </ScrollView> <ContentView IsVisible = "false" HorizontalOptions = "FillAndExpand" VerticalOptions =

IllegalStateException: No activity FragmentManager.java

匿名 (未验证) 提交于 2019-12-03 01:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I was using Eclipse to compile the app, I used to get this error but not a lot. But since I've switch to android studio, I'm getting this crash a lot. Its crashing pretty much every device. I've tried doing everything but can't seem to fix this issue. I've tried using both getfragmentManager() and getSupportFragmentManager(), getting this crash in both. Not sure what to do now? Below is the code I'm using to switch fragments. private void showFragment(Fragment fragment){ fragmentManager = getFragmentManager(); fragmentTransaction =

Launch activity when user taps on a notification from the lockscreen

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I want to be able to tap on a notification when the device is locked and launch an activity without unlocking the device. I added some flags to the activity in the onCreate() method that allow the activity to be displayed when the device is locked: Window window = this . getWindow (); window . addFlags ( WindowManager . LayoutParams . FLAG_DISMISS_KEYGUARD ); window . addFlags ( WindowManager . LayoutParams . FLAG_SHOW_WHEN_LOCKED ); window . addFlags ( WindowManager . LayoutParams . FLAG_TURN_SCREEN_ON ); window . addFlags (

Launch an activity of an application from a different application on Android

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to launch an activity (not the main activity) of an application from an application I have made. The activity I want to launch is proprietary, hence, I cannot make any changes to its code(or manifest). For example: I want to launch somebody's Facebook profile from my own application. A normal intent to facebook from my app would open the 'newsfeed'(which I don't want). I want to know how to access any other activity. Thanks in advance! The little code I have: String PACKAGE="com.facebook.katana"; Intent launchIntent =

Android memory leak glide

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have an activity which loads pictures in ImageViews with glide. Here is a sample of my glide code : Glide.with(ImageVOne.getContext()) .load(geoInfo.getPhotoUrl1()) .skipMemoryCache(true) .priority(Priority.NORMAL) .into(ImageVOne); I load from 1 to 35 pictures, each picture should be between 150ko & 250ko. I cannot reduce that. This activity can be accessed several times in a session from the main activity, and each time it loads different pictures. For example the first time it will be pictures of Washington, then pictures of London etc

The AsyncTask fails when I rotate the device to landscape

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have an Activity in which I have a ProgressBar ,an ImageView and a TextView ,I update all three from an AsyncTask .All three get updated when the screen is completely in one orientation when the task is running,but the ImageView and TextView are not displayed and the ProgressBar freezes when the screen orientation changes from one orientation to another. Adding the attach and detach methods to the task and using retainNonConfigurationInstance to return the task when the Activity and using getLastNonConfigurationInstance is destroyed has

Android Lint complaining about activity not registered in AndroidManifest, but it is

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I run Android Lint on my project I get the following warning: The org.slaytanic.SIMLockedRingNotifier.SIMLockedRingNotifierActivity is not registered in the manifest Issue: Ensures that Activities, Services and Content Providers are registered in the manifest Id: Registered Activities, services and content providers should be registered in the AndroidManifext.xml file using , and tags. If your activity is simply a parent class intended to be subclassed by other "real" activities, make it an abstract class. http://developer.android.com

Unable to destroy activity: java.lang.IllegalArgumentException: No view found for id () for fragment

匿名 (未验证) 提交于 2019-12-03 00:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have an activity YYYY (which inflates a fragment) that extends a base activity XXXX which in turn extends ActionBarActivity . I now call finish() in onCreate() method of XXXX (at the very top), based on some condition. But I get the exception below. Kindly help me out. PS: I call return; after the finish(); so that the rest of the onCreate() is not executed. 07-26 16:46:26.902 14569-14569/E/AndroidRuntime: FATAL EXCEPTION: main java.lang.RuntimeException: Unable to destroy activity {XXXXXXXXXXXXXX}: java.lang.IllegalArgumentException: No