Re: [android-developers] applying effects to camera images

2012-10-07 Thread Narendra Singh Rathore
Thanks Richard and Harri,
I will follow what you suggested, and hoping that will somewhat help in my
goal.

Thanks n Regards,
NSR.

-- 
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: HTTP server in Android

2012-10-07 Thread gjs
Hi,

No sure that will work if both emulators have the same IP address.

I'd try running server  client programs in the same emulator. For the 
server use any port number between 1025  65535 that is not already used, 
ports below 1024 are generally reserve in linux/unix system  need su 
rights.  

Regards

On Friday, October 5, 2012 5:54:45 PM UTC+10, Archana wrote:

 Hi, I need to create an application(using 2 emulators) in which: Each 
 emulator serves as a server and a client.

 Server starts as a service in background. On request by the client, I have 
 to transfer the contents of a JSON file from 1 emulator's server to other 
 emulator's client.. Can you please guide me in the usage of how to use port 
 numbers(as the IP addresses of both instances of the emulator is the same)?

 Thank you!

 On Friday, October 5, 2012 5:48:19 AM UTC+3, gjs wrote:

 Hi,

 Change the port number in your request -

 PORT = 8765

 not 8080

 And yes you can write your own http server simply by using a server 
 socket. 
 http://docs.oracle.com/javase/tutorial/networking/sockets/clientServer.html

 Regards 


 On Thursday, October 4, 2012 3:57:58 PM UTC+10, Archana wrote:

 Hi, I want to develop HTTP server in Android. I used the link 
 https://gist.github.com/1893396#gistcomment-582451 NanoHTTPD. But when 
 I open the page http://10.0.2.15:8080, I am getting WebPage not found. 
 In the logs, I am getting 

 10-04 05:55:39.106: E/Tab(499): onReceivedError -6 
 http://10.0.2.15:8697/ The connection to the server was unsuccessful.

 Can anyone please tell me what the error is about? Or is there any other 
 way to implement a HTTP server in Android?

 Thanks in advance!



-- 
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] What are arbitrary units in the javadoc for computeVerticalScrollOffset?

2012-10-07 Thread Romain Guy
ListView sometimes uses the item unit (total number of items, first
visible item, etc) instead of pixels because it cannot always know the
exact pixel height of all items. You can also use units that come from your
dataset (a map could very well use meters for instance, a graph could use
time or percentage.)

Feel free to use pixels but it's not mandatory. What matters is that all 3
methods use the same unit.
On Oct 6, 2012 7:50 AM, Raffaele Sgarro raffaelesga...@gmail.com wrote:

 The documentation for computeVerticalScrollRange() 
 sayshttp://developer.android.com/reference/android/view/View.html#computeVerticalScrollRange()
 :


 Compute the vertical range that the vertical scrollbar represents.
 The range is expressed in *arbitrary units* that must be the same as the
 units used by 
 computeVerticalScrollExtent()http://developer.android.com/reference/android/view/View.html#computeVerticalScrollExtent()
  
 andcomputeVerticalScrollOffset()http://developer.android.com/reference/android/view/View.html#computeVerticalScrollOffset()
 .


 The same *arbitrary units* are mentioned in the other two methods.
 Looking at the sources, this is what I found:

 protected int computeVerticalScrollRange() {
 return getHeight();
 }
 protected int computeVerticalScrollOffset() {
 return mScrollY;
 }
 protected int computeVerticalScrollExtent() {
 return getHeight();
 }

 So, what's going on here? getHeight() is documented to return the height
 of the view in pixels, and I wander if it makes any sense to measure things
 in miles, kilometers, astronomic units... Do they documented it in such a
 way to allow subclasses to use percentages or number of items?

 In particular, I looked at this methods because I'm implementing a
 ListView with a custom backgroundhttp://stackoverflow.com/q/12737600/315306,
 and it seems I need to deal with scroll dimensions

 --
 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 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: XML Pull parser

2012-10-07 Thread vaish
hello.. can anyone pls suggest me a tutorial on xml sax or pull parser that 
use async task to read data from web..
help guys..
thanks in advance!!..

-- 
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: XML Pull parser

2012-10-07 Thread Ibrahim Sada
Hey wts ur querey?

On 7 October 2012 17:11, vaish vaishalisharma...@gmail.com wrote:

 hello.. can anyone pls suggest me a tutorial on xml sax or pull parser
 that use async task to read data from web..
 help guys..
 thanks in advance!!..

 --
 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 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: Can I offer a trial period for an otherwise Google Play subscription-based service?

2012-10-07 Thread RLScott
While I do not know the answer to the original question, it certainly
seems like a reasonable question to ask in this forum.  I would not be
so bold as to claim that no one here can or would answer it.   Speak
only for yourself.

On Oct 6, 3:57 pm, TreKing treking...@gmail.com wrote:
 On Sat, Oct 6, 2012 at 2:53 PM, Sorenchr soren.qv...@gmail.com wrote:
  I'm wondering if it's against the Google Play policies

 No one here is qualified to give you advice on what is or isn't against
 their policies. Read them for yourself and consult a lawyer if in doubt.

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
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: MediaPlayer.setNextMediaPlayer

2012-10-07 Thread b0b



 On Tuesday, July 3, 2012 2:42:57 PM UTC-7, b0b wrote:

 Related to setNextMediaPlayer it would great to have more info such as:

 - for which codecs will it handle gapless ? Are there restrictions ?


 Can't imagine there would be a problem with codecs.  The issue is that you 
 want a continuous stream of PCM data, going to audio out, not where the 
 (decoded) PCM is coming from. 


According to my own tests, setNextMediaPlayer will play gaplessly for FLAC, 
Ogg Vorbis and WAV but *not* MP3 and AAC (M4A). 
There is a small 50 or 100ms gap for these. That is very disappointing. The 
MP3 and AAC files I tried played gaplessly in foobar2000.

There you go for codecs not making a difference...

-- 
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] set group height in ExpandableListView issue

2012-10-07 Thread Metalex
Hello!
Please help me, I have issue and can't find a solution.
I have ExpandableListView with fixed height and group layout with fixed 
height but group's height is always unchanged for any height values! I need 
to make its height smaller.
Thanks for any suggestions!

-- 
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: USB to PC connection

2012-10-07 Thread al
I think, you may use port forwarding via adb. This link might be a start 
http://qtcstation.com/2011/03/connecting-android-to-the-pc-over-usb/

Am Mittwoch, 3. Oktober 2012 12:33:09 UTC+2 schrieb Jasper Horn:

 Hi Al,

 You make an interesting point. I was intending to use the keys for 
 authentication, and the phone is playing a server role here, meaning that 
 only the computer would need a private key. Once it has been generated, the 
 public key could indeed be sent over wifi safely. You do still have the two 
 problems left, selecting a phone and getting the key unmodified, but those 
 are solvable indeed.

 However, I have been thinking about this and I feel it might be necessary 
 to extend the service beyond the original idea of only using it over wifi 
 and allow use over the internet as well. The idea would still be the same: 
 having a phone app and a computer application communicate (possibly through 
 a server). Here it might be necessary to encrypt all data sent and thus we 
 may need to have a key pair on both ends. However, that's not really what 
 changes the situation. What changes the situation is that the two problems 
 above get so much bigger. The data will now be sent over a much less secure 
 connection and there are many more wrong phones you might connect to. I am 
 not saying that isn't solvable, but this makes me want to at least offer 
 USB setup as an option.
 It is possible to just connect over usb like that?

 On Monday, October 1, 2012 11:22:24 AM UTC+2, al wrote:

 Getting cryptography right is non-trivial. So take this with caution.

 As I understand it, you want to generate a key pair on each side and 
 exchange the public keys. That can be done easily via wifi too since you 
 only exchange _public_ keys. The problem is to be sure you got the right 
 ones (i.e. that they have not been faked by e.g. a man in the middle 
 attack). To ensure this, you might e.g. calculate a cryptographic hash of 
 the public keys (to shorten the data that has to be compared) and display 
 them on both sides. The user may then compare the hashes.

 Am Samstag, 29. September 2012 15:21:51 UTC+2 schrieb Jasper Horn:

 I have an idea for an app that will both have a component that runs on 
 the computer of the user and a component that runs on the phone. The idea 
 will be that the two will communicate over wifi.

 To make this secure, I want to set up a public/private key pair on the 
 computer and the phone. In order to do this in a user-friendly way, I want 
 to do so automatically over usb. However, in exploring how much of what I 
 want is actually possible on android, I have been unable to find out how to 
 have an app communicate over usb to a program on the computer.

 Technically, it would be similar to using the computer as a USB 
 accessory, but I doubt it would actually be similar enough to make this 
 work. I have also read that it might be possible using ADB port forwarding, 
 but this doesn't really look like it would make it more user-friendly for 
 end users. Finally, I suppose I could solve the problems by only using the 
 file system and mounting it, storing the public key in a file on the 
 s-card, but it's not really the ease of use that I am looking for.

 Is there a way of communicating between an application running on a pc 
 and an app running on an android device that I have missed?
 Is there a mistake in my current understanding of the possibilities?



-- 
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: Can I offer a trial period for an otherwise Google Play subscription-based service?

2012-10-07 Thread TreKing
On Sun, Oct 7, 2012 at 6:58 AM, RLScott fixthatpi...@yahoo.com wrote:

 While I do not know the answer to the original question, it certainly
 seems like a reasonable question to ask in this forum.


This forum is for developing apps using the Android SDK. The OP is
basically asking for legal advice regarding the Google Play policies. This
is not the right place for this question.


 I would not be so bold as to claim that no one here can or would answer it.


I am, or, um, was. I've seen this type of question come and go across this
forum (and even the actual Android Market forum when it existed). The fact
is that fellow developers are not qualified to answer these policy
questions. And the fact is that people that would know the answer (like
people at Google) will not chime in, probably for legal reasons.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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: Can I offer a trial period for an otherwise Google Play subscription-based service?

2012-10-07 Thread Kevin
According to Google, you can create a trial subscription, which seems to be 
exactly what you're looking for. 
http://support.google.com/googleplay/bin/answer.py?hl=enanswer=2476088

On Sunday, October 7, 2012 10:20:53 AM UTC-7, TreKing wrote:

 On Sun, Oct 7, 2012 at 6:58 AM, RLScott fixtha...@yahoo.com javascript:
  wrote:

 While I do not know the answer to the original question, it certainly
 seems like a reasonable question to ask in this forum.


 This forum is for developing apps using the Android SDK. The OP is 
 basically asking for legal advice regarding the Google Play policies. This 
 is not the right place for this question.
  

 I would not be so bold as to claim that no one here can or would answer 
 it.


 I am, or, um, was. I've seen this type of question come and go across this 
 forum (and even the actual Android Market forum when it existed). The fact 
 is that fellow developers are not qualified to answer these policy 
 questions. And the fact is that people that would know the answer (like 
 people at Google) will not chime in, probably for legal reasons.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago 
 transit tracking app for Android-powered devices



-- 
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: Black screen after switching to another app

2012-10-07 Thread Logan
MobileVisuals eyvind at astralvisuals.com writes:

 
 My app has a SurfaceView and a GLSurfaceView.  I can switch back and
 forth between these. The SurfaceView is the application GUI.
 
 I test switching to another app. I can then switch back to the
 GLSurfaceView in my app. I then try to switch back to the
 GLSurfaceView,where the application GUI is. Here is where the problem
 occurs. A black screen is shown instead of the GUI.
 
 The app still works, because the application menu is shown when the
 menu button is pressed. But nothing is drawn on the screen, it is only
 black. I have tried almost everything to fix this, I have checked that
 the thread is running and that no instance of any object (like the
 SurfaceHolder) is null. What could be the reason for this black screen?
 

I had the same problem with my app. The problem is that you lose the GL context
if your application goes to the background, and so you lose all bound textures
(if you're using texture mapping), and you also lose the viewport. You need to
reload all your textures and you need to re-set your viewport and projection
matrix, etc. You should do this on your activities onResume() method, but you
won't have a GL context there, so just set a flag in your renderer to tell it to
reload everything. Your renderer will NOT always get an onSurfaceChanged() call
after the resume, so don't rely on that to reset your viewport! Because you
can't rely on onSurfaceChanged(), you also need to use saved values to set
viewport width and height.


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

2012-10-07 Thread Jeremy Villalobos
I have a module that interacts with Google Docs.  I use it to scan for 
specific file types, download files and to use the OCR feature Google 
provides.  I can sell the module on Chuppa mobile.   I've been wanting to 
use that service for a while as I see a market for modules something that 
would be a boom for independent developers such as myself.  Would you be 
interested ?

As for how I built it.  I looked at a picasa example from the documentation 
that is laying around on the web.  I used this to understand how 
authentication works with Android.  Then I used the Google Docs example 
they have for vanilla Java.

Looking at the latest stuff out there.  Another way to get at it is to use 
Intents to call on the gdrive app.  I've only glance at 
this documentation though.

On Wednesday, May 18, 2011 3:31:11 PM UTC-4, Doug Gordon wrote:

 My app is mainly self-contained, interacting only with the user's 
 databases, and does not use any web or cloud technology to do its thing. 
 However, I'd like to add functionality to download database files from 
 the user's Google Docs account to make it easier to transfer data.

 There are docs online for the required APIs, but it really seems 
 complicated and assumes prior knowledge of various web technologies 
 (XML, JSON, HTTP headers, etc.) that are outside my realm of knowledge. 
 It looks like a very steep learning curve just to perform this basic 
 operation: obtain authentication, get a list of available docs to 
 display, download selected doc file to the SD card.

 Is there anyplace where I can find a tutorial on what I need to know, or 
 possibly sample code? My experience in the past is that the 
 documentation can make it seem more complex than it actually is: 20 
 pages of confusing text, and then you see a sample implementation and 
 it's just a couple dozen lines of code!

 Any help getting me started on this would be appreciated!

Doug Gordon
GHCS Software



-- 
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] activity nevigation

2012-10-07 Thread Sadhna Upadhyay
Hi Everybody,
   I am stuck in a problem, the is this that when i get
nevigate from one activity to another activity then next activity appears
for a milli second and its previous activity comes forword for a milli
second then next activity will be stop,it happens like blinking or
flactuate,it may be a siili question but a am not able to find its solution
that what kind of it is exception,can some one tell me how to start next
activity,

I implement like this,
Intent in=new Intent(A.this,b.class);
startActivity(in);

pls help me if any one have any idea,

Thanks:
Sadhana.

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