[android-developers] Re: Android VPN L2TP

2012-06-13 Thread Nicolas Embleton
Hi ( still cannot know your name :) ) ,

Ok, a good point for being able to connect already.

By File not found exception, can you give some more details? Like a few 
piece of code where you configure and how you setup the key and all?

Nicolas.

On Wednesday, June 13, 2012 11:57:14 AM UTC+7, Евгений Корнейчук wrote:

 Hi Nicolas, thx for reply. Yes, I can connect to my VPN server from PC, I 
 use pre-shared key, login, password. And yes  I tried to use same vpn 
 connection/authentication logic as Android 2*, but it not help, file not 
 found exception, I think it try to get network config file. Any other 
 suggestion? =) 

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

[android-developers] Re: Android VPN L2TP

2012-06-12 Thread Nicolas Embleton
Hi ( sorry I cannot read your name... ),

If I understand well, you have your VPN server ( that you own? You set it 
up? ) and you want to allow your app to connect to that VPN. Right?

1st. Did you validate that your VPN server was working? Did you actually 
connect successfully from any computer?
2nd. You want to authenticate on your VPN. What is the authentication that 
you enabled on your VPN? Typically it is a shared secret and a 
user/password ( depends though ). Usually you need to create an 
authentication object and pass your parameters

Some resources that might be interesting to look at:
- 
http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/2.3.7_r1/com/android/settings/vpn/AuthenticationActor.java#AuthenticationActor
- 
http://stackoverflow.com/questions/9690666/android-vpn-authentication-and-encryption

Regards,
Nicolas.

On Wednesday, June 6, 2012 2:14:55 AM UTC+7, Евгений Корнейчук wrote:

 This is my letter of hope. I'm using android 4.* to create a l2tp 
 connection to the server. The problem is in authorization. I have a server 
 key , user login and password. I search any solution along the internet, 
 not for android only but for java at all, and didnt find any code sample 
 for start. I have no idea how I can authorize on server. ToyVpn in android 
 samples didnt help, its just sample of regular connection(without any 
 authorization). Please, somebody, help! I'll be grateful for for any useful 
 information in this question.


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

[android-developers] Re: Renderscript variable argument list possible?

2012-05-10 Thread Nicolas Embleton
You mean an array? ( va_list ) Or you mean that sometimes you have 2 
arguments and sometimes 3 arguments?

I believe it's not possible to have to many things being variable in the 
meaning using an unplanned memory. RenderScript doesn't affect memory, it 
just uses the one that have been declared. 

So if your var arg list doesn't need to add more memory to the stack then 
you should find a trick around to do it. 
On the other hand, If your var arg list does need to address more memory, 
then I am pretty sure you can't do that.

On Tuesday, April 17, 2012 10:36:07 PM UTC+7, Harald Gustafsson wrote:

 Hi,

 Is it possible to use variable argument list (...) in Renderscript, i.e. 
 va_list, va_start, va_end, etc. Want to use it for internal static defined 
 functions.

 /Harald


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

[android-developers] Re: How to access and write to an Allocation in Renderscript

2012-05-10 Thread Nicolas Embleton
I believe that you can use: 

  float4 f4 = rsUnpackColor(*v_in);

( taken from android dev 
references: http://developer.android.com/guide/topics/renderscript/compute.html 
) 

And then access a specific pixel information using the width or your image, 
x and y of your image. 



On Tuesday, April 17, 2012 9:42:12 PM UTC+7, Booker wrote:

 Hi, all. 

 I am now developing a renderscript based application and I want to use 
 it to do filter on images. 

 I would like to ask if I can have a function to access a specific 
 pixel of an allocation which is a bitmap? 

 I can use rsGetElementAt() to read but any set function?

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

Re: [android-developers] Render Script samples does't show anything

2012-05-07 Thread Nicolas Embleton
Ok, I understand now ... You saved me hours of work... 

Thanks a lot Romain. Very very useful as usual.

Nicolas.

On Monday, February 28, 2011 2:17:56 PM UTC+7, Romain Guy wrote:

 You must run them on a device, they won't work on the emulator (at least 
 not the graphical ones.)

 On Sun, Feb 27, 2011 at 9:03 PM, mmkr manutd...@gmail.com wrote:

 Hi all,

   I tried to run the render script samples, but it doesn't show
 anything and crashes.
 Did any one face this issue? Or is there any other way to run those
 sample ?

 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




 -- 
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time to 
 provide private support.  All such questions should be posted on public 
 forums, where I and others can see and answer them


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

[android-developers] Re: How can I use Google Maps in Android Apps

2012-04-08 Thread Nicolas Embleton
Just a quick note to say that in Vietnam, Google Maps for Android gives me 
maps less than 6 months old. Vietnam is a very fast growing country and 
landscape changes barely on a weekly basis. The maps are pretty accurate.
I'll try to do some http level sniffing to see if the web uses the sames 
sources as the Android SDK, but I don't think they would have 2 entry 
points for that. But who knows.

On Wednesday, April 4, 2012 11:17:58 PM UTC+7, ga...@deanblakely.com wrote:

 Mark, 
 You don't know why having maps that are 7 years old in your app is a 
 bad thing??? 

 ok, I get it.  You guys are just having fun with me.  this forum 
 sucks. 

 On Apr 4, 8:44 am, Mark Murphy mmur...@commonsware.com wrote: 
  On Tue, Apr 3, 2012 at 8:14 PM, g...@deanblakely.com 
  
  g...@deanblakely.com wrote: 
   If the maps are over 7 years old they are useless. 
  
  And your evidence of this claim is... what, exactly? 
  
  -- 
  Mark Murphy (a Commons Guy)http://commonsware.com|
 http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
  
  
  Android Training in NYC:http://marakana.com/training/android/

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

Re: [android-developers] Re: How can I use Google Maps in Android Apps

2012-04-08 Thread Nicolas Embleton
Mark,

Your point on Kindle/Amazon and other 3rd party libraries are making me 
thinking my map provider over... I'll probably look around alternatives to 
see how it works...

Nicolas.

On Friday, April 6, 2012 12:32:54 AM UTC+7, Mark Murphy (a Commons Guy) 
wrote:

 On Thu, Apr 5, 2012 at 1:06 PM, g...@deanblakely.com
 g...@deanblakely.com wrote:
  I built the app in the resource center that uses the google mapview
  (or whatever they call it).  It shows where I am.  My whole
  neighborhood is not built yet on the map!  My tract is 6 years old.

 Conversely, I can bring up maps with MapView showing things built
 within the past two years, though admittedly I found it easier to
 determine this via the satellite tiles due to the relative paucity of
 labels in the tiles served to MapView.

 Perhaps there is some facility on the Google Maps Web site where you
 can report tile issues specific to your location.

  I can't get an answer from anyone.

 Quite possibly because your behavior has been unprofessional. Rather
 than raving like a conspiracy theorist, perhaps you would have been
 better served by documenting your evidence, calmly asking if others
 see the same problem, etc.

 IMHO, there is little question that the map library could use a lot of
 love (e.g., fragments) and that the map tiles served to our MapView
 have limits (e.g., labels). Some of this is probably
 engineering/staffing considerations. Some of this may be tied to
 upstream licensing agreements, limiting what Google can give to
 third-party developers.

 You are certainly welcome to consider other mapping solutions (e.g.,
 OSMDroid and OpenStreetMap), if you feel the data, feature set, and
 license terms are more to your liking. Nobody is forcing you to use
 the Google Maps add-on, and for a variety of reasons, more and more
 developers are choosing an alternative mapping engine. For example,
 some popular devices, like the Kindle Fire, do not have Google Maps,
 let alone the Maps add-on, meaning that some alternative is essential
 if you want mapping capabilities in your app.

 -- 
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android App Developer Books: http://commonsware.com/books



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

[android-developers] Re: Push Notification Services for 4.0

2012-03-21 Thread Nicolas Embleton
Push notifications are availalbe since 2.3 or 2.2 ?  ( please remind me )

It is called C2DM, Cloud To Device Messaging.

And you can find the doc here: http://code.google.com/android/c2dm/

Nicolas.

On Wednesday, March 21, 2012 11:50:27 AM UTC+7, Hemant Chaudhari wrote:

 Hello All, 

 I want to implement Push Notifications for Android 4.0 Native app. 
 Is there any sdk available for it. 


 -Thanks 
 Hemant

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

[android-developers] Re: How to progressively make invisible a polygon?

2012-03-08 Thread Nicolas Embleton
I suppose that you could use 2 technics. I haven't tested them so it's just 
my straight guesses:

1. Draw a gradient with 1 of the 2 sides having alpha = 0.0 and move the 
gradient so that the invisible alpha grows inside the polygon. It will make 
your polygon disappear. I'm not too sure about this technic. Should give it 
a proof of concept.
2. Draw a mesh of polygons, and make the bottoms rows becoming alpha = 0 
gradually ( meaning that the row 0 is alpha 0.0 when the row 1 is alpha 0.5 
so if fades smoothly )

Should do it.

On Tuesday, March 6, 2012 6:55:29 PM UTC+7, saex wrote:

 I need to make progressively invisible a polygon with OpenGL ES 1.1. I'm 
 developing for Android, but i think that other platforms will do the same 
 code with some minor changes.

 How i can do that? i can't find any info on google or stackoverflow.

 Any help and tutorials will be apreciated.

 Thanks a lot


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

[android-developers] Re: Google Play

2012-03-08 Thread Nicolas Embleton
Seriously, I believe that the definition number 1, namely: *1.* to occupy 
oneself in (a sport or diversion); is quite about it.
When you read a book or listen to music you enjoy yourself up. I think 
that Play is more about enjoying yourself, not necessarily in a degrading 
game-playing meaning. ( Although non-degrading game-playing meaning is also 
inside the meaning of Play ).

On Thursday, March 8, 2012 12:14:22 PM UTC+7, Nathan wrote:



 On Mar 7, 1:53 am, Anirudh Loya loya.anir...@gmail.com wrote: 
  Pent Check out.. 
  
  http://www.thefreedictionary.com/play 
  

 Despite the large variety of definitions in that dictionary, I don't 
 see that any of them answer Pent's question. I think that proves his 
 point pretty well. 

 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