activity

Android: forward search queries to one single activity that handles search

I have an activity handling search (ACTIVITY_1), which works perfectly when I use the search (via SEARCH button on the phone) within/from this activity. However, when I use search from another activity (ACTIVITY_2..x) by implementing onNewIntent and forward the query string to my Search_Activity.class (ACTIVITY_1) @Override protected v...

Android activity inside dialog

I want to start activity inside popup screen suggest any quick change ?? new AlertDialog.Builder(SearchResults.this) .setTitle("Refine") .setItems(/*catNames*/, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { /* User clicked so do some stuff */ Str...

How do you store business activities in a SQL database?

The goal is to store activities such as inserting, updating, and deleting business records. One solution I'm considering is to use one table per record to be tracked. Here is a simplified example: CREATE TABLE ActivityTypes ( TypeId int IDENTITY(1,1) NOT NULL, TypeName nvarchar(50) NOT ...

How to monitor user (in-)activity in Windows?

What's the simplest way of programatically checking whether or not a particular Windows machine is currently being used by a human being? I'm thinking about writing a "politeness monitor" for our rather limited Internet connection - basically a way to see who is currently actively using the Internet at any one time, so when someone need...

Dynamics CRM 4.0 Campaign Response Workflow issue

Hi I am pretty novice when it comes to CRM so hopefully someone can help me. I am trying to create a workflow that triggers when the campaign response is set to closed and then updates a few fields within the related 'Customers' record. I would have imagined that this would have been straight forward. However, when creating my workflo...

ASP.Net User activity tracking in database

This is about a simple yet efficient activity logging framework that I want to integrate with my existing ASP.Net based web-app (I've a LINQ-to-SQL based SQL DB as backend). I'm using something like a service-architecture to perform DB operations - that is invoke relevant LINQ operations. I've a service class for almost every entity (i.e...

Launch activity at certain time

Hi, I'm new to Android development, so I might be missing something obvious. I want to launch an activity when the user's phone clock hits a specified time (similar to an alarm). However, I'm not sure how I would go about doing this as constant polling of the clock seems inefficient and a waste of resources. Do I need to capture broadc...

Andoid startactivity and stacks keep in memory

we start activity and do not calling finish() on existing activity it keeps existing activity in stack and move to new activity if we press back button we return to previous activity. Its mean all previous activities not beeing called finish() keep remain into the memory(Stack) Now problem is i do not want to call finish for every acti...

android finish() method doesnt clear app from memory

Hi I have an activity and I call the finish() method and the activity is not cleared from memory. After calling finish() , I see that the method onDestroy() is executed successfully (and I clear all my variables and stuff in there). Should it be cleared from memory or its how android works? As I understand the LifeCycle of the Activit...

Android Activity as a dialog

I have Activity named whereActity which is having child dialogs as well. now i want to display this activity is as a dialog for another activity.. how can i do that ?? ...

Android content saving

Hi again friends... i have a wierd problem... As i have asked in previous posts... i have a lot of data coming from NET in my app... The problem is that a lot of text and images r there... so though i can make the user wait wen he clicks on a list item, but i dont want to make him wait wen he clicks the back button... In the sense that...

android tabs - starting a new activity

guys im in deep trouble again... i have 4 Tabs in a TabHost... let them be A,B,C,D.... now each one is just an index page and clicking on any of them shows a different activity... The problem is that i need to start another activity wen user selects something from the content displayed in the tab... The other activity should also be di...

Use URL to show new activity?

Inside my app, I was wondering if it was possible to make a certain URL in a WebView, when clicked, to redirect to a new activity view outside of the WebView? Thanks! ...

Using Intent from non-activity class

I have three classes one main-activity(named MainMap), one non-activity class(named MyItemizedOverlay), and one activity class(named AudioStream). I want to start AudioStream activity from non-activity class but i don't know how to. i tried this is in third class(called MyItemizedOverlay): Intent myIntentA = new I...

Android: How to have a shared menu in each (List) Activity without re-writing the overridden methods?

I know that Android provides some useful methods to be overridden in order to define a menu: @Override public boolean onCreateOptionsMenu(Menu menu) { menu.add(0, AIS, 0, "Activity Inventory Sheet").setIcon(android.R.drawable.ic_menu_upload); // ... return true; } public boolean onOptionsItemSelected(MenuItem...

How to open new view (call an activity) from options menu defined in XML? (android)

I cant seem to open a new view from an options menu item. The program keeps crashing as it applies the intent and listener to the item. I am just beginning, so please be nice. The current view is mnfsms, and the view I am trying to open is mnfsms_settings. I am developing for 1.5. Could someone please help me get the menu working. The...

Windows Workflow Foundation 4.0 Break Out of ForEach<T> Activity

I'm using Visual Studio 2010 Beta 2 to get a head start on learning to use WF4. I'm working in the designer to create a xaml file. I've added a ForEach activity, and inside that ForEach activity have a flowchart that does some conditional processing. I want to be able to break out of the ForEach if one of the conditions is true, but c...

Content Provider is part of my application?

Hello, I need to create 3 things: Content Provider Service Application I'm wondering if these all three will be in one single project, or they will be three different projects? Also how can I limit my Content Provider to my services and my applications? Regards, Pentium10 ...

Android - Activity vs. ListActivity - Which one should my activity class extend?

Hello everyone, I've been learning to develop in Android and had more of a general question: If I have a layout that uses a list and some other views, should I be using Activity or ListActivity for my activity class? I know that ListActivity will probably make things easier to override list-specific events, but is there any other advan...

What is the best practices on Android to keep data between activities deathes/restarts for the whole application session?

We're designing an Android app that has several activities which are working in a wizard like way - user should pass from the activity #1 to activity #5 to get to the final activity (#6). Since we know an activity can be suddenly terminated by OS on low memory we used Application class as a static storage for keeping the data the user i...