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?

Android :: load only markers that would be displayed on current screen?


Android :: Load Markers Dynamically For Current Position In Android Google Maps?

Aug 5, 2010

I'm currently developing an app for Android which uses google map service. Because users will be able to see thousands of markers I would like to load only those which are currently within the map bounds (i.e. when user look at specific map tile). I know how to do it with javascript/html. However, Android doesn't seem to provide any similar methods such as containsLatLng(latlng) or getBounds (I only found getLatitudeSpan and getLongitudeSpan, but don't know how can I use them in order to achieve the similar effect). Can anyone give me some hint on that?

View 4 Replies View Related

Android :: Load Only What Displayed In List - Grid - Gallery?

Nov 16, 2010

I would like to improve the load of my activities in my Android app. Every activity is either a GridView, a List or a Gallery. My questions is : How can I load only what's displayed ? Let's say I have to display a list of 500 songs (The same with a grid of 500 pictures), and each cell includes the Thumbnail, title and lenght. How can I know which one is currently displayed? I don't know if I made myself clear, if not please jut let me know.

View 1 Replies View Related

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

Android :: Way To Get Splash Screen Displayed ASAP?

Aug 21, 2010

I have a splash screen/loading screen that has .setVisibility() to GONE right after the draw call of my large bitmap is completed. The problem is the splash screen takes a bit to popup which i believe is due to the main activity booting up and doing CPU intensive applications on first run. Is there a way to get my splash screen displayed ASAP? Would it be ok if i had it in a different thread maybe? The splash screen is just a bitmap with a progressBar right below it. My layout is xml based so i cant see myself using setContentView.

View 2 Replies View Related

Android :: Get Foreground Activity Displayed On Screen

Apr 22, 2009

Is it possible to get listed the apps or activity which are actually displayed on the screen of the android mobile. I need to display a text box on some event when no acitivity is displayed, excepting the home screen.

View 3 Replies View Related

Android :: Weather Displayed On The Main Screen?

Sep 22, 2010

Will i get charged for having the weather displayed on the main screen?

View 9 Replies View Related

Android :: Toast To Be Displayed At Specific Points On The Screen?

Jul 15, 2009

I want my Toast to be displayed at specific points on the screen. How do i do that?

View 3 Replies View Related

Android :: Geocoder - Nothing Is Displayed On Screen Whenn Run Application

Oct 26, 2010

I have written the code for geocoding..but unfortunately it does not work ie nothing is displayed on screen...i am attaching the code...is the fault in the code..

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

View 1 Replies View Related

Android :: Blank Screen Displayed After Downloading From Browser

Dec 16, 2009

We are developing an application that requires a download of a music file (mp3). We are using the Browser Activity for the same.

The Browser Activity is invoked from the application and the download url is passed to it, like: startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(downloadurl)));

However, after downloading, on the download list page, if we press the Back button, a blank white screen is displayed. Only after we press the Back button a second time on this white screen, the application screen is displayed. This happens because the Browser Activity view is displayed before the actual downloading starts.

This is an issue in the application flow. We need to manage the flow in such a way that the 'Back' key press on the download list view will take the control to the application screen instead of the white screen.

View 3 Replies View Related

Android :: How To Access Programmatically What Is Displayed In Lock Screen

Feb 15, 2010

Today I am looking for a way to mimic the behavior I know from my HTC Hero's lock screen: the calendar and alarm clock can put text & drawables there to inform about an upcoming event or an expired alarm. The lock screen remains there in that it must be dragged down to dismiss the shown event and there might also be a Snooze button.

But, first question: is this default Android stuff or HTC Sense specific only??
Second question: If it is a common Android thing, why can't I find anything in Google's Android documentation for the topics "lockscreen" or "lock screen" that comes close to my question? Where's the API for it?

My problem is: I want to inform the user immediately - even if I try a standard notification, the user with a locked screen will have to unlock it and drag down the notifications list to see & clear what's going on. sigh Putting an endlessly playing notification sound there is a hassle as it takes at least two swipes down to stop the sound playing!

View 2 Replies View Related

Android :: Activity Is Displayed After User Unlocks The Screen

Mar 31, 2010

I was wondering if anyone understood how to make your application be displayed when you unlock the screen. I have an application where the user turns on a Bluetooth device, it connects to the phone, and the user should be presented with a UI. Having them hunt for the app or using the notification menu is not a workable option (too much work and not the obvious behavior).

The problem is that:
When the screen is unlocked:
- you can popup the activity from the background service when Bluetooth connects to a device
- User is happy because the UI is right there

When the screen is locked:
- The application gets started but is destroyed
- User unlocks the phone and nothing is there but the homescreen

One work around would be to disable the keyguard when the application gets woken up but the nuclear option is a pretty bad option. I know the standard Android assumption is that you shouldn't do this. In the normal case this behavior is fine, but in this case I explicitly did something I want the phone to respond without adding more work for the user to do. As per Google's guidelines if you don't like this behavior there can be an option for you to turn this off or you can not use the application.

A few more details, so after looking at this a bit more the problem isn't necessarily that you can't have an activity running when the screen is locked, unlock and expect it to be waiting. That does work if you do something like the following: lock your device run an app through Eclipse while the phone is locked/off unlock and it will be waiting for you.

But in the case the Activity is already running and I'm brining up a new window (which happens to be a transparent one, saying you're connected and asking what they want to do).

The problem is that it gets killed

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

The setup here is as follows:

MyBackgroundService is a serivce that handles Bluetooth state (waits for connections, turns on Bluetooth if the user starts the app, etc.). It triggers a popup BackgroundPOPUP activity that runs a ViewFlipper.

MyBackgroundService starts BackgroundPOPUP through an intent.

BackgroundPOPUP is an activity with a Translucent theme (Theme.Translucent to be precise), it shows a ViewFlipper with some instructions and presents some options.

View 1 Replies View Related

Android : Receive Event When View Is Actually Displayed On Screen?

Jan 19, 2010

As known, when using the setContentView() method, a view can be displayed on screen.

My question is whether there is a way to receive an event when the view is actually displayed on screen (since it takes some time for the view actually being displayed after the setContentView() method has been called).

View 2 Replies View Related

Android : WebView - Not Able To Go Back To My Activity Screen Once The Content Is Displayed

Apr 9, 2009

Step 1: I am subclassing WebView and rendering html content properly. The intial content is very small with a div and image /link This is displayed in a LInear Layout along with a TextView and ListView. That is my first screen/activity of the application.

Step 2: When I click on a link on this webview, it goes through the webViewclient and expands to full screen to fit the content of the requested page.

After Step 2, I am not able to go back to my activity screen once the content is displayed. When I click on the back button to getback to my activity screen close my activity and goes to the phone's applications desktop. (i.e goes out of my application).

Step 3: In order to fix this issue, I stopped setting my own subclasssed WebViewClient. After doing this, the it seems to render the clicked page in a webView as subactivity. Now When I click on backbutton, it goes back to the activity screen. But, the issue now is, I am not catch event when a link is clicked. How can I catch click events in this case.

View 2 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

Android :: Open Soft Keyboard And Associate It With Textview Already Displayed On Screen?

Jun 9, 2009

I want to open the virtual keypad without touching a text view . Can someone help me how to open a soft keyboard and associate it with a textview already displayed on the screen?

View 2 Replies View Related

HTC EVO 4G :: Home Screen Weather Icon Not Displayed

Jun 18, 2010

On my home screen where the weather is suppose to display all it says is Location. How can I fix this, or link me to an article that does?

View 4 Replies View Related

HTC Incredible :: Way To Change What Screen Is Displayed While DI Is Charging?

May 20, 2010

Not sure of this has been asked but is there a way to change what screen is displayed while the DI is charging?

View 5 Replies View Related

Samsung Moment :: Way - App To Keep Dialer Displayed On Screen

Mar 15, 2010

Is there a way, app or otherwise, to keep the dialer pad on the screen.

It becomes a pain in the butt when I have to use it for choosing options in a call menu.

View 4 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

Creating Custom Layout - Black Screen Displayed?

Jul 14, 2012

I am using:

Android 4.0.3
OpenCV 2.4.2
Samsung Galaxy S2

The face-detection example (from the opencv 2.4.2) is working perfectly. But now, I would like to create a custom layout and actually work with just the data extracted from face detection and build a game on it. Not necessarily having the FdView surface taking the entire screen.

I have done these modifications below, but just a black screen is displayed. Nothing appears on the screen.

Changed the BaseLoaderCallback in FdActivity.java

Code:
//EXPERIMENT
setContentView(R.layout.fd);
FdView surface = (FdView) (findViewById(R.id.FdView));[code]....

View 2 Replies View Related

General :: Haier W910 - Screen Displayed With White Snow?

Mar 22, 2014

I've a two month old Haier W910 with stock ROM. The other day, when switching on the phone, the device displayed white snow. The device function normally - touch screen, audio, wireless and cellular (accept calls) but the screen continue to show white snow (like old analog TV).

I found a youtube video showing the same symptom and one of the comments suggested that the phone need to re-flash ROM and it will solve the problem. The youtube video posted confirmed that it did. Since then and for the past 3-4 days I've been trying to flash my phone but it doesn't work. I'm able to put the phone in "Download mode" and use fastboot to flash a recovery boot, oem unlock works but I can't seems to reflash full ROM: I can't use the "update.zip" method as a I can't see the screen and when I try to flash different ROMs under www.needrom.dom using 'fastboot update' it keep saying:

archive does not contain 'android-info.txt'

archive does not contain 'android-product.txt'

error: update package has no android-info.txt or android-product.txt

I can't flash the rom in "recovery mode" as I can't see the menu and select the proper option.

I guess I also need to replace the bootloader as the screen is white snow from the very beginning..

So the question is: how can I do a device full reflash WITHOUT using the screen (preferably in fastboot)

View 1 Replies View Related

General :: Change Screen Size Displayed In 7 Inch Tablet

Dec 28, 2012

i have here a 7'' tablet that i would like to insert in a acessorie in my car. the problem is that once inserted, i cannot seed the entire screen. i have to reduce the screen displayed in the tablet to match the accesorie size. is any app or mod to do it?

View 1 Replies View Related

Android :: Widget Not Displayed In Android 2.0 - Initial Layout Displayed Only

Nov 1, 2009

Our application displays widgets that update every minute through Alarm. It works fine under 1.5 and 1.6 but since 2.0, widget is not displayed at all. Only initial layout is displayed.

View 2 Replies View Related

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.

View 3 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 :: Add Markers On Map?

Jan 18, 2010

I wanted to know how to add marker on a map? right now, i am trying to build an application that shows the persons current location, and i can follow it. but the problem is i don't have a pointer, so the changing is vague. what i want is to show the persons location with a marker(e.g some kind of bubble) and follow it.=

View 2 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 :: 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







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