Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!

Jared Snyder

Ranch Hand
+ Follow
since Mar 07, 2014
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jared Snyder

Okay, I've made some progress...



Now I am trying to figure out how to access videos in the arrays to the relevant stages/windows, and then be able to cycle them with keyboard inputs.
4 years ago
I am trying to discover the best way to set up a flash project that will utilize dual views of the same scene, and permit cycling through aspects of the video on one of the views, while allowing cycling of the scene on the other view. I will try to illustrate this for you...

MONITOR 1
MONITOR 2

SCENE A
SCENE B
SCENE C

VIEW A1, A2, A3
VIEW B1, B2, B3
VIEW C1, C2, C3

The scenes are video footage. The views are the same as the scenes, but each one has different overlay. The scenes would play on MONITOR 1, while the respective VIEW would play on MONITOR 2 synchronously. When the user presses a predetermined key, the VIEW displaying on MONITOR 2 would cycle to the next view (VIEW A1...A2...A3). When the user presses a separate predetermined key, the next SCENE would load on MONITOR 1 and it's respective VIEW on MONITOR 2. So basically, there are various scenes that all have overlays (VIEWS), which need to be able to load and run on MONITOR 2 synchronously like a side-by-side comparison, but with the dynamic ability that allows the user to interact with the process and either change the VIEW on a particular SCENE or the SCENE itself. And I need this to run as a standalone. Suggestions?
4 years ago

Steve Luke wrote:Do you have any code to show us what you do to get the search widget or what search widget you are talking about?



As I had said, the code for this can be seen at the tutorial link provided. Otherwise, it is scattered throughout my own code.
4 years ago
I've posted this issue on Stack Overflow already, 6 days ago. However, nobody has replied with even where I should begin with this issue.

http://stackoverflow.com/questions/22415212/search-view-not-producing-expected-results

There are images provided at the link above, but the overall issue is that I've setup Google Places with search suggestions in my app, using this tutorial as a guide:

http://wptrafficanalyzer.in/blog/adding-google-places-autocomplete-api-as-custom-suggestions-in-android-search-dialog/

When I click on the Search View widget icon, it seems as though my theme is being overridden for some reason. Everything else about the search functionality works just fine, expect for the aforementioned issue. Anybody know anything about why this is happening?
4 years ago
I've solved this one. I ended up overhauling all of my code related to this. I can't post my code, because it is integrated throughout my MainActivity and a couple other activities, but I will say that I referred to these sites for help:

http://wptrafficanalyzer.in/blog/adding-and-removing-proximity-alert-in-google-map-android-api-v2-using-locationmanager/
https://developer.android.com/training/location/geofencing.html
4 years ago
The geofence should be created once a marker is placed, and updated if the marker is moved. The monitoring of that fence will commence upon a user interaction, which is the pressing of a toggle button.

I'm thinking that I might do the monitoring code as a separate class.
4 years ago
Ulf, thanks for replying!

After considering my issue further, it dawned on me that my question is moot, because I don't actually need to do anything special to show a marker for the user's current location. The Google Maps v2 API offers .setMyLocationEnabled() method. When set to true, the user's current location will be placed on the map and updated accordingly. The only catch is that this is but a layer on the map and does not return the coordinates of the location. It is simply visual. That's fine, though, because I can use my method to get the coordinates.
4 years ago
I have created a method that builds a geofence based on the marker location. I am trying to determine where the best place to insert it is, so that it is specifically linked to the marker's location. Any thoughts?

4 years ago
I'd like to utilize a marker within my override for onLocationChanged(). Presently a string is being used to post the coordinates on-screen using Toast. I'm confused by the Location Listener. What is the return? How is it passed along to the map as a marker?



Current override for onLocationChanged:

4 years ago
Okay, I tinkered and tinkered, and ended up just recycling my own method code into that of the search results. I am not sure if there is an easier way, but this is what I used.

4 years ago
I'm having a hard time understanding how to replace the existing addMarker with my own. I figure I need to grab the LatLng from the selected location in the search results and then pass that to my marker method.
4 years ago

Ulf Dittmer wrote:I'm not clear on what the problem is. What happens at runtime? Which of this code is or is not being run, and how does that differ from your expectation of what would happen? Also, what does "it is using its own addMarker" mean?



The code runs 100% fine. However, I want the method I wrote for adding a marker to be the only method for adding a marker. So, instead of the selected search result being added to the map via the addMarker in the tutorial code, I want it to be added via my method- the one I have coded for the map. Does that make sense?
4 years ago
This was originally posted on Stack Overflow: http://stackoverflow.com/questions/22308219/use-search-results-from-google-places-api-to-update-marker-location-or-create-ma
The post says I created it yesterday, but I am certain I created it the day before. I have yet to get a response. Please, while I appreciate not being spoon fed the answer right off the bat, try, also, not to speak in riddle. Thanks!

In my app I am using an if/else statement that, onMapLongClick, will update the location of the marker, if one exists, or create a marker if one does not exist. I wanted to use SearchView with Google Places API, so I utilized a tutorial I found reading through posts on Stack Overflow. It utilizes search results from Google Places API to create a marker. Nice! However, it is using its own addMarker. So, I am hoping someone would be so kind as to get me going in the right direction so that I am able to tie the results being generated from Google Places API in with my method for adding a marker. (Teach the man to fish, not give the man a fish.)

My method:

Tutorial method for Google-Places-API results:
4 years ago
Bingo! Bango! Bongo! That worked perfectly, and it was a much easier process than I had assumed. Thanks, Paul!
4 years ago
So I know that step one is to add \n to the end of each line, and in the spaces between lines in my text file. Then, there is going to have to be something in my code that tells BufferedReader what to do when it reads said character (\n). What does such code look like?
4 years ago