Android :: Getting Current On Screen GUI Objects

Mar 19, 2009

Is there any way for an Android application to retrieve some sort of Collection object that contains references to all of the GUI elements which are currently on the phone's screen? This could be very useful for testing purposes and so on. If I have overlooked a well-known class or library, please let me know.

Android :: Getting current on screen GUI objects


Android :: Blocking Current Activity / Screen Till Current Task Is Complete

May 13, 2010

The default behavior of an activity when BACK softkey is pressed is, GO BACK TO PREVIOUS ACTIVITY. If some the same activity is waiting for some response from server or some data updation is going on and then press BACK, I want to wait on the same screen till the current task is completely processed and then move out to the previous activity.

You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options

View 12 Replies View Related

General :: Determine Current Time Is Between Two Other Time Objects?

Dec 28, 2012

How can I determine if the current time is between two other time objects?

For example: current: 15:23, startTime: 22:00, endTime: 06:00. So the current time is not between this two other times, but this "23:47" is.

*I don't care about the date, only the time

I tried to do it like this:

Code:

Time startTime = getStartTime();
Time endTime = getEndTime();
Calendar c = Calendar.getInstance();
Time now = new Time(c.getTimeInMillis());

[Code]...

but it dosen't work well. their aren't any errors but it just dosen't work.

To be more precise the problem is that 15:35.after(22:00) return true... and I don't know why. I think that the problem is something with the dates but I don't know what

View 1 Replies View Related

Android :: Pass Objects Around Activities Using A HashMap Of WeakReferences To Objects?

Oct 26, 2010

The FAQ mentions a method of passing objects around activities. (It is not clear to me): "A HashMap of WeakReferences to Objects. You can also use a HashMap of WeakReferences to Objects with Long keys. When an activity wants to pass an object to another activity, it simply puts the object in the map and sends the key (which is a unique Long based on a counter or time stamp) to the recipient activity via intent extras. The recipient activity retrieves the object using this key.".................

View 7 Replies View Related

Android :: How To Filter Objects To Display Onscreen Objects On Map?

Jun 15, 2010

I have an application that have a Google map on Google Android 1.5 since we have been working on the application for a long time, we are not in stage of upgrading to the newest framework, so we are using 1.5. Now, I have map locations that are dynamically generated and drawn on the map at run-time to visualize some streams, Up to this point the application is working fine, Now my problem is that I am trying to filter the objects ( addresses) to visualize only the on-screen ones. I do NOT want to visualize the addresses that are off-screen. The way I am trying to do this is to check the screen-coordinates of each object (address) before visualizing it, then it the coordinates (x,y) more than (0,0) and less than (320, 460). I should visualize it. I am trying to use this approach, but it is not working for some reasons, I have tried many posts but could not understand why, there must be something missing somewhere that I am not aware of.

View 11 Replies View Related

Android :: Arranging TextView Objects On Screen

Jul 28, 2010

I'm using textview objects to hold labels such as Score, Level etc on my game screen but they don't seem to be displayed where I want them to be. I understand about view hierarchies (parents, children) and am using the gravity tags in the XML layout file but it doesn't seem to have any effect. Could someone just quickly provide a guide to positioning a textview object on the screen, and also linking it in the code so that its contents can be pro grammatically controlled (I believe this would by done via =(TextView) findViewById(r.id.resourcename))? Code...

View 2 Replies View Related

Android :: How To Compute Screen Size Before Rendering Objects?

Jun 15, 2009

I want to render 3d object on the screen. Before that I would like to compute the screen so that the rendered object can be given relative position. How that can be done?

View 2 Replies View Related

Android :: Removing / Destroying Objects When Screen Is Rotated

Jan 25, 2010

I am finding that performance degrades after one or more screen rotations, and I presume that this is likely to be because an App's main Activity is destroyed and recreated each time the screen is rotated and that my app must be leaking memory when that happens.I have read that, contrary to what one might expect, not all the objects created by an app's main Activity (or in classes called by that Activity) are destroyed when the activity is destroyed. Specifically, I think I have read (although I can't now find where) that if the View uses a large bitmap member object then the Activity's onDestroy() method should be over-ridden and the bitmap should be explicitly recycled.Are there other objects that need to be destroyed or removed when the Activity is destroyed? What about Listeners? Is there a comprehensive tutorial or guide on this subject?

View 1 Replies View Related

Android : How To Go On Previous Screen From Current Screen In Droid App?

May 22, 2010

How do I go to previous screen from current screen in Android app? I know there is a back button on phone, but it takes me to beginning screen of my app and I want my buttons on app to work for going back to previous screen.

View 1 Replies View Related

Motorola Milestone :: Manually Rotate Screen Or Keep / Fix Current Screen Orientation

May 29, 2010

is it possible to manually rotate the screen or fix the current screen orientation (with a key/button)? because it really annoys me having taken portrait pictures that cannot be viewed (with the media gallery application) in a portrait fashion on the milestone. this is because it always rotates the portrait picture back to landscape when rotating the milestone from landscape to portrait. right now there is no way of properly viewing portrait pictures on the milestone other than tilting your head (holding the milestone landscape and tilting your head along).this cannot be the way it was intended to be, right? or do I have to get a different viewing software which allows you to choose screen orientation? is there such an app?

View 1 Replies View Related

Android :: How To Get Current Screen Orientation

Jul 2, 2010

I simply want to do code...

The problem is - getRequestedOrientation always returns -1. Any suggestions?

View 2 Replies View Related

Android :: Refresh Current Screen Without Creating A New One?

Jan 16, 2010

I have an intent open my phone; when something comes from the server from another Java class I want to refresh the current screen. how I can refresh my current screen without creating a new one?

View 1 Replies View Related

Android :: Grab Current Alert Dialog On The Screen?

Jun 9, 2010

as part of automating tests on android app. I am trying to grab current alert dialog on the screen. Does anyone know how can I do that?

View 2 Replies View Related

Android :: Load Only Markers That Would Be Displayed On Current Screen?

Aug 5, 2010

Using Google Maps on Android does anyone have any ideas on how to load only markers that would be displayed on the current screen? I'm thinking about sending a request to a web service that returns the lat/lng for the relevant markers. But what would the parameters be that I could use to calculate if a given lat/lng is within the screen?

View 1 Replies View Related

Android :: Detect Current Screen Vertical Or Horizontal?

Jun 3, 2009

I need to set different content view after rotating device screen. Is there any method to detect the direction of current screen is vertical or horizontal?

View 6 Replies View Related

Android :: How To Know Which Childview Is Shown On Current Screen In A Scrollview

Aug 5, 2010

How can I know which childview is shown on the current device screen, in a scrollview?

I want to make an infinite Ruler App, so I need to dynamically add and remove view when the view is flipping, but how and where can I find out which childview is shown on the current device screen, so I can add or remove the correct view when I get that childview changed notify?

Or, can anyone who can give me some other idea to realize this function?

View 1 Replies View Related

Android :: Identify Views Part Of Current Screen?

Feb 3, 2010

Can anyone give an idea how to identify the views part of the active screen[i.e current running activity on the phone].

E.g after launching uiEditContactActivity,how can I identify the views [ several fields, buttons etc] part of that screen.

I am trying to modify monkey, such that for creating a contact, it should launch Edit Contacts Activity and fill the respective views [name, number etc].

View 2 Replies View Related

Android : Dump Current Screen To A Bitmap In Droid?

Jun 3, 2010

Is there way to dump the current screen to a bitmap in Android?

And what about dump screen of other applications? For example, running a service background, the foreground app could send an intent to start the service, and capture the current screen and save as a bitmap.

View 2 Replies View Related

Android : Keep Current Screen (contentView) When L Iaunch New Activity?

Dec 15, 2009

I have an NoContentViewActivity which has no Content View (i.e. I did not call setContentView() in the onCreate of my Activity).

My question is how can I keep the content view of the launching activity on the screen? Right now, I am getting a blank screen whenever I launch NoContentViewActivity? I want the content view of the launching activity (the activity which start the NoContentViewActivity) to show on the screen.

View 2 Replies View Related

Android :: Launch A Service To Record Current Screen In Droid?

Nov 24, 2010

I need to launch a service running in the background,that should record what's on the current screen for say about 10 sec.. i should able to save it in a file or on any storage device and later i should able to retrieve it also..

View 2 Replies View Related

Android :: Change Order Of Screens / Move Current Screen 7 And Make It 2

Oct 30, 2010

Is there a quick way to change the order of the screens? For example, I'd like to move my current screen 7 and make it screen 2.

View 9 Replies View Related

Android :: Splash Screen - Warning - Activity Not Started Its Current Task Has Been Brought To The Front

Nov 2, 2010

I want to display a splash screen followed by my trial.class.I am not getting any error but warning as:

Warning: Activity not started, its current task has been brought to the front

I have different-2 approches for this each time this warning is being displayed.

CODE:.....................

View 8 Replies View Related

Android :: Android - Taking Screenshot Of Current Screen With Device

Jul 23, 2010

When one wants to publish his App on the Android Market he can upload up to two screenshots of his app. I would like to take these screenshots with my current device (Motorola Droid) that I'm using to test the application.

There are some Apps on the Android Market that allow you to take screenshots, but you have to root your phone, which I dont want to. There are related topics within stackoverflow where people want to take screenshots out of there code (here). However I just want to take screenshots of my running app with the current device, which is connected via USB to my computer; I'm developing via Eclipse, so there should be a way to tell your running device that it should take a screenshot via the sdk, right?

View 4 Replies View Related

HTC Hero :: Send / Receive Mms On Phone - App To Snap A Picture Of My Current Screen?

Mar 13, 2010

I am wondering if you guys have found a way to send or receive mms on your heroes and what version of android yours is running. Mine is running 1.5 and is the round hero, not the newest one. I also cannot find a place anywhere to send mms. Also, how do I snap a picture of my current screen, or do I need an app for that?

View 10 Replies View Related

Creating SwipeView - Allow User To Move Through Screens By Flicking Current Screen?

Aug 22, 2013

I have the beginnings of an app that will eventually comprise of three screens. I want to allow the user to move through the screens by flicking the current screen.

The screens should be positioned horizontally: 1 - 2 - 3

So, a flick from right to left should move from 1 to 2, a flick from left to right should move from 3 to 2 and 2 should be able to move to pages 1 and 3 respectively.I believe this is called SwipeView but cannot find any clear instructions on how to implement this.

View 4 Replies View Related

KitKat 4.4 :: Galaxy Nexus - Change Current Clock On Stock Lock Screen?

Mar 31, 2014

I recently got the M8 upgrading from the Galaxy Nexus. I am a design student, and I HATE, I mean HATE the current clock set up with that damn weather icon and how it all looks uneven. Are there any widgets/apps or anything which I can change this?

On my galaxy: [URL]

On my one: [URL]

Is there anyway I can change my current clock or SOMETHING. I do know that I can add a new widget page and have a new clock, but I can't make this my default lockscreen. Sliding across on the lockscreen seems pointless to me - i want this visible when i double tap my phone.

View 24 Replies View Related

Android :: Weather APP - Delete Current Location Weather Data Screen

Oct 28, 2009

I tap weather icon, get current location no city name and the weather info, I then tap "+" hit my location and it finds my city Corning NY, I add this to the weather app, I close out and hit weather app again and now I have to locations, the one that says current location and the one that says Corning NY, both weather datas are the same. My question is how to I delete or get rid of the current location weather data screen and have only the Corning NY screen when I open the weather app? The data for both is the same but I don't want 2 locations(one named) for the same data.

View 1 Replies View Related

Android :: How To Check If Activity Is Current Activity Running In Screen

Jul 16, 2010

I used Toast to make notification, but it seems it will appear even its activity is not in the current screen and some other activity has been started.I want to check this situation, when the activity is not the current one, I'd not send the Toast notification. But how to do ?

View 1 Replies View Related

Android :: How To Manage Objects ?

Sep 8, 2010

I am new to Android development. I want to know how you all manage objects. For eg we make object as A a = new A(); and then manage that object. But, here, we call A.class; My concern is that i don't want to call on Create(),nor do i want to push UI screen I just want to make 1 static object for 1 screen;and want to manage it throughout my application. that is, instead of calling A.class; can i call A a = new A(),and manage that object without pushing,and whenever i need i push that screen. Is there someway?

View 1 Replies View Related

Android :: Passing An ArrayList Of Objects

Nov 12, 2010

Is there a way to pass an Array List of objects between activities? The myObject implements Parcelable and I'm able to successfully pass the objects around individually, but that means I need to have an exact amount of "myObjects" coded. I want this to dynamically grow/shrink by what the user does with the app. I have seen some posts on the web about doing:

Activity A
ArrayList<myObject> myObjArray = new ArrayList<myObject>();

Then when passing this into the intent I would use:
intent.putParcelableArrayListExtra("myObjArray", myObjArray);

Activity B
ArrayList<myObject> myObjArray = new ArrayList<myObject>();
Bundle extras = getIntent().getExtras(); myObjArray = extras.getParcelableArray("myObjArray");

However, the myObjArray always gets filled with "null". How can I achieve this?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved