[android-developers] A list of coordinates should be shown in GoogleMaps

2013-08-03 Thread Bernd Roth
Hi everyone,
I am having the following problem with my program.
I am able to show a polygon, but now I have a lot of coordinates to be 
shown.
Since, I do not want to write the following line ( new LatLng(...) ) again 
and again I am trying to find a way to make it more easier.

Polygon polygon = googleMap.addPolygon(new PolygonOptions()
.add(new LatLng(48.213947, 16.370101), new LatLng(48.214584,16.369249), new 
LatLng(48.215192,16.370545), new LatLng(48.214545,16.371264)) -- I do now 
want to write this line again and again for more than 10.000 points
.strokeColor(Color.RED)
.fillColor(Color.BLUE));

I thought about an double array, but I could find a way to fill it out 
correctly ( new LatLng(... ...) ).

Maybe someone could help me please, or do I have it to do in another way?

Thank you very much!

-- 
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] controling network devices via android app

2013-08-03 Thread crem
Hi, in my network there are several (linux hosted) devices. now i want to 
control those devices via an android smartphone. 
In the end there should be a general interface to the devices, so that 
everybody could build an app for it and control it.
How would you do this? 
My first thought was, since on each device there is running a http server, to 
control the devices over http calls. (some kind of rest webservice?) This way i 
have an interface to my device and it could be easily extended to be reachable 
from outside the local network too. 

What are the alternatives to communicate with devices in the network from 
android.
 kind regards

-- 
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: Do SQLiteDatabase references go stale?

2013-08-03 Thread Nobu Games
There is an old entry on Stackoverflow about SQLiteDiskIOException: 
http://stackoverflow.com/questions/3220482/sqlitediskioexception-in-android

It also mentions the getCount method


On Friday, August 2, 2013 6:55:53 PM UTC-5, Nathan wrote:

 I have got back two nonfatal exception reports. I can't match them to any 
 particular user yet. 

 When attempting the open. 
 android.database.sqlite.SQLiteCantOpenDatabaseException unknown error 
 (code 14): Could not open database
 From: 
 SQLiteDatabase.java line 
 669android.database.sqlite.SQLiteDatabase.openDatabase 

 Another, when checking for a record's existence:
 android.database.sqlite.SQLiteDiskIOException disk I/O error
 from
 SQLiteCursor.java line 268 
 android.database.sqlite.SQLiteCursor.getCount 

 They appear to be pretty rare. No sign it is tied to a corrupt database. 

 Nathan


-- 
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Third-party JAR files and 'VFY: unable to find class referenced in signature' run-time error

2013-08-03 Thread rmz76
A have a new project in Android Studio that's referencing Infragistics 
free iguana ui controls for Android. These are distributed in JAR files. 
All of there samples were built in Eclipse and when I open those samples in 
Android Studio they work fine, but working with a new Android Studio 
project is a bit different than using an Eclipse project. When Gradle is 
involved this isn't working.

The required JAR files have been copied into the \libs folder. The library 
path set in Project Structure settings and I've added the new package files 
to my Gradle config

*dependencies {*
*compile files('libs/android-support-v4.jar')*
*compile files('libs/common.jar')*
*compile files('libs/datachart.jar')*
*}*

According to what I've read this should be enough, yet when I try to start 
the Activity that's using the third-party controls and I see their 
signature error message in the subject of this post followed by Could not 
find class 'com.iguanaui.controls.DataChart', referenced from method 
com.bigtrax.pingcompare.LineSeriesActivity.createChart


How can I ensure that the third-party JAR files are being exported to 
device with Android Studio? In Eclipse the solution was to make sure the 
JAR files were int he \libs folder an not the \lib or \library folder, but 
this structure does not apply to Android Studio. The JAR files are in the 
\libs and \libraries folder (under .idea directory) and it's the only place 
they can go. Everything builds without error and deploys. Does anything 
else need to be done with the XML files in the .idea directory or 
settings.gradle to support this, what about the projects .iml? 

Thanks!







-- 
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] 4.3, AccessibilityService, onKeyEvent

2013-08-03 Thread Pent
This doesn't seem to work at all. 

Android shows the 'user can read things you type' warning
when I enable the Accessibility Service in Android settings, but no 
KeyEvents are received.
At least with a soft (system) keyboard. Anyone tested with a hard keyboard ?
Or have success with soft ?

Thanks,

Pent

Manifest:
service 
android:label=Tasker - JB 
android:name=.MyAccessibilityService

android:permission=android.permission.BIND_ACCESSIBILITY_SERVICE

intent-filter
action 
android:name=android.accessibilityservice.AccessibilityService /
/intent-filter
meta-data
android:name=android.accessibilityservice
android:resource=@xml/accessibilityservice
/
/service

xml/accessibilityservice:
accessibility-service 
xmlns:android=http://schemas.android.com/apk/res/android;

android:accessibilityEventTypes=typeViewClicked|typeViewLongClicked|typeWindowStateChanged|typeNotificationStateChanged
android:accessibilityFeedbackType=feedbackGeneric
android:accessibilityFlags=flagDefault
android:canRequestFilterKeyEvents=true
/

Set event info:

AccessibilityServiceInfo i = new AccessibilityServiceInfo();
i.eventTypes = eventFilter;
i.flags = 
AccessibilityServiceInfo.FLAG_INCLUDE_NOT_IMPORTANT_VIEWS | 
AccessibilityServiceInfo.FLAG_REQUEST_FILTER_KEY_EVENTS | 
AccessibilityServiceInfo.DEFAULT;
i.feedbackType = AccessibilityServiceInfo.FEEDBACK_GENERIC;
i.packageNames = null;

service.setServiceInfo( i ); 

Various combinations of flags tried of course. Confirmed that the info is 
being set via log.

Receiving events:

@Override
public boolean onKeyEvent( KeyEvent event ) {
Log.d( TAG, got one );
return true;
 }

-- 
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] No patcher for Android Studio?!?

2013-08-03 Thread rmz76
From the website it appears there is not patch utility for Android Studio, 
instead we must redownload and install the latest minor revision of the 
tool? Is this true? Is there any plan to change this in the future? Since 
software patching patterns and paradigms have been in place for over a 
decade I find it hard to believe this is where we are Jet Brains!!!


-- 
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] WebView Problem showing Google Maps

2013-08-03 Thread Gary Blakely
Consider the following code...

LocateBrowser = (WebView)findViewById(R.id.locatebrowser);
LocateBrowser.setWebViewClient(new WebViewClient());
LocateBrowser.loadUrl(http://maps.google.com/maps?z=17t=hq=loc:31.8526,-110.9959;);

The Google maps page shows in the WebView with a Loading . . . activity 
logo for about a second.  The Google's 404 page then shows saying it can't 
find /Search.  I don't know where it gets /Search.

I don't know why it is doing this.  If I substitute other URLs such as

http://www.deanblakely.com/AndroidNews.aspx
or
http://www.amazon.com

It works fine.

Also, if I put the above google maps URL into a browser on my PC it works 
fine.
Also, if I don't implement the WebViewClient (second line) it shows 
perfectly but in a separate browser window.(I don't want that).

What am I doing wrong or what am I forgetting to do?
Thanks,
Gary

-- 
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: WebView Problem showing Google Maps

2013-08-03 Thread Nobu Games
Just a guess, maybe Google Maps is trying to (incorrectly) redirect to the 
mobile version of the page and cannot find the correct link. Did you also 
enable JavaScript in your WebView?

On Saturday, August 3, 2013 4:40:52 PM UTC-5, Gary Blakely wrote:

 Consider the following code...

 LocateBrowser = (WebView)findViewById(R.id.locatebrowser);
 LocateBrowser.setWebViewClient(new WebViewClient());
 LocateBrowser.loadUrl(
 http://maps.google.com/maps?z=17t=hq=loc:31.8526,-110.9959;);

 The Google maps page shows in the WebView with a Loading . . . activity 
 logo for about a second.  The Google's 404 page then shows saying it can't 
 find /Search.  I don't know where it gets /Search.

 I don't know why it is doing this.  If I substitute other URLs such as

 http://www.deanblakely.com/AndroidNews.aspx
 or
 http://www.amazon.com

 It works fine.

 Also, if I put the above google maps URL into a browser on my PC it works 
 fine.
 Also, if I don't implement the WebViewClient (second line) it shows 
 perfectly but in a separate browser window.(I don't want that).

 What am I doing wrong or what am I forgetting to do?
 Thanks,
 Gary


-- 
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: WebView Problem showing Google Maps

2013-08-03 Thread Gary Blakely
No, I had not enabled javascript.  So, I tried that and it now works.
Thanks, so much.
Gary

On Saturday, August 3, 2013 2:52:19 PM UTC-7, Nobu Games wrote:

 Just a guess, maybe Google Maps is trying to (incorrectly) redirect to the 
 mobile version of the page and cannot find the correct link. Did you also 
 enable JavaScript in your WebView?

 On Saturday, August 3, 2013 4:40:52 PM UTC-5, Gary Blakely wrote:

 Consider the following code...

 LocateBrowser = (WebView)findViewById(R.id.locatebrowser);
 LocateBrowser.setWebViewClient(new WebViewClient());
 LocateBrowser.loadUrl(
 http://maps.google.com/maps?z=17t=hq=loc:31.8526,-110.9959;);

 The Google maps page shows in the WebView with a Loading . . . activity 
 logo for about a second.  The Google's 404 page then shows saying it can't 
 find /Search.  I don't know where it gets /Search.

 I don't know why it is doing this.  If I substitute other URLs such as

 http://www.deanblakely.com/AndroidNews.aspx
 or
 http://www.amazon.com

 It works fine.

 Also, if I put the above google maps URL into a browser on my PC it works 
 fine.
 Also, if I don't implement the WebViewClient (second line) it shows 
 perfectly but in a separate browser window.(I don't want that).

 What am I doing wrong or what am I forgetting to do?
 Thanks,
 Gary



-- 
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: No patcher for Android Studio?!?

2013-08-03 Thread RichardC
 Android Studio is still in Beta. Things may change when it leaves beta or 
it may not.

On Saturday, August 3, 2013 9:15:26 PM UTC+1, rmz76 wrote:

 From the website it appears there is not patch utility for Android Studio, 
 instead we must redownload and install the latest minor revision of the 
 tool? Is this true? Is there any plan to change this in the future? Since 
 software patching patterns and paradigms have been in place for over a 
 decade I find it hard to believe this is where we are Jet Brains!!!




-- 
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [android-developers] No patcher for Android Studio?!?

2013-08-03 Thread john collinson
Thinks for the rige mnownibeeally appreciate that aubade sound foremen have
a nice day. Hello thank you for this email NASA.gov hundred 57 thanks for
this email it's very useful email because I I need to know information and
I know what I do without this is kind very useful information.  I just got
this new phone trying typing this on and I really like speaking to it
because everything I say to it is typed into my phone but sometimes it
messes up what I say and I don't like that thank you this is my sprint
email right collects spam emails Conolly I have 211,000 emails when you're
one of them and I chose you to respond to hear at my cousins house you
should feel very important you should feel very important to this email Stan

On Saturday, August 3, 2013, rmz76 wrote:

 From the website it appears there is not patch utility for Android Studio,
 instead we must redownload and install the latest minor revision of the
 tool? Is this true? Is there any plan to change this in the future? Since
 software patching patterns and paradigms have been in place for over a
 decade I find it hard to believe this is where we are Jet Brains!!!


  --
 --
 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.comjavascript:_e({}, 'cvml', 
 'android-developers@googlegroups.com');
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:_e({},
 'cvml', 'android-developers%2bunsubscr...@googlegroups.com');
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.comjavascript:_e({}, 
 'cvml',
 'android-developers%2bunsubscr...@googlegroups.com');.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] example source code or tutorial on using fragments and OpenGL ES 2.0

2013-08-03 Thread James Black
Hello,
  I want to start on a program using OpenGL ES but I want to use fragments,
as it will be simpler, I think, to show equations in one fragment and the
graph in another fragment.  The equations and the graphing will be separate
instances of using GLSurfaceView.

  As I write this I almost wonder if I should use a HUD, as explained
phere:
http://stackoverflow.com/questions/8842173/android-image-over-opengl-es-game-hud

  But for equations that people can modify I don't know if that is the best
option.

http://stackoverflow.com/questions/1629775/tutorials-and-libraries-for-opengl-es-games-on-android

Thank you.

-- 
Resume  Projects: http://careers.stackoverflow.com/jamesblack

I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant.
- Robert McCloskey

-- 
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[android-developers] Re: help needed.......

2013-08-03 Thread Lew
ramesh babu wrote:

 suggest me a project in android [sic] which is not application 
 oriented??and it may be a ieee [sic] journal paper of 2013


- What possibly could you mean by not application oriented? Isn't 
anything you do on a computer an 
  application by definition?

- Shouldn't a journal paper be based on active research in which you are 
already engaged, 
  and represent a contribution to the state of the art?

- What is in it for the person making the suggestion?

- How much do you already know about Android programming? (It must be a lot 
if you are 
  contemplating submitting a paper to the IEEE.) This will help us target 
any suggestions we 
  might make.

- Please respect the spelling at least for proper nouns and trademarks.

- What is the context for your request?

-- 
Lew

-- 
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.