[android-developers] Re: Ringtones and RIAA

2011-10-13 Thread ko5tik


On 14 Okt., 02:08, mrqzzz  wrote:
> Hi, i am trying to understand if i am going to get in trouble if i
> publish a soundboard with a dozen of pieces of famous soundtracks
> (star wars, superman,etc..) having a lentgh of about 30 secs. or 2
> mins.

Certainly. AFAIR there is 10 seconds cap on samples,  and it can vary
between iurisdictions.

> Will RIAA sue me?
Possibly,  if they find out.
>What can i do to prevent this? Royalties? Where can
> i get some information?

You will have to obtain proper license from  copyright owner. RIAA
itself could be
good starting point


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


[android-developers] Re: Android camera flashlight

2011-10-12 Thread ko5tik
You can  change camera settings from java code.  But first you will
have to query camera object whether is actually supports any flash
modes,
and which flashmodes are supported.


On 10 Okt., 21:53, Howely  wrote:
> Hello everyone,
>
> Here's my problem:
>
> I use WinDev Mobile (http://www.windev.com/windevmobile/index.html) to
> create an android application.
>
> Windev provides a field camera that makes it possible to display the
> camera and can take a picture.
>
> My problem is that the function I use to take a photo does not support
> flash.
>
> I want to change the settings of the camera already active  to put the
> FLASH_MODE_TORCH (not ON, more interesting for our utlisation)
>
> As you can probably understand, the camera is activated by windev, I
> have no direct access to Java code.
>
> Do you know if we can get an active camera to change settings?
>
> thank you

-- 
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: Image processing

2011-09-26 Thread ko5tik
...  damn german keyboard

On 27 Sep., 08:34, ko5tik  wrote:
> On 24 Sep., 12:26, Venki  wrote:
>
> >        I know Image Processing. I don't know anything about android
> > though. I know Java, J2EE so I think I know some basics.I have planned
> > to do some android apps using image processing. Where should I start?
> > Give me some tutorial related to image processing using android. If
> > you have created any apps using image processing in android please
> > tell me about it.
>
> Zou are welcome to your JavaOCR project:
>
> http://sourceforge.net/projects/javaocr
>
> We are focusing primarily on OCR , but OCR also involves some image
> processing - and we could use help
> on this.   There are android demos (not yet complete,  but sampling
> and teaching recognisers work,  corresponding recogniser is not yet
> ready)
>
> An I already  published applications using this 
> library:http://www.pribluda.de/android/charger/http://www.pribluda.de/android/ocrcall/

-- 
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: unmarshalling and premature alarm problems

2011-09-26 Thread ko5tik
And I also wrote small , naive, and lightweight Databinding layer for
JSON based on GSON pull parser:

https://github.com/ko5tik/jsonserializer

It is published on maven central and  is reallz lightweight and fast.

enjoy

On 27 Sep., 02:57, Zsolt Vasvari  wrote:
> You could also turn your object into a JSONString and send that
> around.  That also has the advantage of being applicable outside of
> Android.
>
> On Sep 27, 4:00 am, TreKing  wrote:
>
>
>
>
>
>
>
> >   On Mon, Sep 26, 2011 at 2:40 PM, John Goche 
> > wrote:
>
> > > Google "parcelable ClassNotFoundException" for more information.
>
> > >> What I've done is create a "Bundleable" interface that basically does 
> > >> what
> > >> Parcelable is intended to do. Objects extending this interface can put
> > >> themselves and recreate themselves from a Bundle object, which is itself
> > >> Parcelable so you can send it around just like your object - except with 
> > >> the
> > >> minor fact that the system always knows how to load a Bundle type so you
> > >> don't run into this error.
>
> > > Hmmm... Not sure I follow. Could you please give some more details?
>
> > public interface Bundleable
> > {
> >  public Bundle toBundle();
>
> >  public void fromBundle(Bundle b);
>
> > }
>
> > public class MyClass implements Bundleable
> > {
> >  public Bundle toBundle()
> >  {
> >   Bundle b = new Bundle();
> >   // Fill b with data
> >   return b;
> >  }
>
> >  public void from Bundle(Bundle b)
> >  {
> >   // set properties from data in b
> >  }
>
> > }
>
> > // ...
>
> > MyClass m = new MyClass();
> > Intent i = new Intent();
> > i.putBundleExtra("MyClass", m.toBundle());
>
> > // ... Elsewhere
>
> > Bundle b = intent.getBundleExtra("MyClass");
> > MyClass m = new MyClass(b); // Constructor calls fromBundle(b);
>
> > ---­--
> > 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: Image processing

2011-09-26 Thread ko5tik


On 24 Sep., 12:26, Venki  wrote:
>        I know Image Processing. I don't know anything about android
> though. I know Java, J2EE so I think I know some basics.I have planned
> to do some android apps using image processing. Where should I start?
> Give me some tutorial related to image processing using android. If
> you have created any apps using image processing in android please
> tell me about it.

Zou are welcome to your JavaOCR project:

http://sourceforge.net/projects/javaocr

We are focusing primarily on OCR , but OCR also involves some image
processing - and we could use help
on this.   There are android demos (not yet complete,  but sampling
and teaching recognisers work,  corresponding recogniser is not yet
ready)

An I already  published applications using this library:
http://www.pribluda.de/android/charger/
http://www.pribluda.de/android/ocrcall/

-- 
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: SQLite and JSON or Java object serialization

2011-09-15 Thread ko5tik
I wrote and published small library for JSON data binding:

https://github.com/ko5tik/jsonserializer

I uses GSON pull parsing , based on convetions,  has small footprint
and is good to marshal  / unmarshal  simple java beans
to files.   Release 0.6 is available from maven central.

regartds,

On Sep 15, 10:04 pm, John Goche  wrote:
> Hello,
>
> I have some Java objects which need to be written to a database while the
> user interacts with the application. Such an object has nested objects and I
> was considering implementing a proper SQLite representation of the object.
> However in another application I just convert to JSON and write the whole
> object to the database as a single record. Is there an analogous
> serialization
> mechanism in android so that I may serialize the object and store a single
> sqlite record in the database (the serialized objects)?
>
> Any problems with this approach? What classes do I need to use?
>
> Thanks,
>
> John Goche

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

2011-09-13 Thread ko5tik
This one compiles, is pure java and contains android demo:

http://sourceforge.net/projects/javaocr/

On Sep 12, 5:01 pm, Daniel Drozdzewski 
wrote:
> On 12 September 2011 15:56, Lwe  wrote:
>
> > this is word-ocr
> >http://code.google.com/p/wordsnap-ocr/downloads/list
> > but when i compile it they give me error , i don't know what it is
> > help me
>
> Ok, let me help you... trying to read your mind...  still trying...
> still trying... still trying...
>
> #> transmission time-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


[android-developers] Re: How to convert voice to text

2011-09-06 Thread ko5tik


On Sep 6, 7:56 am, HariRam  wrote:
> Thanks for previous replies,
>
>               Is it possible to convert voice as a text. i searched through
> website, there is more guidance for text to speech but none for voice to
> text. if anyone have idea for how to transmit voice to text pls guide me.

There are libraries which can do speech recognition, but I doubt  thet
there are free and open source libraries
to do this.   SoI would propose that you learn some math,  and start
reading scientifical publications -  there should be something from
IEEE

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


[android-developers] Re: A user of pirated? version seeking support

2011-09-03 Thread ko5tik
Well, now you can strike back.  Strip pirated APK, extract russian
strings etc and
add to your application.  Thos way you get control back and free
translation

On Sep 3, 1:53 am, H  wrote:
> No, proguard only touches the java stuff. The xml files are left exactly as
> they were. Most likely they didn't replace the strings.xml, they simply
> added another version with russian translation in a strings-ru folder. You
> can get the strings out with aapt tool from your sdk install, so that's a
> very easy thing to do.

-- 
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: handle byte memory here

2011-08-30 Thread ko5tik
MMapping it could be a solution.

On Aug 30, 12:13 pm, Mark Murphy  wrote:
> On Tue, Aug 30, 2011 at 6:02 AM, NaveenShrivastva
>
>  wrote:
> > i am trying to retrieve meta data from media file approx 1gb
>
> So? That does not mean you can allocate 1GB of memory.
>
> > File file = null;
> >        FileInputStream fis = null;
> >        byte fullData[] = null;
> >        byte requiredData[] = null;
> >        try{
> >                file = new File(fileName);
> >                fis = new FileInputStream(file);
> >                long  filelen=file.length();
>
> >                 System.out.print("File Length:"+filelen);
>
> >                fullData = new byte[ (int) filelen];
>
> You cannot do that for large files, as you will run out of memory. You
> will need to find your pattern by reading and analyzing smaller chunks
> of the file at a time (e.g., 1K).
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.0
> Available!

-- 
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: Freemium Model with In-App Purchases

2011-08-28 Thread ko5tik
Hi Andy,

You shall definitely visit a lawyer spezialized in this area.  Thanks
to BRAGO
it is not that expensive in germany. Most probably you can ignore this
letter altogether on
formal grounds, but visit lawyer first.
(I witnessed how lawyer dismissed Abmahnung from JBoss with just one
"f**k yourself" letter-
nothing ever came back)

regards,

On Aug 27, 7:49 am, Andy  wrote:
> Hi makjaveli,
>
> i recieved a Lodsys letter 2 Days ago. Same Problem here. I have a button in
> my app linked to the Android Market. It's simply a button with a underlaying
> http Link pointing to the payed app URL. I can't think of a szenario where
> this can be proteced by a patent, because it a common/trivial link
> mechanisam found everywhere in the net , websites, apps, mobile apps,
> whatsoever.
>
> Because I'm only a hobby programmer while my app sold like 250 times ( maybe
> 100 to US) I'm not sure what to do. I read their article on "what are we
> charging"http://www.lodsys.com/1/post/2011/05/q-what-are-you-charging.htmland
> thought it would be a solution to ask for licening an pay them ~ 5$ for the
> past usage.
>
> Has anyone solved his Lodsys claim fast and easy ?

-- 
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: Character recognition in android?

2011-08-15 Thread ko5tik


On Aug 15, 11:01 am, Daniel Drozdzewski 
wrote:
> It is not a trivial task for a computer, let alone a mobile device.
> You are probably looking into neural networks, and there should be
> some libraries in both Java and C.

It's not that hard either (see previous post)

-- 
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: Character recognition in android?

2011-08-15 Thread ko5tik

You are welcome.

Our humble open source project:
http://sourceforge.net/projects/javaocr/
( We are underdocumented there,  but give support through mailing
lists)


One android market application  based on it:
https://market.android.com/details?id=de.pribluda.android.ocrcall&feature=search_result



On Aug 15, 8:57 am,  νιяιη¢нソ   wrote:
> Hello everyone,
> i m in an android project...and what it needs to do is to recognize the text
> content from a picture taken from the phone based cam n convert it to text
> formathow could i do this ..
> .guys please help me out .
> --
> With Regards,
> Virinchy

-- 
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: molasses Debug mode

2011-08-11 Thread ko5tik
Stop debugging.  Test driven development and sensible logging can
eliminate need for
debuging. Usially it is faster to place LOG.wtf() on key position and
redeploy  as stepping through 150
levels of function invocations


On Aug 11, 6:01 am, bob  wrote:
> When I run my Android game on my phone in Debug mode, it is slow as
> molasses.  Is there any way to fix this?

-- 
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: advertising your own apps

2011-08-08 Thread ko5tik
Otherwise you can team up with somebody,  and share house ads.  Actual
admod
house ads allows you to allocate certain amount of impressions per
time slot -
I share 2000 impressions per month per slot with somebody -  Some 500
downloads so far.



On Aug 8, 2:27 pm, elix  wrote:
> In fact my other apps have less traffic but I will give it a try.
> Thanks for reminding them.
>
> On Aug 8, 3:09 pm, Nikolay Elenkov  wrote:
>
>
>
>
>
>
>
> > On Mon, Aug 8, 2011 at 8:55 PM, emre önal  wrote:
> > > Hi,
> > > For one of my apps I want to see how advertising will affect the download
> > > numbers. I was going to try admob but it asks for 50$ at least. For 
> > > startup
> > > I was looking for somethings cheaper, first I want to try and see the
> > > results.
>
> > If you have more than one app, you can use hose ads with AdMob.
> > You can set up your other apps to display ads for the one you want to
> > advertise. It's free, and you can set targets: how many house ads
> > impressions for a specific period, etc. It works better if your other apps
> > already have a lot of users, and those are potential 'customers' for the
> > new app, of course.

-- 
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: I need a CamScanner like example

2011-08-05 Thread ko5tik
We are working on pure java opensource OCR library
(which also includes  image processing - mostly b&w),  and it is used
in android applications:
http://sourceforge.net/projects/javaocr/

You are welcome to give it a spin and ask questions on your mailing
lists

On Aug 4, 2:26 pm, ricardocunha  wrote:
> Thre is a lot of applications for scam papper, like Genius Scan,
> CamScanner and others. I need a litle example to do image processing.
> There is a similiar open source, or Any one can send a tutorial about
> this? I´m interest on a image adjust.

-- 
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 use Camera setPreviewCallback listener?

2011-08-03 Thread ko5tik
Did you started preview somewhere via:
mCamera.startPreview()

On Jul 26, 9:01 pm, TurboMan  wrote:
> Hi,
>
> I have an application which uses Camera preview feature.
> I can see the camera preview without any problem.
> But, OOH I need to capture preview frame.
> I've googled and find out the setPreviewCallback.
> But my tablet PC doesn't callback this function as follows.
> I am not sure if I am doing something wrong.
> Any help is appreciated.
>
> In SurfaceHolder.Callback class in surfaceCreated function I have the
> following code.
> [Code]
>         mCamera = Camera.open();
>         try {
>           mCamera.setPreviewCallback(new PreviewCallback() {
>             @Override
>             public void onPreviewFrame(byte[] data, Camera arg1) {
>                 FileOutputStream outStream = null;
>                 try {
>                     outStream = new FileOutputStream(String.format(
>                             "/sdcard/%d.jpg", System.currentTimeMillis()));
>                     outStream.write(data);
>                     outStream.close();
>                     Log.d(TAG, "onPreviewFrame - wrote bytes: "
>                             + data.length);
>                 } catch (FileNotFoundException e) {
>                     e.printStackTrace();
>                 } catch (IOException e) {
>                     e.printStackTrace();
>                 } finally {
>                 }
>                 Preview.this.invalidate();                
>             }
>            });
>            mCamera.setPreviewDisplay(holder);
>         } catch (IOException exception) {
>         //} finally {
>             mCamera.release();
>             mCamera = null;
>         }
>  [/Code]

-- 
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: ocr implementation with android

2011-08-03 Thread ko5tik
We have open source solution which is pure java and used in android
applications:

http://sourceforge.net/projects/javaocr/

One published example:

https://market.android.com/details?id=de.pribluda.android.ocrcall

Project includes android demo and is actively developed -
contributions welcome


On Jul 29, 11:34 am, barun  wrote:
>  I want to implement the optical  character recognition  program  for
> Android  phone. if any body knows something please help me. Thanks in
> Advance.
>                                                    Barun Kumar Nirala

-- 
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: Oauth and google apis

2011-05-05 Thread ko5tik


On May 5, 9:25 pm, patjackson52  wrote:
> I'm working on using google docs list api and spreadsheet api in
> android.  I'm having trouble getting Oauth to work and there does not
> appear to be any libraries or sample code on the web.  The only
> example I have found is a picasa api example on the google data api
> site and I wad unable to get that to work.  Anybody k ow of examples
> or have experience with this?

Try this:

https://github.com/kaeppler/signpost

This works reportedly against  twitter and comes from Qype guys

-- 
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: etting SIGNAL 11 error

2011-04-25 Thread ko5tik
SIGNAL 11 means that something went wrong in native code,  and proces
was killed
because of segmentation violation - this comes from outside of davlik
- that's why you do not have stack
trace.
The question is:  what did you try to do  before this crash?

-- 
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: high scores

2011-04-18 Thread ko5tik


On Apr 18, 9:57 pm, bob  wrote:
> What is the smartest way to save the top ten high scores in an Android
> game?

For top ten Shared preferences may be enough.   I store  200 local
results
and 1000 global results pulled from server in JSON files and marshall
them to java objects via:

https://github.com/ko5tik/jsonserializer

If you like to watch it in action:
https://market.android.com/details?id=de.pribluda.games.android.lines&feature=search_result

( allow at least 30 minutes to synchronize with highscore server )

-- 
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: java.lang.NoSuchMethodException + Jackson Parser

2011-04-07 Thread ko5tik
I think this issue is not related to android, and is best asked on
jackson mailing lists.
It says that jackson has tried to deserealize, guessed some (setter)
method name and was bombed
because it was unavailable.

This may happen is JSON contains some fiels which was not there
before,  of of different
type.


PS: developers there are responsive

On Apr 6, 4:21 pm, Manish Garg  wrote:
> Hi All,
>
> I am using jackson parser to parse my response. I am getting
> java.lang.NoSuchMethodException exception. I am using
>
>                         ObjectMapper mapper = new ObjectMapper();
>                         output = mapper.readValue(response, classType);
>
> code. I want to know where could be the problem, in the class type or
> some wrong function of the jackson parser has been used.
>
> When we face this issue?
>
> Regards,
> Manish

-- 
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: Best Ads for Android Apps

2011-04-03 Thread ko5tik
Your admob account will be migrated to adsense in near future anyway.
It starts by displaying adsense ads through admob widgets.

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


[android-developers] Re: AdMod in a Surfaceview

2011-03-30 Thread ko5tik
AdMob SDK 4.0.2 ( well, now it's google admob SDK )  was really buggy,
so I just downgraded back to older
admob version.   Now there is 4.0.4, which claims to have fixed bugs
arising from accessing widgets by wrong thread

On Mar 27, 2:55 am, Kevina  wrote:
> Hi all,
>
> I have an activity, say "MainActivity" which uses a SurfaceView called
> "GameView" as layout.
> The activity contains:
> SetContentView(GameView);
>
> That all works great, but now I want to integrate AdMod which leads to
> lots of crashes. I've been trying to fix it in a lot of different ways
> but after 7 hours it's still not working. What I basically want is my
> AdMod view on the bottom of my screen while being able to play my
> game. (Like angry birds but then different orientation).
>
> If you'd like more information, please ask. I'll take a look tomorrow,
> first some sleep :)

-- 
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: reflection result cache not available?

2011-03-14 Thread ko5tik


On Mar 12, 10:01 pm, Dianne Hackborn  wrote:
> You'll need to cache this stuff yourself.  I really recommend avoiding
> reflection though for any performance critical things -- even if there is no
> time required for the class/methods lookup, you will still tend to spam a
> lot of temporary objects.  If you are going to use reflection, plan to spend
> a good amount of time optimizing that code to get it to perform well.

As I develop convention-based databinding, reflection is really
necessary.
Can we hope that reflection caching will be implemented in future
versions of davlik?

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


[android-developers] reflection result cache not available?

2011-03-12 Thread ko5tik
Hi all,

Doing profiling I discovered that Class.getMethods() is taking a lot
of time, and results are not cached internally - from J2EE world I'm
used that such caching is available, and must be switched off
explicitly.  Is there reason for this? (I'm sure there is a good one,
but can not find
it) What is best strategy to overcome this problem?
As I develop lightweight JSON databinding framework,  I'm doing a lot
of reflection. My current solution is to cache acquired methods array
in the map, but maybe ther eis better solution I overlook?

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


[android-developers] Re: How To Reduce Camera Resolution?

2011-03-08 Thread ko5tik
It is not always possible to set up resolution even if camera offers
it.
Some implementations refuse settings and behave in unexpected way.
( But this is mostly for higher resoultions )

On Mar 7, 10:56 pm, gjs  wrote:
> Hi,
>
> Query the picture sizes the camera 
> supports.http://developer.android.com/reference/android/hardware/Camera.Parame...().
> Then set accordingly. If you wish to retain same size but reduce
> 'resolution' save resulting JPEG with less quailty.
>
> Regards
>
> On Mar 4, 12:20 am, Sze Ying  wrote:
>
> > Does anyone knows how to reduce camera resolution  programmatically ?
> > If it is possible, does anyone knows whether is it possible to set a
> > lower resolution than what the camera offers?
> > 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


[android-developers] Re: Why was “Avoid Enums Where You Only Need Ints” removed from Android's performance tips?

2011-02-28 Thread ko5tik
Meanwhole there is JIT Compiler for dawlik - so there is a lot of
runtime optimisations and inlining
going under the carpet.  I would say, that there is no longer
performance penalty justifying ugly code

On Feb 28, 8:29 pm, thierryd  wrote:
> The section "Avoid Enums Where You Only Need Ints" was removed from
> the official developper documentation (http://developer.android.com/
> guide/practices/design/performance.html#avoid_enums)
>
> Why? Was there a change in the Android VM that made the tip obsolete?

-- 
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] Beta tester wanted for OCR application

2011-02-15 Thread ko5tik
Hi all,

My Small OCR application is ready to be beta tested.   For now it can
(hopefully correctly) recognize
and dial phone numbers in dark letters against light backgrounds.

It utulises open source OCR library:

http://sourceforge.net/projects/javaocr/

Signed APK can be downloaded from:

http://www.pribluda.de/android/ocrcall/

I'm interested in reports from various devices and android versions.
Please include ADB logs
filtered by "ocrcall" in problem reports

thaks,

-- 
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: Careful, Dell Streak 7 ignores manifest setting for Orientation

2011-02-14 Thread ko5tik


On Feb 14, 6:09 am, Dianne Hackborn  wrote:
> This isn't specific to the dell streak.  In the standard platform, the lock
> screen forces the orientation to portrait, so when going to sleep if the
> screen is landscape then it will get changed to portrait.  As always, an app
> should handle being destroyed and recreated.

My application (now in beta) does this,  bit it is being recreated
with portrait
mode -  so all the code recomputing screen coordinates in camera
coordinates
goes  haywire.  Not sure how to tackle this...

(This happens on motorola defy)

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


[android-developers] Re: How to detect Face and Smile & Face matching in Android?

2011-01-22 Thread ko5tik
This certainly goes into domain of image processing and shape
recognition,
and we are working on java image processing and recognition library
here:

http://sourceforge.net/projects/javaocr/


On Jan 21, 5:02 pm, obie  wrote:
> hey
>
> detecting smiles and rectangles is very non-trivial but there is at
> least one c library to do that out there that i've seen
>
> On Jan 21, 6:12 am, Ankit Nigam  wrote:
>
> > Hello Friends,
>
> > I want to know following things is possible on Android or Not?
>
> > 1. Pick a photo and detects faces and show rectangle, and detect smile
> > of each face and show smile percentage of each.
> > 2. Pick a photo from photo library and show faces. if you click faces,
> > it search all photo library and show list of possible same person.
>
> > Please help me out it's urgent.
>
> > Thanks
> > Ankit2502

-- 
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: AdSense for Android: is it available in Europe?

2011-01-20 Thread ko5tik


On Jan 20, 6:00 am, Nightwolf  wrote:
> adMob allows using adSense as ads source.
> In case of adSense (without adMob) you have to register account and
> mention that you're going to show ads in mobile application.

Apparently not for me.   No way to activate this from control center...

-- 
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] Anybody seen comfortta.com?

2011-01-19 Thread ko5tik
It seems that this is new app thief around here.   They just hacked my
highscore lists to place URL on the top (not very scillfull, but it
will require intervention to remove  entries)

-- 
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: AdSense for Android: is it available in Europe?

2011-01-18 Thread ko5tik
It is available but not for everybody - you have to meet certain
criteria
(amount of traffic) to be accepted

On Jan 18, 4:07 pm, Mik  wrote:
> Dear all,
>
> I am missing something here:
> when I run apps in my device I see many "ads by google".
>
> I am using Admob so far but I wish to try something else.
> I've tried to use AdSense but I didn't manage to find a place from
> where to download the adsense JAR file.
> Isn't adSense available in Europe?
>
> Thanks,
> Mik

-- 
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: Anyone know how to calculate speed WITHOUT GPS?

2011-01-16 Thread ko5tik


On Jan 12, 7:16 am, keyboardr  wrote:
> You could also try integrating the readings from the accelerometers,
> but I suspect this would give you even worse accuracy and you'd have
> to have some way to calibrate the zero point.

INS also requires gyroscopes.  But quality of those sensors lies far
below ones utilised
in  ICBMs in 60s

-- 
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: Focusing a video camera

2011-01-11 Thread ko5tik


On Jan 10, 9:21 pm, elik  wrote:
> I developed a small video camera application. It is based on code from
> the android sources.
> It all works fine except focus. First, I was surprised to see that the
> sample video camera code don't have autofocus (or focus).
> I understand I need to call camera.autofocus, but I don't really know
> where is the right place to put the call it. Anyone ever succeeded in
> autofocusing a video camera on android?


Autofocus does work.   In my OCR apps I trigger autofocus attempt by
taping on the display.

Then you can display status from autofocus callback


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


[android-developers] Re: Amazon to Policy Android Market Place

2011-01-07 Thread ko5tik


>  wrote:

> I don't, because for some bizarre reason they are making it US-only!
> What on earth are they thinking?

Selling all over the world is mayor PITA - all the different tax
regulations, payment providers...
Not to speak of US export restrictions - you sell some  funny app to
iran providing picture entertainment to
males and go straight in jail for aiding international terrorism.

So they just start to play on safe side

-- 
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: capture frames from camera

2011-01-07 Thread ko5tik
You could supply socket to media recorder, and it will
write live data into it - so you can capture data before it
saved.  ( this will be already compressed though )


On Jan 6, 11:11 pm, android-ivs  wrote:
> I am writing an Android app for video processing. As a first step, I
> need to capture frames in real time.I have tried OnPreviewFrame
> callback. It gives me 640x480 at around 12 fps. Is there any other
> faster way for frame capturing (e.g. using NDK)?
>
> 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


[android-developers] Re: how to convert colour image to black and white

2011-01-06 Thread ko5tik
If this a preview image,  chances are that  it has luminance first in
data array.
Check memory layout of format supplied by camera.



On Jan 5, 10:02 am, Zsolt Vasvari  wrote:
> What have you tried so far?
>
> On Jan 5, 3:45 pm, sudha  wrote:
>
> > Hello all,
>
> > I have a picture taken from android device camera, I have to convert
> > the colour image to black n white.
> > how can I do this?
>
> > Thanks
> > Sudha

-- 
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: Cross Word Game

2010-12-28 Thread ko5tik
Then off the shelf components shall be sufficient

On Dec 28, 12:07 pm, Diego Nunes  wrote:
> Thanks for the tips.
>
> The game will be a simple board where the user clicks on a table and
> add a letter. The trays are also fixed.
>
> Att,
>
> On 27 dez, 23:54, Robert Green  wrote:
>
> > Important decisions to make are:
>
> > 1)  Is this just for Android or are you targeting more systems?
> > 2)  Do you need a performance component, like a real time puzzle
> > solver or random puzzle game creator?
> > 3)  Do you want fancy graphics or is something really basic going to
> > work?
>
> > If #1 = Only Android and #2 = No and #3 = No then consider going with
> > this solution:
>
> > A)  All Java
> > B)  Mostly off-the-shelf Android UI Components
> > C)  Custom view for your gameboard (This is hard to escape from and is
> > often easier than trying to build it all using android layouts and
> > widgets)
> > C1)  Just use Canvas for your 2D lib and all will be easy and well.
>
> > Cheers
>
> > On Dec 27, 1:11 pm, ko5tik  wrote:
>
> > > On Dec 27, 6:35 pm, "Diego N."  wrote:
>
> > > > I would like to develop a crossword puzzle game but never worked with 
> > > > game
> > > > development. He wanted to know where to start.
>
> > > > I will use Java 2D?
>
> > > I would recommend to stick to standard android widgets if you do not
> > > need realtime
> > > graphics (which is the case with crossword puzzle game) - but full UI
> > > power including layout and
> > > animations.
>
> > > If you need realtime frame rendering your choice is SurfaceView and
> > > drawing into bitmaps with android
> > > toolkit  - or maybe even with GL if hardware acceleration if available
>
> > > 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


[android-developers] Re: Cross Word Game

2010-12-27 Thread ko5tik


On Dec 27, 6:35 pm, "Diego N."  wrote:
> I would like to develop a crossword puzzle game but never worked with game
> development. He wanted to know where to start.
>
> I will use Java 2D?

I would recommend to stick to standard android widgets if you do not
need realtime
graphics (which is the case with crossword puzzle game) - but full UI
power including layout and
animations.

If you need realtime frame rendering your choice is SurfaceView and
drawing into bitmaps with android
toolkit  - or maybe even with GL if hardware acceleration if available

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


[android-developers] Re: Which JSON Parser is better

2010-12-26 Thread ko5tik


On Dec 26, 7:18 pm, Jonathan Foley  wrote:
> Are you aware of the jackson JSON library, its very fast and has nice
> data binding APIs.

Yes, I'm aware of it - but it comes with full (although small)  can of
worms and dependencies attached.
Right now my games are 130KB and including just parser would blow  it
- and then there is data binding
layer.  (well, other parsers are much worse)

-- 
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: Which JSON Parser is better

2010-12-26 Thread ko5tik


On Dec 25, 11:51 pm, DanH  wrote:
> Until you get up to **at least** 10K of JSON (maybe 1M, depending on
> the overall app size) there's no point in worrying about pull
> parsing.  Reading and parsing the entire JSON file at once will
> increase temporarily the amount of heap used, but it's hardly a blip
> in most environments.

In my game I pull up to 1000 highscore entries from  server (well,not
always
but certainly on first synchronization) and load them from internal
storage -
there is definitely need in pull parsing. I also utilize my own small
data binding
library, and will add pull parsing to it when i get some time.
Everybody is welcome to join the
effort:
https://github.com/ko5tik/jsonserializer


-- 
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: Which JSON Parser is better

2010-12-25 Thread ko5tik
Built in JSON is  adequate, but as every DOM-Kind of parser pretty
memory consuming.
Pull-Parser is really necessary.

-- 
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: Inputs from the Android Camera

2010-12-22 Thread ko5tik
You can put whatever you like as overlay over camera surface view
(except another surface view )

See our android sample in javaocr project:
http://sourceforge.net/projects/javaocr/

On Dec 22, 2:20 pm, Atik  wrote:
> hi,
> so i have downloaded the source of camera app of android.
>
> and finally i need app only it should perform the zoom in out and
> brightness bar as implemented in the camera.it should not capture the
> image..
>
> can i do the same.. i have done lot of changes in the code and i m
> able to do it ..but else all functions are still there in the
> app ..like face track,smile mode etc.
>
> pls let me know...thanks
>
> On Dec 22, 6:04 pm, Marcin Orlowski  wrote:
>
> > On 22 December 2010 04:02, Vikram  wrote:
>
> > > We want to get some simple information from the user (in the form of
> > > checkboxes) for a few seconds before he starts using his camera. Can
> > > we somehow present our checkbox list over his camera app?
>
> > > I understand that the Camera is an app in itself and that we cannot
> > > make changes or add our stuff on its UI, but is there something that I
> > > am missing somewhere?
>
> > Camera app and camera h/w are two different things. You may want
> > to write your own app that uses camera hardware and add your
> > own UI elements to it. You can't overlay existing app.

-- 
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: Extract a bit code from a image

2010-12-19 Thread ko5tik
Convert to bit image bz applying thresgholding and then just
scan  along the lines and cound changes from 0 to 1

We are working on image processing library  / OCR here:

http://sourceforge.net/projects/javaocr/

It may be usefull for you and works on android

On Dec 18, 3:29 pm, denper  wrote:
> Hi, I'm working in a project to reconize a bit code from a image like
> this, where black rectangle rappresents 0 bit, and white (white space,
> not visible) 1 bit.
>
> Somebody have any idea to process the image in order to extract this
> informations? Thanks in avance. Denis.

-- 
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: Computer Vision / Image Processing

2010-12-16 Thread ko5tik
Hi Myles,

We are working on OCR library suitable to use in android ( pure java,
no external dependencies )  - and such libraries include code for
image processing.

We also have android demo  featuring camera snapshots and performing
OCR on them
Help and ideas are welcome:

http://sourceforge.net/projects/javaocr/

( preferably over mailing list )


regards,

On Dec 16, 12:56 am, mhathcock  wrote:
> Android Developers:
>
> I am looking to develop native Android libraries for computer vision
> and image processing. I am an experienced C++ developer, and have a
> great deal of experience with OpenCV.
>
> What I'm looking for:
>
> Information about how Android handles cameras. I am well aware of the
> basics that are available in the android references (getting a camera
> object, starting a preview, etc) but I need further information about
> the pixel information can be obtained. Results on the internet are
> shoddy at best ( most of them are for older versions of Android ) but
> I've found so far that the camera uses YUV colorspace, and thats
> pretty much it.
>
> Pointing me in the right direction would be awesome, or links/articles/
> references/examples are fantastic as well.
>
> If anyone would like to assist in development, I can start a google
> code project. (Yes, i've seen that there is at least 1, called
> androidcv, already. There is no activity, so we can request owner
> change from the owner or start another one).
>
> Regards,
>
> Myles

-- 
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: What is the best way to send data from Android Application to a Remote MySQL Database?

2010-11-29 Thread ko5tik


On Nov 29, 1:34 pm, priya naral  wrote:
> What is the best way to send data from Android Application to a Remote
> MySQL Database?

Some kind of REST service.

-- 
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 for OCR library?

2010-11-23 Thread ko5tik
There was direct download link with barcode -  but it crashed
on attempt to install on 2.1  I got good recognition results with
invariant moments,
and they are easy to compute (and pretty straightforward), but
interpretation if results and matching
to actual characters  requires additional heuristics (not obvious)
And in any case, I favor pure java solution (looked into tessaract
sources and they are not fun to
work with)

So I'm working on it.

regards,

On Nov 22, 4:40 pm, JP  wrote:
> See if you can find the Mezzonfanti app somewhere. I've tried it out
> last year, it ran just fine.
> Unless unpublished, it should still be in the Market.
> I experimented with Tessaract OCR on a client project some three
> months ago, but they put a stop on it before I could finish it. At any
> rate, getting this to work is quite an advanced exercise.
>
> On Nov 22, 4:14 am, Ray da Costa  wrote:
>
> > Regards The cool, but runs on android? Have you ever done anything to Andoid
> > this api?
>
> > 2010/11/21 JP 
>
> > > Assembly required.
>
> > > On Nov 21, 4:34 am, ko5tik  wrote:
> > > > On Nov 20, 8:36 pm, JP  wrote:
>
> > > > > The Tessaract OCR engine:http://code.google.com/p/tesseract-ocr/
> > > > > has been integrated in Android. Here's a writeup by a team that's
> > > > > gotten it to work:
> > >http://www.itwizard.ro/mezzofanti-augmented-reality-through-text-reco...
>
> > > > Could not install it on 2.1 - HTC Hero...
>
> > > --
> > > 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
>
> > --
> > Ray da Costa
> > "The best way to predict the future is to invent it."
> > Alan Kay

-- 
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 for OCR library?

2010-11-21 Thread ko5tik


On Nov 20, 8:36 pm, JP  wrote:
> The Tessaract OCR engine:http://code.google.com/p/tesseract-ocr/
> has been integrated in Android. Here's a writeup by a team that's
> gotten it to 
> work:http://www.itwizard.ro/mezzofanti-augmented-reality-through-text-reco...

Could not install it on 2.1 - HTC Hero...

-- 
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 for OCR library?

2010-11-20 Thread ko5tik


On Nov 19, 10:04 am, Ray da Costa  wrote:
> Please inform anyone know if there is an android for OCR library?

We are working on it here:

http://sf.net/projects/javaocr/

Core with basic image processing stuff is ready, invariant moments
plugin
also works.  Help is welcome.  I'm about to put together small android
demo this weekend
(in this project)

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


[android-developers] Re: Best tool to visualize an Android Project ?

2010-11-15 Thread ko5tik


On Nov 15, 7:07 am, Saurabh  wrote:
> Hello All;
> Can anyone suggest me a good tool to quickly understand a reasonably
> big Android project: the class hierarchies, relations and methods via
> some visual means? Is some kind of plugin available that we can point
> it to the android project and it would create a package diagram?
> I know a bit about "yDoc" & "ObjectAid"

Best java IDE around is IntellliJ Idea - and it is not too expensive.
It got plugins you are looking for,
and good android support

-- 
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: Camera Callback onPreviewFrame

2010-11-10 Thread ko5tik
You should not rely on frame rate or exact timing of preview frames.
AFAIK they are not guaranted.

regards,

On Nov 10, 11:52 am, Maurizio Mento  wrote:
> Hi,
> I am working on an application in Android and I have to manipulate the
> data coming from the preview.
>
> I read that the default frame rate is 15fps.
> I measured the time from one call of the onPreviewFrame function and
> the next one and I noticed that I got different times depending on the
> size of the preview (at the moment no other operations are done in
> this function).
> How can it be possible?
> I thought it would be called at any frame so 15 times in a second
> (approximately every 66ms) independently of the previewFrameSize.
>
> Can someone help me please?
> Thank you!
> Maurizio

-- 
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: Draw on SurfaceView(VideoPlayer) Canvas

2010-11-05 Thread ko5tik
Usually this is done  via transparent views overlaid over your surface
And remember  - you can not overlapp 2 surfaces.

On Nov 4, 7:20 am, sapegas  wrote:
> I'm trying to draw some primitives on SurfaceView Canvas, but I can't
> do this.
> I need to implement a VideoPlayer(SurfaceView) with ability to draw on
> it(and save user's drawing in future).
> Can I do this anyhow? Is it possible on Android?
> When I starting the activity, I can hear the voice from the video
> player and I can draw on Canvas, but could not combine it together!
> There is my code (only drawing on player):
>
> public class CanvasDrawing extends  Activity   {
>
>         private ArrayList _graphics = new ArrayList();
>         private Paint mPaint;
>         private MediaPlayer mp;
>
>         @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         //setContentView(R.layout.main);
>         setContentView(new DrawingPanel(this));
>         Log.d("mytag", "1");
>         mPaint = new Paint();
>         mPaint.setDither(true);
>         mPaint.setAntiAlias(true);
>         mPaint.setColor(0xFF00);
>         mPaint.setStyle(Paint.Style.STROKE);
>         mPaint.setStrokeJoin(Paint.Join.ROUND);
>         mPaint.setStrokeCap(Paint.Cap.ROUND);
>         mPaint.setStrokeWidth(3);
>         Log.d("mytag", "2");
>         }
>
>         class DrawingPanel extends SurfaceView implements
> SurfaceHolder.Callback {
>                 private DrawingThread _thread;
>                 private Path path;
>
>                 public DrawingPanel(Context context) {
>                         super(context);
>             getHolder().addCallback(this);
>             //
>             getHolder().setType(SurfaceHolder.SURFACE_TYPE_NORMAL);
>             getHolder().setFixedSize(100, 100);
>             //
>             Log.d("mytag", "3");
>             _thread = new DrawingThread(getHolder(), this);
>             Log.d("mytag", "4");
>                 }
>
>                 public boolean onTouchEvent(MotionEvent event) {
>             synchronized (_thread.getSurfaceHolder()) {
>                 if(event.getAction() == MotionEvent.ACTION_DOWN){
>                         path = new Path();
>                         path.moveTo(event.getX(), event.getY());
>                         path.lineTo(event.getX(), event.getY());
>                 }else if(event.getAction() == MotionEvent.ACTION_MOVE){
>                         path.lineTo(event.getX(), event.getY());
>                 }else if(event.getAction() == MotionEvent.ACTION_UP){
>                         path.lineTo(event.getX(), event.getY());
>                         _graphics.add(path);
>                 }
>
>                 return true;
>             }
>                 }
>
>                 @Override
>         public void onDraw(Canvas canvas) {
>                         for (Path path : _graphics) {
>                                 //canvas.drawPoint(graphic.x, graphic.y, 
> mPaint);
>                                 canvas.drawPath(path, mPaint);
>                         }
>                 }
>
>                 public void surfaceChanged(SurfaceHolder holder, int format, 
> int
> width,
>                                                                    int 
> height) {
>                         // TODO Auto-generated method stub
>
>                 }
>
>                 public void surfaceCreated(SurfaceHolder holder) {
>                         // TODO Auto-generated method stub
>             mp = new MediaPlayer();
>             mp.setDisplay(holder);
>             try {
>                                 mp.setDataSource("/data/test.3gp");
>                                 mp.prepare();
>                                 mp.start();
>                                 Log.d("mytag", "5");
>                         } catch (IllegalArgumentException e) {
>                                 // TODO Auto-generated catch block
>                                 e.printStackTrace();
>                         } catch (IllegalStateException e) {
>                                 // TODO Auto-generated catch block
>                                 e.printStackTrace();
>                         } catch (IOException e) {
>                                 // TODO Auto-generated catch block
>                                 e.printStackTrace();
>                         }
>                         //
>                         _thread.setRunning(true);
>             _thread.start();
>             Log.d("mytag", "6");
>         }
>
>                 public void surfaceDestroyed(SurfaceHolder holder) {
>                         // TODO Auto-generated method stub
>                         mp.release();
>
>                         boolean retry = true;
>             _thread.setRunning(false);
>             while (retry) {
>                 try {
>                     _thread.join();
>                     retry = false;
>                 } catch (

[android-developers] Re: Beta Testers needed for fast-paced retro game

2010-10-16 Thread ko5tik
konstantin.pribluda[at]gmail.com

I have HTC hero with 2.1

regards,

On Oct 15, 6:19 pm, Nacho Pintos  wrote:
> Hi!
>
> I'm  bedroom developer and I'm finishing my first android game, Flee,
> which (hopefully) will be released in the coming weeks. I'm a bit
> scared to release it into the wild, cause I have only tested it in two
> different phone models (Samsung Spica, Motorola Milestone), and
> wouldn't like to receive a lot bad rating because of an elusive bug in
> the most popular phone.
>
> The game requires Android 1.6+, and a 480x320 screen or bigger. Small
> screens are not supported.
>
> Would anyone be willing to play it for ten minutes, and try to crash
> it in every conceivable way?
>
> For those very, very good samaritans among you, I have created a small
> survey that can be filled in 20 minutes.
>
> In exchange I offer myself to beta-test your apps/games, and if I find
> a proper way (because the market does not allow gifts right now), I'll
> give a free copy of the paid game to the testers.
>
> Reply in this forum or send me an email and I'll send you back the apk
> and the link to the survey.
>
> Thanks so 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


[android-developers] Re: Using BroadcastReceiver in JUnit tests

2010-10-16 Thread ko5tik
If you like to test functionality of your broadcast receiver , you can
use mock frameworks
( I personally find jmockit most powerfull, but not easy to
understand)



On Oct 15, 10:10 am, viktor  wrote:
> Any proposition how to test async calls?
>
> On 14 öÏ×, 15:23, viktor  wrote:
>
> > Hi everyone,
>
> > Is it possible to receive notification from activities in a test case?
>
> > I want to test async precesses with broadcast messages. If process
> > done I šsend broadcast and catch it in a test case, but anything
> > doesn't happen.
>
> > I declared receiver in manifest.
>
> > This is my example: MainApp
> > šIntent intent = new Intent();
> > šintent.putExtra("test_message", "main data received");
> > šintent.setAction("test_message");
> > šsendBroadcast(intent);
>
> > TestReceiver:
>
> > public class TestBroadcastReceiver extends šBroadcastReceiver{
>
> > š š š š @Override
> > š š š š public void onReceive(Context arg0, Intent intent) {
> > š š š š š š š š Log.d("TestBroadcastReceiver", "broadcast received");
> > š š š š š š š š if(intent.getStringExtra("test_message") != null){
> > š š š š š š š š š š š š String testMessage = 
> > intent.getStringExtra("test_message");
> > š š š š š š š š š š š š Log.d("TestBroadcastReceiver", "test message: 
> > "+testMessage);
> > š š š š š š š š }
>
> > š š š š }
>
> > }

-- 
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: Stolen app on market

2010-10-12 Thread ko5tik
Where ist he located physically?  It may be criminal offence in his
home jurisdiction,
and surely a case for lawsuit.  Maybe he is accessible this way

-- 
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 send data to server while recording

2010-10-09 Thread ko5tik
Here is my inspiration source:

http://www.mattakis.com/blog/kisg/20090708/broadcasting-video-with-android-without-writing-to-the-file-system

-- 
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: Any proposed changes to the Android Market?

2010-10-08 Thread ko5tik
I think "squelch" button for app / developer  in your market client
would be sufficient - you just stop seeing it.  This data could be
collected
by market and analyzed.

BTW, is there some URL where one can see actual ranking  of
applications?

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


[android-developers] Re: how to send data to server while recording

2010-10-08 Thread ko5tik


On Oct 8, 2:44 am, cindy  wrote:
> why we need base64 encoding? Is that AMR ?

Because HTTP is text based protocol  - your server will barf on binary
data
(mine does ;) )

-- 
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: appbucket: all apps for $9.99 per year, are we just going to watch?

2010-09-22 Thread ko5tik
so basically he is admitting that he is not stealing
himself,  but dealing stolen goods -  I seen on TV that
prosecutors in USA are really eager if they see some crime
as they are elected ( did they lied to me?)

Is it possible to identify them? Is it possible to locate them?
If that's not ctiminal case - what is?


-- 
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 much money do you make?

2010-09-21 Thread ko5tik


On Sep 21, 10:35 pm, Indicator Veritatis  wrote:

> in Yeltsin's Russia, for example, it was routine
> to keep one set of books for real and the other to show the taxman.
> You can figure out which showed the higher profits.

It's not quite true ;)  There were 3 books - for yourself, for your
mafia taxes
( "roof" ) and for taxes , where  first 2 existed virtually.   And it
still the same ;)

-- 
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: Service, AsyncTask, or both?

2010-09-21 Thread ko5tik
I do all interchange with my high-score servers ( pretty same use case
as yours,
also with sent flag ;) )  in broadcast receiver - I request regular
updates  via non-wakeup
alarm ( 30 minutes ).   It works fine.

Service is needed when you have to do longer piece of work and stay
alive.

-- 
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 send data to server while recording

2010-09-21 Thread ko5tik


On Sep 21, 8:13 am, cindy  wrote:
> Hi all,
>
> My application needs to record audio and send audio data to server
> while recording. If User stops audio input, we will stop sending.

Give media recorder file descriptor of server socket instead a real
file.

-- 
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: Is anyone's active install % dropping like a rock lately?

2010-09-20 Thread ko5tik
My downloads stagnate and go sometimes back one count ;)
I think this is a policy to keep my app from going over 1
( it was at 9975,  dropped to 8700 one day,  climbed back to 9975
and stagnates there despite  known downloads throigh recommender
function)


On Aug 26, 4:47 pm, Fabrizio Giudici 
wrote:
> I've spotted this thread only now. It's happening to me too - in a
> week it dropped from a _steady_ 45% (held since several weeks) to 36%,
> with a single new active install out of regularly increasing new
> downloads. I even posted that on my blog - a commenter pointed out
> that when people upgrade an app the download counter might increase,
> while the active install doesn't (actually, I've released two updates
> in this month). Can you confirm?

-- 
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: appbucket: all apps for $9.99 per year, are we just going to watch?

2010-09-20 Thread ko5tik


On Sep 20, 6:43 am, Jason  wrote:
> Unfortunately it's not just paying and refunding that is the issue
> with these guys.
>
> From the twitter account of appbucket:
>
> "haha...They finally found the crack we have been using for some of
> our appsTook them long enough. We have a few more up our
> sleeve..."
>
> They are clearly actively cracking protection systems incorporated
> into apps.  Of course Google's protection system is a deterrent,
> however it's never going to be a silver bullet.

Well, in this case it's a kind of  criminal offense.  Which legal
jurisdiction they operate
from? If you can locate them,  and you are also resident of t he same
country you
can file criminal complaint throug state prosecutors.  As such
offenses are not capital ones,
prosecution will not start without formal complaint.  You may also try
civil action - it worked
pretty good for me,  although I'm living in germany.

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


[android-developers] Re: Another developer has published an app using the EXACT same name as mine

2010-09-15 Thread ko5tik
Quick search in european trademark register shows me that there are
606 hits on "ICE" -
so probably you have no way to trademark it.

On Sep 14, 9:02 pm, Flying Coder  wrote:
> Hi Dan,
>     Thanks for the feedback.  The app is "ICE: In Case of Emergency"
> and has been published on the Market since Feb 09 (at the time, it was
> the only ICE app for Android).  Its currently one of the top-rated
> paid apps in the Health category. Its such a common phrase, that I
> wasn't expecting to be able to Trademark it, but I did expect the
> Market to require competitors to use names that were at least a LITTLE
> different.

-- 
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 automatically restart widget update service after it is killed?

2010-09-09 Thread ko5tik
I use scheduled alarm, which apparently can not be killed
and enable them after boot - it seems that widget gets onOnabled()
on first display.

I was unable to prove this through documentation through, and it seems
that scheduled alarms
do not survive package reinstall.

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


[android-developers] Re: Need project idea

2010-09-05 Thread ko5tik


On Sep 5, 8:11 pm, sws-vinpa  wrote:
> Serial ports would be valuable for this sort of application.  ;-)

I heard of bluetooth dongles which can be plugged to CAN - even more
valuable

-- 
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 use D-Pad control in Android

2010-09-05 Thread ko5tik


On Sep 3, 3:34 pm, Dhrumil Shah  wrote:
> Hey Avigadl,
>
> If I change the values of the each direction like DIRECTION_TOP = 0,
> DIRECTION_DOWN = 1, DIRECTION_RIGHT = 2, DIRECTION_LEFT = 3; it is working?
>
> I changed that but unfortunetly its not working.
> Any other Solution?

Then show us a code which is animates your ball

-- 
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 you change permissions when you update an app?

2010-08-31 Thread ko5tik


On Aug 29, 12:19 am, chromedude  wrote:
> I ask because I have an app that I want to launch with permissions
> that apply to it at that stage but I am planning to release an update
> that will need more permissions, but I do not want users to not
> install the original app because it does not make sense to have a
> certain permission for it.
It is possible.   Over the time I first added BOOT_COMPLETE to my
game,  and then
removed it afterwards  after evaluating that my highscore system does
not really needed it.

Updates were possible.

-- 
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: String being truncated when its long

2010-08-27 Thread ko5tik
My game has no problem to pull and parse complete highscore list:

http://www.pribluda.de/highscore/lines/LinesHighscore/pull?since=0

(ok,  usually it is less that that - only updates sine some moment )

I would check with some other tool ( SoapUI us the one )  if server
side works
properly and delivers everything zoy are waiting for

regards,

On Aug 27, 8:51 pm, Brion Emde  wrote:
> I'm pretty sure that if there is a limit, it is much bigger than what
> people are saying here.
>
> I wrote a little Twitter example on Android and just doing the
> home_timeline query can return up to 200 tweets, each up to 140
> characters, plus overhead. That's 10s of kilobytes per GET request.
>
> See if looking at this code 
> helps:http://github.com/brione/Brion-Learns-OAuth/blob/master/src/com/examp...
>
> On Aug 27, 12:44 pm, DanH  wrote:
>
> > My knowledge of the HTTP protocol is poor to begin with, and my bad
> > memory doesn't improve it, but I vaguely recall that a single HTTP
> > transfer is limited to 5000-odd characters (the precise number being
> > somewhat variable) by the packet sizes used in the network.  But
> > normally the software used on each end should hide this sensitivity so
> > that you can deal in complete data streams up to some significantly
> > larger limit.
>
> > It could be that something in your config is causing this transfer
> > size to be exposed.  It's also possible that your coding style is
> > opening you up to being sensitive to data stream values.  In
> > particular, null may be being returned from readLine at the end of the
> > block, even though there is more data in the transmission.  (I don't
> > know that such is possible -- just speculating.)
>
> > Finally, it's possible that the failure is occurring on the
> > transmission end, perhaps due to an "EOF" character embedded in the
> > source data or some such.
>
> > On Aug 26, 5:40 pm, Achanta  wrote:
>
> > > I am trying to get a JSON response from our server and the response
> > > string seems is always being truncated when the string length reaches
> > > to around 5525 characters.
>
> > > HttpClient httpClient = new DefaultHttpClient();
> > > HttpPost post = new HttpPost(URL);
> > > ResponseHandler responseHandler= new BasicResponseHandler();
> > > String testResponse = httpClient.execute(post, responseHandler);
>
> > > I also tried this by using HttpEntity and reading the response stream.
> > > But that also truncates the string at approximately that length.
>
> > >             HttpClient httpClient = new DefaultHttpClient();
> > >             HttpPost post = new HttpPost(URL);
> > > //          HttpGet get = new HttpGet(URL);
>
> > >             HttpResponse response = null;
> > >             HttpEntity entity = null;
> > >             InputStream inputStream = null;
> > >             BufferedReader reader = null;
> > >             String result = "";
> > >             try {
> > >                 response = (HttpResponse)httpClient.execute(post);
> > >                 entity = response.getEntity();
> > >                 if(entity != null){
> > >                     inputStream = entity.getContent();
> > >                 }
> > >                 reader = new BufferedReader(new
> > > InputStreamReader(inputStream), 8000);
> > >                 StringBuffer builder = new StringBuffer("");
> > >                 String line = reader.readLine();
> > >                 while(line != null){
> > >                     Log.v(tag, "int max: "+Integer.MAX_VALUE);
> > >                     Log.v(tag, "LINE: "+line
> > > +reader.toString());
> > >                     Log.v(tag, "reader: "+reader.toString());
> > >                     builder.append(line+"\n");
> > >                     line = reader.readLine();
> > >                 }
> > >                 inputStream.close();
> > >                 result = builder.toString();
> > >             } catch (ClientProtocolException e) {
> > >                 e.printStackTrace();
> > >             } catch (IOException e) {
> > >                 e.printStackTrace();
> > >             } finally{
> > >                 if(inputStream != null){
> > >                     try{
> > >                         inputStream.close();
> > >                     }catch(IOException e){
> > >                         e.printStackTrace();
> > >                     }
> > >                 }
> > >             }
>
> > > Please let me know how I can handle this problem. I used this post as
> > > the reference while creating 
> > > this.http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restfu...
>
> > > I tested the link in my browser and it does return the complete JSON.
> > > So I am sure the issue is with my code in android.
>
> > > Thank you.

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

[android-developers] Re: String being truncated when its long

2010-08-26 Thread ko5tik
I do following ( much the same as you ), but instead bothering with
readline()
I just use HTTP Client code  to retrieve string:

 HttpGet get = new HttpGet(pullUrl + "?since=" + since);
 HttpResponse response = httpClient.execute(get);
 JSONArray jsonArray = new JSONArray(new
JSONTokener(EntityUtils.toString(response.getEntity(;

And BTW - not buffer size shall be not 8000, but 8192 ;)

regards,
On Aug 27, 1:25 am, Achanta  wrote:
> Hi Jake,
>
> I was actually doing this without the response handler. I tried that
> one only when I started facing this problem. But the result is the
> same.
>
> On Aug 26, 5:21 pm, Jake Radzikowski 
> wrote:
>
> > Could you try removing the responseHandler?
>
> > On Thu, Aug 26, 2010 at 4:13 PM, Achanta  wrote:
> > > I Tested your suggestions by setting UTF-8 and I also tried the same
> > > by removing the length 8000. But it still does the same thing.
> > > Thank you for the response though.
>
> > > This thing is driving me nuts.
>
> > > On Aug 26, 4:58 pm, Jake Radzikowski 
> > > wrote:
> > > > reader = new BufferedReader(new InputStreamReader(inputStream), 8000);
> > > I'm
> > > > gunna guess that 8000 has something to do with it :). I usually use the
> > > > following:
>
> > > > reader = new BufferedReader(new InputStreamReader(inputStream, 
> > > > "UTF-8"));
>
> > > > On Thu, Aug 26, 2010 at 3:40 PM, Achanta 
> > > wrote:
>
> > > > > I am trying to get a JSON response from our server and the response
> > > > > string seems is always being truncated when the string length reaches
> > > > > to around 5525 characters.
>
> > > > > HttpClient httpClient = new DefaultHttpClient();
> > > > > HttpPost post = new HttpPost(URL);
> > > > > ResponseHandler responseHandler= new BasicResponseHandler();
> > > > > String testResponse = httpClient.execute(post, responseHandler);
>
> > > > > I also tried this by using HttpEntity and reading the response stream.
> > > > > But that also truncates the string at approximately that length.
>
> > > > >            HttpClient httpClient = new DefaultHttpClient();
> > > > >            HttpPost post = new HttpPost(URL);
> > > > > //          HttpGet get = new HttpGet(URL);
>
> > > > >            HttpResponse response = null;
> > > > >            HttpEntity entity = null;
> > > > >            InputStream inputStream = null;
> > > > >            BufferedReader reader = null;
> > > > >            String result = "";
> > > > >            try {
> > > > >                response = (HttpResponse)httpClient.execute(post);
> > > > >                entity = response.getEntity();
> > > > >                if(entity != null){
> > > > >                    inputStream = entity.getContent();
> > > > >                }
> > > > >                reader = new BufferedReader(new
> > > > > InputStreamReader(inputStream), 8000);
> > > > >                StringBuffer builder = new StringBuffer("");
> > > > >                String line = reader.readLine();
> > > > >                while(line != null){
> > > > >                    Log.v(tag, "int max: "+Integer.MAX_VALUE);
> > > > >                    Log.v(tag, "LINE: "+line
> > > > > +reader.toString());
> > > > >                    Log.v(tag, "reader: "+reader.toString());
> > > > >                    builder.append(line+"\n");
> > > > >                    line = reader.readLine();
> > > > >                }
> > > > >                inputStream.close();
> > > > >                result = builder.toString();
> > > > >            } catch (ClientProtocolException e) {
> > > > >                e.printStackTrace();
> > > > >            } catch (IOException e) {
> > > > >                e.printStackTrace();
> > > > >            } finally{
> > > > >                if(inputStream != null){
> > > > >                    try{
> > > > >                        inputStream.close();
> > > > >                    }catch(IOException e){
> > > > >                        e.printStackTrace();
> > > > >                    }
> > > > >                }
> > > > >            }
>
> > > > > Please let me know how I can handle this problem. I used this post as
> > > > > the reference while creating this.
>
> > > > >http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restfu.
> > > ..
>
> > > > > I tested the link in my browser and it does return the complete JSON.
> > > > > So I am sure the issue is with my code in android.
>
> > > > > Thank you.
>
> > > > > --
> > > > > 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 Develope

[android-developers] Re: Greystripe experiences?

2010-08-25 Thread ko5tik
you may try admob. CPM is OK (for my apps), fill rates over 95%,
and monthly payments with a month delay.

On Aug 26, 6:52 am, andfan22  wrote:
> Thanks for the info.
>
> Hmmm, that's a shame that their banner ads are only in beta.  I have
> no desire to include full screen ads in my app.
>
> Have you also tried mobclix?  I'd be interested in any comparisons
> between mobclix and greystripe.
>
> Cheers ...

-- 
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: Converting XML into Java in Android

2010-08-19 Thread ko5tik


On Aug 11, 9:31 pm, Neilz  wrote:
> Hi. In my new project I retrieve an XML file from a server. I want to
> convert this into Java objects.
>
> Now, clearly searching on this brings up a lot of solutions and
> topics, but some of them don't seem to be fully Android compatible.
> Also, some are over complex, with automatic class creation from
> annotations. I prefer to write my own classes in this case.

You have choices:
   -   write SAX / XMLPull parser yourself (some work,  but you will
get most perfromance and low memory footprint )
   -  employ one of coultless XML databinding frameworks ( less work
on your part,  big libraries, undiscutable memory footprint,
sometimes need to generate some classes )

If you can switch to JSON,  I can recommend small databinding
framework I developed to use in
my highscore system: http://github.com/ko5tik/jsonserializer
(Feel free to ask for missing features, as I'm developing it actively)

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


[android-developers] Re: Whats first onCreate or the constructor

2010-08-15 Thread ko5tik
In java object does not exist until constructor call is complete -
so no other methods can be called on it. However,   it can be that
different constructor was called (default one?)

-- 
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: Are external libraries limited by Android version?

2010-08-10 Thread ko5tik


On Aug 9, 1:26 pm, FrEaKmAn  wrote:
> Hello
>
> Will external library (for parsing JSON) work on 1.5 if it works on
> 2.1? So are libraries limited by android version? If yes, why?

Why do you need external library to parse JSON, if android already
provides this functionality?

-- 
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: POJO junit test in an Android project

2010-08-10 Thread ko5tik


On Aug 10, 3:39 am, doug  wrote:
> Oh well, It doesn't seem that the Eclipse plug-in would even run a
> test case subclassed directly from junit.framework.TestCase.  How do
> folks test POJOs in Android then?

Which junit.framework.TestCase you are using?   One coming from
android library
will be just a stub

I use jMockit to mock everything android in my testcases, and junit
coming from somewhere else

-- 
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 store questions for quiz type application

2010-08-03 Thread ko5tik


On Aug 3, 10:48 am, Paul Turchenko  wrote:
> I would go with storing your questions in raw XML file (asset) and
> parsing it on the fly. This way, you can easily change it and
> (perhaps) later extend your aplication to communicate with web service
> that has questions. IMHO using database for this is a bit wasty.

JSON file would be even better,   as it is more compact and there is
native parser

-- 
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: ADB, HTC Hero and 2.1 Update

2010-07-20 Thread ko5tik
There is also an app shown directly after you connect to USB - I
select top
option ( just charge ) - otherwise it does not work



On Jul 21, 8:00 am, Kiril Nedialkov  wrote:
> sry, I forgot to mention it - yes, it is enabled.
>
> On Tue, Jul 20, 2010 at 10:29 PM, Maps.Huge.Info (Maps API Guru) <
>
> cor...@gmail.com> wrote:
> > I hate to state the obvious, but have you made sure the "USB
> > debugging" option is still selected?
>
> > -John Coryat
>
> > --
> > 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: Twitter / Facebook source code

2010-07-20 Thread ko5tik
I'm affraid - nowhere.  Though there are public APIs available to work
with them

On Jul 20, 12:23 pm, oriharel  wrote:
> Where can I find the source code of Twitter / Facebook?

-- 
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: Authenticating an app

2010-07-20 Thread ko5tik


On Jul 19, 9:02 am, Ken  wrote:
> Hi,
>
> I wonder if it's possible to authenticate an app with a http server.
> THe server API does not require user name or password, but I'd like to
> expose the server API to a particular app only (so that it cannot be
> abused by other program).

Even if server api does not require auth,  nothing prevents you from
configuring
some auth on server level ( basic, certificate etc )

-- 
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: Is there any way to parse JSON object into ArrayList or Map...

2010-07-14 Thread ko5tik


On Jul 14, 8:58 am, Sohan badaya  wrote:
> Hi,
> Is there any way to parse JSON object, that comes from facebook server
> in a response, into ArrayList or Map so that i can set values in my
> ListView.
>                      I am finding difficulty in parsing because JSON
> object itself contains JSONArray and this Array can contain JSONObject
> may be in recurcive order.
>
> Please suggest me any way to solve this problem.

My JSON databinding library is capable of parsing multidimensional
JSON arrays to real ones
feel free to ptopose new features and send in patches:

http://github.com/ko5tik/jsonserializer

-- 
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: Easy and fast XML Parser?

2010-07-12 Thread ko5tik
DOM consumes memory and creates load of object (for big XML files),
but DOM is easy to work with.  SAX is event driven, but programming
modell is awkward.
There is pull XML parser in android though -  like SAX but you are in
control.

But usually you like to have you objects out of XML - so you will need
kind of databinding tool
(unfortunately there is  not one in android)

XStream is easy to use, but not really small.

I decided to use JSON in my apps, and wrote small databinding library:

http://github.com/ko5tik/jsonserializer

It works well on even relatively big JSON files (highscore lists with
1000 entries )



On Jul 13, 4:42 am, Streets Of Boston  wrote:
> I myself use the android.sax.* classes and the
> org.xmlpull.v1.XmlPullParserFactory that's configured to use the
> org.xmlpull.v1.sax2.Driver class for the actual hard work.
>
> (I wrapped some extra classes of my own around these (android.sax.*)
> to better track the the current context (i.e. which element the pull-
> parser is currently handling) of the parsing)
>
> On Jul 12, 3:30 pm, Siva  wrote:
>
> > Can anyone tell me the easy and fastest XML Parser?
>
> > I need guide/sample code...
>
> > please help me...

-- 
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: paypal mobile payment allowed?

2010-07-08 Thread ko5tik


On Jul 7, 11:40 pm, "Michael A."  wrote:
> The legal & logistical issues are of course why this is not just a
> technical issue, but after 2 years? There are dozens upon dozens of
> digital distribution platforms out there - some of them started after
> the Android market - that manage to handle purchase and developer
> sales from multiple countries. It may not be trivial issue, but it is
> not rocket science either. The only explanation that really makes
> sense is that Google just isn't interested (i.e., to prioritize it).

Google is big and visible - so they have to comply with goverment
demands
in the countries they are physically present. (everybody likes to
chisel out
something - like german cities a fee for streetview based on street
length).
Small fish just does not care - they are invisible and too small and
too fast .

So there will be no official sales in embargoed countries - like iran
or kuba,
and nobody will bother  with small ones like swiss, because management
overhead
will be bigger than potential revenues.

-- 
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: paypal mobile payment allowed?

2010-07-07 Thread ko5tik


On Jul 6, 10:19 am, Al Sutton  wrote:
> Just to address your point on collecting information from Googles
> Market; I've talked to someone at Google about this and it was an
> absolute no-go. The request wasn't for AndAppStore, but for another
> project that I was working on part of and some people at Google had
> shown some interest in.

Well,  what about cyrket?  It collects information from market and
displays it in a better way than original  ( user comments were
visible for ages )

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


[android-developers] Re: paypal mobile payment allowed?

2010-07-05 Thread ko5tik


On Jul 6, 12:01 am, moneytoo  wrote:
> It depends on what you want to charge the user for.
>
> From 3.3: All fees received by Developers for Products distributed via
> the Market must be processed by the Market’s Payment Processor.
>
> Definition ofroducts: Software, content and digital materials created
> for Devices in accordance with the Android SDK and distributed via the
> Market.

I think you can distribute your free app  through market, and provide
paypal financed donwload
of paid parts through some other means.   This way your paid parts are
not served through market.

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

2010-06-20 Thread ko5tik


On Jun 19, 10:07 am, Squ36  wrote:
> OK...
>
> So, if I can't use CORBA, what is the best way to program multi-users
> apps ? I'm insisting on the fact that it needs to run without a server
> access, because I'm a student, and I can't afford to buy or rent a
> dedicated server..

Google app engine is affordable even to a student without any funds -
and if your apps needs more than free account, you habe probably soo
much traffic
and app sales that you can actually afford a dedicated server

-- 
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: Best way for web service calls ??

2010-06-13 Thread ko5tik
Do you send or receive?

Large data requires some kind of pull parser - there is native pull
parser for XML (in android)
but not for JSON.

So for 1: if you receive try to use XML with pull parser, or some 3rd
party library for JSON
prividing same functionality

for 2: it does not matter.  I use small data binding library for JSON
(http://github.com/ko5tik/jsonserializer)

If data amount is really big I would open plain socket to avoid
overhead  with HTTP client.

To synchronize highscores in my game I use REST service with 2
methods:

push( all the necessary fields)  - just saves single highscore
entry,  and is called periodically
by game to save all local entries (unless those are already pushed)

pull(since date)  - pulls all newer entries from service.  On first
invocation (game just installed, or upgraded
from previous version) since == 0 , so all entries are pulled.

I also supply all entries with UUID to solve problem with double
submission or unreliable communication.



On Jun 10, 7:15 am, StillALearner  wrote:
> Hello,
> I have been trying to develop an android application for sometime now
> and i would like to get some suggestion on the best way of making web
> service calls or to be generic the best way of communication between
> the android platform and web server.
> Soap(using Ksoap) and HTTP(using POST) are two methodologies & XML and
> JSON are the two data formats that am aware of,(let me know if they
> are few other options too..) and ,
> i would like to know what is the best option of data transfer when
> i) the data to transfer is Large and less frequent.
> ii) more frequent but less data is being transfered.
>
> Also when it comes to data synchronization between server and our
> app , how is that generally implemented ??

-- 
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: Speed issue: content provider vs plain sqlite db

2010-06-13 Thread ko5tik
LIst adapter pulling data lazily out of database and reusing views
will rescue you.
In my game I display highscore list with 1000 entries -  pretty
fluent.

regards,
On Jun 12, 5:18 pm, Moss  wrote:
> Just to make a small update on the issue, I looked a bit at romain
> guys shelves app which helped me a lot and my app updates now seamless
> 15k feed items!
>
> On 6 mayo, 07:12, grace  wrote:
>
> > Hi,
>
> > I have tried the same thing with content provider and even that take
> > some time to load the feeds..
> > so i think its nothing to do with the db or content provider
>
> > On May 4, 2:14 am,Moss wrote:
>
> > > Hi there,
>
> > > I have made an app that makes extensive use of an internal sqlite db
> > > to save news feeds. Those feeds are parsed from an URL and then cached
> > > in the DB so that I'm able to re-add them to a ListView after a
> > > onPause()/onResume() pair. It's all quite nice but it takes about 2 or
> > > 3 seconds to restore the feed and showup the filled ListView.
>
> > > Apart from 1 ListView it's actually a TabHost with 3 ListActivities
> > > and in each of their ListView's I got about 50 items. So I can not not
> > > hold all 150 items at once in memory. That's the reason I cache them
> > > to a DB so I'm able to clear them out in their onPause() call.
>
> > > Why is it so slow? Would it be better to implement a ContentProvider?
> > > And, would it really speed the app up?
>
> > > Thanks in advanced.
>
> > > Cheers,
> > >  Moss
>
> > > --
> > > 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 
> > > athttp://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 
> > athttp://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: How global is the app market?

2010-06-10 Thread ko5tik
Those markets aare cool,

but without chinese knowlege there is no chance to put apps there...


On 10 Jun., 05:28, NightGospel  wrote:
> Hi Neilz,
>
> Be one of Asian people, AFAIK, mainland China people they have market
> their own, it's name is "安卓市場"(Translation to English is "Android
> Market"). Because Google doesn't open Asian area (except for Japan) to
> let developers upload paid softwares, they are out of patience and
> create one market to play. Their android market has many very qulified
> and full-idea softwares I've never seen. But one drawback is that many
> of them are Simplified-Chinese only. :(
>
> Their forum:http://hiapk.com/bbs/
>
> NightGospel
>
> On 6月10日, 上午2時27分, Neilz  wrote:
>
> > Hi. I'm UK based and I'm wondering how much of the world can see and
> > download my apps from the market?
>
> > For example, the chinese market, which I believe is quite large, can
> > they see UK or US based apps? Or does some kind of specific
> > translation need to be done for this to happen? Or is it a separate
> > market place?
>
> > 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


[android-developers] Re: Is it possible to hide installed apps icon??

2010-06-09 Thread ko5tik
IIRC, if you omit:

  

in your application manifest,  laubcher will not show it, but you will
be able to start it with
intent


On Jun 8, 4:02 am, jlc488  wrote:
> I have a situation like this.
>
> I have a "A" app which shows on home screen. When I click this "A"
> app, It will show many other apps which installed or will be installed
> on the device.
>
> But the problem is I only want to show these apps through the "A" app
> only.
>
> Is it possible??
>
> If installing and hiding icons not possible, I can dynamically
> download these apps from my own cloud and load them at the request.
>
> Is this also possible??
>
> Can anyone please guide me some ideas or something??
>
> I'm so lost here and just no clue at all how to start!!!
>
> 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


[android-developers] Re: Submit Android form data to the web via POST

2010-06-09 Thread ko5tik
You do not need additional libraries, as android already got
HttpClient
I do following:
-%<---
 httpClient = new DefaultHttpClient();

HttpPost httpRequest = new HttpPost(PUSH_URL);
 List pairs = new ArrayList();
 pairs.add(new BasicNameValuePair("name", entry.getName()));
...

httpRequest.setEntity(new UrlEncodedFormEntity(pairs));


HttpResponse response = httpClient.execute(httpRequest);

-%<-

On Jun 9, 6:44 pm, theSmith  wrote:
> I saw your entry on stackoverflow 
> too.http://stackoverflow.com/questions/245/submit-form-with-post-data...
>
> I would suggest using the Apache libraries (all the http client, get/
> post, response stuff) and parsing the data your self. If they just
> wanted a webview the user might as well just open the browser
> initially.
> On another note if you really want a webview make sure to enable
> javascript manually (could be the problem of things not displaying
> correctly)
>
> Some pointers with the network communication on Android.
> Use an AsyncTask to put the network comm on another thread (gets it
> off the UI thread).
> Make good use of try-catch blocks and let the user know whats going on
> when things get ugly (very important to a good user experience)
>
> If you need some more tips feel free to ask.
>
> -Chris
> ---
> Creator of My College Lifehttp://mycollegelife.org
>
> On Jun 8, 1:54 pm, datguywhowanders 
> wrote:
>
> > I've been searching the web for a way to do this for about a week now,
> > and I just can't seem to figure it out.
>
> > I'm trying to implement an app that my college can use to allow users
> > to log in to various services on the campus with ease. The way it
> > works currently is they go to an online portal, select which service
> > they want, fill in their user name and pwd, and click login. The form
> > data is sent via post (it includes several hidden values as well as
> > just the user name and pwd) to the corresponding login script which
> > then signs them in and loads the service.
>
> > I've been trying to come at the problem in two ways. I first tried a
> > WebView, but it doesn't seem to want to support all of the html that
> > normally makes this form work. I get all of the elements I need,
> > fields for user and pwd as well as a login button, but clicking the
> > button doesn't do anything. I wondered if I needed to add an onclick
> > handler for it, but I can't see how as the button is implemented in
> > the html of the webview not using a separate android element.
>
> > The other possibility was using the xml widgets to create the form in
> > a nice relative layout, which seems to load faster and looks better on
> > the android screen. I used EditText fields for the input, a spinner
> > widget for the service select, and the button widget for the login. I
> > know how to make the onclick and item select handlers for the button
> > and spinner, respectively, but I can't figure out how to send that
> > data via POST in an intent that would then launch a browser. I can do
> > an intent with the action url, but can't get the POST data to feed
> > into it.
>
> > Anyone have 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: Avoiding float operations in game design

2010-06-08 Thread ko5tik


On Jun 8, 6:52 pm, Neilz  wrote:
> Interesting, thanks.
>
> To go back to my other question, can some one confirm this:
>
>
>
> When bitmaps get drawn to the screen, is this all wasted
> precision? Is drawing at 281.01068 any different from drawing at
> 281.31343?

I would say - Yes.  Your display pixel are pretty fixed point, but
drawing on subpixel
boundary may result (gurus are free to correct me if I'm wrong) in
dithering / blending
which would be major performance penalty.

-- 
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 Dev Phone with 2.x?

2010-06-05 Thread ko5tik


On Jun 4, 1:28 pm, Tomáš  Hubálek  wrote:
> In this case there is no chance in our country as Vodafone (as Nexus
> One distributor in Europe) said that they will not sell this phone in
> Czech Republic.
>
> I wish there would be ADP 3 as I like to have phone officially rooted
> (because of unofficially rooted phones lose warranty here).

I bet that they:

http://www.pdamax.de/

will be happy to ship unbranded HTC Desire   to you.

In any case better deal than branded and locked one from vodafone

-- 
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: Maven and Android

2010-06-03 Thread ko5tik
http://code.google.com/p/maven-android-plugin/

You can always take android jar,  and just deploy it ti your local
repo.
(or use system scope)

reme,ber that  android jars contains just a a stubs,  suitable to
compile against but nithing
more.   you will have to heavy mock your test classes ( jmockit is a
tool )

Sample for maven and android:

http://github.com/ko5tik/jsonserializer




On Jun 3, 6:50 am, Nando Android  wrote:
> Hi all,
>
> Is there any documentation out there that shows examples on how to start
> Android projects with Maven?
>
> I like Eclipse to develop and debug but I like to use Maven to create the
> project and control which jars are on the repository and need to be fetched
> from the Internet.
>
> Any suggestions on this?
>
> 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


[android-developers] Re: Our Android Google AdSense Account Disabled due to 'modifying the ad behavior'

2010-05-28 Thread ko5tik
You should get appropriate lawyer to fix this issue.
( or at least raise it high enough so somebody who can make
decisions,
and not only implements business process looks at this issue )

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


[android-developers] Re: Android Market Developer Console Bugs feature

2010-05-20 Thread ko5tik


On 21 Mai, 07:36, yuku  wrote:
> I got 8 bugs in total for my app, dated
> May 5, May 13, and May 21.
>
> How could those bug reports be there, when Froyo is not even released?


apparently your app is used by someone who gets access to fresh
android
images ( well, I got onyl 2 bugs - either my app is  really high
quality or not
interesting ;) )

-- 
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: Participate in app promotion experiment

2010-05-19 Thread ko5tik


On 19 Mai, 09:53, Piotr Buła  wrote:
> Great idea. I was thinking of similar approach with my upcoming apps.
> I was planning on banding with few fellas for implementing cross-
> promotion (ie. I would promote my other apps and those of others and
> same on their side).

ATM I use admob house ads from unfilled inventory  to cross-primote my
ofwn applications.
It works

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


[android-developers] Re: How can I associate a file with a task?

2010-05-18 Thread ko5tik


On 18 Mai, 17:57, Bob Lee  wrote:
> On Mon, May 17, 2010 at 11:32 PM, ko5tik  wrote:
> > Wha do you mean bay "abanddoned" -   the only callback for activity
> > you can rely
> > on is onPause() , which will be called when it leaves user focus.
> > After
> > this it may be killed sometime, or brought to front( onResume() will
> > be called )
>
> > I would delete old photos when new one is arrived.
>
> This isn't a good option. Multiple tasks can run concurrently. Is there a
> way to get the task name perhaps (as opposed to its int ID)?

There is also singleton - while not a good pattern it's usable on
android.
As all your activities run in the same VM it's a choice( I use it for
highscore keeping,
with 2 activities and alarm service)

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


  1   2   >