[android-developers] Re: Inertial Sensor on HTC Hero

2009-10-23 Thread ko5tik



On Oct 1, 12:07 pm, DD daviddiaofri...@gmail.com wrote:

 get the both at the same time. Therefore, G is decomposed based on the
 values of pitch and roll that are always out of date; they are not
 corresponding to the new acclerations. This is where the error comes
 out.


I would say, g is already decomposed by BMA 150 (as it got 3 distinct
sensors, aligned with chip
axes), and  AK8973 has no part in it.

--~--~-~--~~~---~--~~
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: Make two buttons the same width?

2009-11-09 Thread ko5tik
What about placing them into table layout?
then you shall be fine with fill_parent

-- 
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: Droid phone unable to recognize device

2009-11-10 Thread ko5tik
That's my setup:

ubu...@wlka-64l3d4j:~$ cat /etc/udev/rules.d/11-android.rules
SUBSYSTEM==usb, ATTRS{idVendor}==0bb4, ATTRS{idProduct}==0c02,
MODE=0666, OWNER=ubuntu

Trick is to put it before other rules so it gets precencdence ( hence:
11-android.rules )
Vendor ID and product id can be obtained from lsusb / dmesg , and
owner has to be you.
( This is for 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: get device manufacturer or USB device id...

2009-11-10 Thread ko5tik

If you connect to linux box,  lsusb and messages log will tell you
everything

-- 
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 display 8000 * 8000 jpeg file without OutOfMemoryException

2009-11-21 Thread ko5tik
Extracting  just a single tile out of JPEG file  is a really big PITA
There are about 27 different variants of JPEG (though not all really
matter
and are widely used)

Usually you've got 8x8 tiles in row-order,  and because of entropy
encoding
you can not navigate just to  random tile - you'll have to scan from
the start
( maybe you can build index,  where single block-rows start - this
will make scanning easier )

In this case, there will be only 1000 rows,  with 1000 block in them
- performance may
be adequate.

On Nov 20, 11:32 pm, Robert Green rbgrn@gmail.com wrote:
 I'd solve this by writing a preprocessor that breaks that big file
 down into manageable chunks.  Think of having 10x10 array of 800x800
 images.  I would also mipmap a 4000x4000, 2000x2000, 1000x1000 and
 500x500 of the file.  Then, start the user on the correct zoom level,
 using only the tiles you need of your arrays.  OpenGL is actually
 really good for this sort of thing.  You could feasibly use 1024x1024
 pixel texture tiles with an orthographic projection and let it handle
 the scaling.

 In short, I don't believe there is any way to get 8000x8000x16bit =
 128MB of bitmap data into 16MB of RAM all at once, but you can
 definitely break it apart and work with pieces.  A 1000x1000 pixel
 piece consumes 2MB of RAM.  You could have 4 of those loaded at once
 and be OK on memory.  If you're viewing actual pixels, you only need a
 max of 4 loaded at a time to have seamless panning between them.

 On Nov 20, 2:38 pm, PJ pjbar...@gmail.com wrote:

  We might be able to come up with more creative solutions if you give
  us more information about where the 8000x8000 jpeg file is coming
  from, and whether you just want to display it in a WxH view or to do
  something else with it.

  Also, since you expressed interest in Google's server-side solution
  for Google Maps, are you considering developing a server-side
  component to your app as well?  If so, you could host this capability
  (convert 8000x8000 image to smaller image) on a server somewhere.

  If you try to do all processing on the device itself, it's probably
  going to be very slow.

  What does your app do?  Now you've got me all curious.  :D

  -- PJ

  On Nov 19, 7:06 pm, James Wang jameswangc...@gmail.com wrote:

 Step #2: Generate 10,000 tiles that are 80*80 instead (100 * 100 
 tiles).

 Step #3: Render tiles on-screen by drawing them on the Canvas, and
 support swipe gestures to move through the image by replacing tiles,
 much like Google Maps works.

   Hi Mark, AFAIK, the decoder of jpeg on android must support to read
   random part of jpeg file if I want do step#2 as you said.
   I checked out SDK reference and found out the default decoder of jpeg
   seems not support it. Am I right?
   Do I have to make another jpeg decoder?

   BTW, I think google map does the same thing on server side, not on
   mobile phone, does not it?

-- 
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: Accelerometer Reading ranges

2010-01-17 Thread ko5tik


On Jan 16, 9:37 pm, MPower123 michaelh...@gmail.com wrote:

 I just hope theres an API call to set the resolution to 2g or 4g mode.

TANJ - AFAIR, there is no such official API in android SDK (though you
may
be able to hack around or have more luck with  native 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: unit testing

2010-01-26 Thread ko5tik

On Jan 26, 5:25 am, Fred Grott(Android Expert, 
http://mobilebytes.wordpress.com)
fred.gr...@gmail.com wrote:
 you can only use those mocks supplied by google Sdk..not mockkit..
I'm affraid, that I must disagree with you:

---%
package de.pribluda.games.android.lines;

import android.content.ContentValues;
import mockit.Expectations;
import mockit.Mocked;
import mockit.Verifications;
import org.junit.Test;


/**
 * @author ko5tik
 */
public class HighscoreEntryTest {
@Mocked
ContentValues values;

/**
 * shall marshall itself to content values
 */
@Test
public void testMarshalling() {
HighscoreEntry entry = new HighscoreEntry();
entry.setBalls(100);
entry.setDuration(2390);
entry.setPoints(500);
entry.setName(glum glam);
entry.setTime(1);
entry.setTurns(300);



entry.marshall(values);

new Verifications() {
{
values.put(HighscoreEntry.BALLS, 100);
values.put(HighscoreEntry.DURATION, 2390);
values.put(HighscoreEntry.POINTS, 500);
values.put(HighscoreEntry.NAME, glum glam);
values.put(HighscoreEntry.TIME, 1000);
values.put(HighscoreEntry.TURNS, 300);
}
};
}
}

---%

CTRL-SHIFT-F10

-%-
/home/ko5tik/jdk1.6.0_17/bin/java -Didea.launcher.port=7532 -
Didea.launcher.bin.path=/home/ko5tik/idea-IU-93.13/bin -
Dfile.encoding=UTF-8 -classpath /home/ko5tik/idea-IU-93.13/plugins/
junit/lib/junit-rt.jar:/home/ko5tik/jdk1.6.0_17/jre/lib/alt-rt.jar:/
home/ko5tik/jdk1.6.0_17/jre/lib/deploy.jar:/home/ko5tik/jdk1.6.0_17/
jre/lib/resources.jar:/home/ko5tik/jdk1.6.0_17/jre/lib/charsets.jar:/
home/ko5tik/jdk1.6.0_17/jre/lib/jce.jar:/home/ko5tik/jdk1.6.0_17/jre/
lib/javaws.jar:/home/ko5tik/jdk1.6.0_17/jre/lib/management-agent.jar:/
home/ko5tik/jdk1.6.0_17/jre/lib/plugin.jar:/home/ko5tik/jdk1.6.0_17/
jre/lib/rt.jar:/home/ko5tik/jdk1.6.0_17/jre/lib/jsse.jar:/home/ko5tik/
jdk1.6.0_17/jre/lib/ext/localedata.jar:/home/ko5tik/jdk1.6.0_17/jre/
lib/ext/dnsns.jar:/home/ko5tik/jdk1.6.0_17/jre/lib/ext/sunpkcs11.jar:/
home/ko5tik/jdk1.6.0_17/jre/lib/ext/sunjce_provider.jar:/home/ko5tik/
android/lines/out/test/Lines:/home/ko5tik/android/lines/out/production/
Lines:/home/ko5tik/android/lines/libs/jmockit.jar:/home/ko5tik/android/
lines/libs/junit-4.7.jar:/home/ko5tik/android-sdk-linux/platforms/
android-1.5/android.jar:/home/ko5tik/android/lines/libs/admob-sdk-
android.jar:/home/ko5tik/idea-IU-93.13/lib/idea_rt.jar
com.intellij.rt.execution.application.AppMain
com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 -junit4
de.pribluda.games.android.lines.HighscoreEntryTest,testMarshalling

java.lang.AssertionError: Missing invocation of:
void android.content.ContentValues#put(String, Integer)
with arguments: balls, 100
on mock instance: android.content.contentval...@fd68b1
at android.content.ContentValues.put(ContentValues.java)
at de.pribluda.games.android.lines.HighscoreEntryTest$1.init
(HighscoreEntryTest.java:36)
at de.pribluda.games.android.lines.HighscoreEntryTest.testMarshalling
(HighscoreEntryTest.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs
(JUnit4IdeaTestRunner.java:94)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart
(JUnitStarter.java:165)
at com.intellij.rt.execution.junit.JUnitStarter.main
(JUnitStarter.java:60)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:
110)


Process finished with exit code 255

-%-

Looks like succesfull mock for me

 What areas are you getting stuck at?


Well, coming from J2EE there are a lot of missing nuts and bolts -
like
dependency injection etc, but Im looking around and working on it
I think some port of picocontainer would be possible ( but it has to
be refactored
to femtocontainer as core is quite big right now - over 220KB , and
enhanced with
android specific stuff)

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: Important Undocumented styles

2010-01-29 Thread ko5tik
Ultimate Truth lies in source

On Jan 29, 2:19 am, Erik Martino erik.mart...@gmail.com wrote:
 An important part of creating an android application is making the gui
 look right. However where do I find documentation for this. An example
 of what I am looking for is something like this

 style=@android:style/ButtonBar

 what other interesting styles does exist. The eclipse layout xml
 editor knows about some of the @android:style/'s but not this one.
 Where is all this documented?

-- 
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 and other languages...

2010-01-29 Thread ko5tik


On Jan 28, 2:32 am, reyden mr.jakovlje...@gmail.com wrote:
 I'm writing a free application that's only in Serbian language atm.
 English version will follow but priority is to get it published on
 Serbian. I'd like to know will I be able to upload my app on Android
 Market, or it has to support some of official Market languages?

I think you will able to upload your app with serbian only,   but only
people with serbian locale active will see it. (which is kind ow that
what you
like anewfy)

Do not forget that there are a lot of ohetr appstores (not that
popular
like android store, but nevertheless... )

-- 
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 time it will take to parse

2010-01-29 Thread ko5tik
The problem is DOM parsing - in produces a LOT of objects and garbage
collection
wile slurping everything in oner big gulp (and usually chokes)

What is wrong with SAX or XPP?


On Jan 29, 11:59 am, Sasikumar.S sasikumar.it1...@gmail.com wrote:
 Hi frank,

 Thank u for ur reply.
 that question is for android only.
 The url i sent is taking more than 3 minutes for me.
 I'm using DOM for XML Parsing.

 On Fri, Jan 29, 2010 at 11:19 AM, Frank Weiss fewe...@gmail.com wrote:
  Is this and Android question? Anyway, on the Droid, using SAX, a 14 KB xml
  takes much less than one second off the net. On a 2GHz laptop, I've seen 8
  MB files parse in about one second. SAX is great. The pull XML parser is
  said to be slightly faster in many cases.

  --
  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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Thanks  Regards
 Sasikumar.S

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

2010-02-01 Thread ko5tik


On Feb 1, 12:23 am, Kevin Duffey andjar...@gmail.com wrote:

 Now.. on that note, slightly off topic.. I hope Android (and google) sees an
 opportunity for potential Android devices that would allow someone like one
 of us to write some software that prevents the camera/video camera/audio
 recorder to work at set times.. so that they can't go film video or take
 pictures of kids in the bathroom and get expelled!! I have a difficult time
 finding any phone that doesn't have camera/video capabilities now. But
 anyway...

I remember my school days - we had PDP 11 with RSX, and it took
(usually) about
15 seconds after class begin for the first privileged user to emerge
and to lock teacher
out of system till the end of class - I do not think any
countermeasures on phone would
last significantly longer.
Go the pirate party way - just flood a room in question with near
infrared - LEDs are cheap
and cameras on phones are crappy enough to be fooled easily.

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

2010-02-01 Thread ko5tik


On Jan 31, 7:23 pm, Kevin Duffey andjar...@gmail.com wrote:

 Now.. on that note, slightly off topic.. I hope Android (and google) sees an
 opportunity for potential Android devices that would allow someone like one
 of us to write some software that prevents the camera/video camera/audio
 recorder to work at set times.. so that they can't go film video or take
 pictures of kids in the bathroom and get expelled!! I have a difficult time
 finding any phone that doesn't have camera/video capabilities now. But
 anyway...

Just forgot.  My friends  did some contract work for automotive
companies,
and those are really paranoid about somebody taking pictures on
premises
or being 1 kilo heavier while leaving, than when arrived.   Security
allows only
phones without a camera,or alternatively they sandblast the lenses and
make them
unusable - maybe that's way to go for 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: device shaked? accelerometer once more

2010-02-02 Thread ko5tik
Print out a sensor name and google up the datasheet
( it's bosh sensortec BM 150 or like it ) - as you may guess
it's not the best and finest chip out there.  Resolution is pretty
low,
and it is noisy ( +- 8g is pressed into 8 bit )

-- 
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 Generate Android Testing Report in HTML Automatically

2010-02-03 Thread ko5tik
I do not like android instrumentation framework, and switched
to mocking everything android.  JMockIt seems to be a right tool
( jmock has problems with finals and concrete classes)

-- 
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: Working with Strings.xml

2010-02-08 Thread ko5tik


On Feb 7, 9:59 am, CMF manf...@gmail.com wrote:
 Hi guys~:)
 I would like to parse the strings.xml
 Here is my code:

 Line1: DocumentBuilderFactory factory =
 DocumentBuilderFactory.newInstance();
 Line2: DocumentBuilder builder = factory.newDocumentBuilder();
 Line3: Document dom = builder.parse(new File(//myproject//res//
 values//strings.xml));
 Line4: Element root = dom.getDocumentElement();
 Line5: NodeList items = root.getElementsByTagName(String);

This is going to work with raw resources only ( like this ):
final InputStream inputStream =
getResources().openRawResource(R.raw.help);

Other resources  are precompiled in something looking as dbase file
(fo me and my  debian)
I could reat them through classloader, but  it was not xml.

 However, in line3, I don't know what the actual path of the
 strings.xml is, could any one can tell me?
 Besides, I found another method to work with XML, but I don't know
 what the id should be...
 XmlPullParser parser = getResources().getXml(id);

Id shall be from your R.something.id

-- 
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: expanding android.jar

2010-02-16 Thread ko5tik


On Feb 16, 7:33 am, saru sarucs...@gmail.com wrote:
 Some classes are NOT PUBLIC like android.os.ServiceManager,
 android.view.IWindowManager, etc, they are implemented in the mobile
 devices, but not present in the SDK .jar. This is because these
 classes are private APIs .
 now please tell me is there any way like compiling source code or
 importing private class file into android.jar so that i can use this
 private APIs

You can do this, but you should not ( in case you really really like
to do this,
look how thos is done by AndroidBluetoothLibrary on googlecode )

-- 
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 we write android Junit testcases even we dont have source files?

2010-02-16 Thread ko5tik
You can write test cases  using suitable mocking library.
I found jmockit (on googlecode)  really usefull - other mock
frameworks
have big problems with mocking of concrete classes.

So far I was able to mock interactions with context, file writing 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: Access barcode app from website

2010-02-17 Thread ko5tik
 This must be  custom URL protocol - just look into their
HTML source for inspiration.

For example URL:

market://search?q=pname:de.pribluda.games.android.lines

will force your phone to install my game off market

On Feb 16, 11:29 pm, JB jeff.benton.r...@gmail.com wrote:
 How can I access the barcode app on the Droid from a webpage like
 Google is doing with the Shopping page?

-- 
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 get current time accurately?

2010-02-18 Thread ko5tik


On Feb 18, 9:44 am, Yoshinori yoshinori...@gmail.com wrote:
 Hi

 I want to get current time accurately.
 I tried to get the time by System.currentTimeMillis() but it has the
 effect on the modificaion by User. So it is not useful for me.

 Could you kindly tell me how to get current time accurately?

Use System.nanoTime() if you need accurate intervals

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

2010-02-21 Thread ko5tik


On Feb 21, 10:46 am, Narendra Bagade bagadenaren...@gmail.com wrote:
 Can I develope advertisement screen in app.

 Anyone knows will google allow to advertise with my app.

 Regards,
 Narendra

Google adsense beta will accept your app if you provide 100K+
pageviews a day.
If you do not meet this criteria, admob.com  is a good alternative
( and they are going to be bought
by google, so your app will land in adsense anyway)

-- 
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 save variables, even when I close the APP

2010-02-21 Thread ko5tik
You have to use onPause() and onResume() callbacks
in your activity.  Values can be safely saved in [shared]
preferences.

I started small JSON marshaller library,  it may be of interest
for you:
http://github.com/ko5tik/jsonserializer
( not much docs there yet,  look into testcases as API is really
simple)

-- 
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: Transmit serialized object via HTTP in Android

2010-02-22 Thread ko5tik
XStream is really good,  but little heavyweight for use in android
app.   And XML is pretty verbose.  On the other side, JSON support is
native
in android, and well understood by various framweworks on the server
side

I started small JSON marshaller on github, which can marshall object
trees
to strings and back ( not really advanced  by now though )

http://github.com/ko5tik/jsonserializer

On Feb 22, 2:09 pm, Sean Hodges seanhodge...@googlemail.com wrote:
 On Mon, Feb 22, 2010 at 11:57 AM, Ray da Costa raydaco...@gmail.com wrote:

  Personnel possibility exists to transmit serialized object via HTTP in
  Android? I'm trying to use the HttpURLConnection but I get an exception
  saying that does not support

 Once an object is serialised, it shouldn't be difficult to send it
 over HTTP in the body of a HttpPost. You could write the object to a
 String using a combination of ObjectOutputStream and
 ByteArrayOutputStream (using a process similar 
 tohttp://www.singularsys.com/jep/doc/html/serialization.html). Then pass
 it into an HttpPost command.

 Or, you could use something like XStream to serialise the objects into
 XML before transport...

 http://xstream.codehaus.org/

-- 
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 question about Android Compass sensitivity

2010-02-25 Thread ko5tik


On Feb 25, 11:33 am, Arindam Nath strider2...@gmail.com wrote:
 Hello,

 I am thinking of developing an app on android to measure small
 distance of up to .5 meters and the direction of motion. The problem
 is this that i dont know wether i can rely on the inbuilt compass
 reading to measure such a small change. I need help for if this method
 does not work i am thinking of using the camera to detect motion using
 motion detection algorithm. Hoping to get ur reply soon as my whole
 internship project depends on this. Thank You.

Accuracy of sensors is not a property of android, but of used
hardware.
Sensors used in HTC Hero sell for about $3 wholesale -  I would not
await
much precision there.   And compass, being magnetic, is sensitive to
ambient magnetic
fields ( resulting from electric installations around you) - so
relative readings may be OK,
but not absolute

-- 
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: Piracy sucks, or does it?

2010-02-25 Thread ko5tik
Backdating the Phone would be major PITA , and surely screw up
all the calendar and synchronization stuff. Is the app in question as
expensive to mandate this PITA?

-- 
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: Piracy sucks, or does it?

2010-02-27 Thread ko5tik


On Feb 26, 1:18 pm, Hekki kaye...@gmail.com wrote:
 I do not know what a PITA is but I agree.
 It's acronym:  Pain In The A[guess what]

-- 
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: Project dependency: reusing code and resources from another Android project

2009-12-10 Thread ko5tik


On Dec 10, 2:58 pm, WoodManEXP woodman...@gmail.com wrote:
 Yes I would like to avoid the copy/pasting as well!

 Other Java environs, eg NetBeans, have a concept of embedding
 resources in .jar files (that are needed by the jar file). Apparently
 the Google team has not has time to implement such a thing for Android
 world. They have this technique to generating the R. constants, which
 need to be unique within the app, and there is not a way of ensuring
 uniqueness if they were in separate .jar files.

Well, in this case you have to go java way:
 getClassLoader().getResourceAsStream(name it what you like)
will pick up whateher you like from jar files on classpath ( though
not as
convenient as android APIs )

-- 
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 clasess on android device

2009-12-17 Thread ko5tik
As previous author states, you should not. But if you are really
desperate
you can hack around it, like guys from bluetooth library (you can find
in on
google code, their repository is:  
http://android-bluetooth.googlecode.com/svn/trunk
)



On Dec 17, 11:13 am, saikiran n saikiran@gmail.com wrote:
 Hi
 I have seen  the clasess like android.os.ServiceManager
 ,android.view.IWindowManager are not public they implemented in device
 itself.
 If i want to use them in my application i how can i do it?
 Can anybody 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: this is just too much

2009-12-20 Thread ko5tik
While this is outright fraud,  somebody not living in USA
has VERY limited options to prosecute this.   Only goodwill
of paypal and craigslist will help here.

( I had similar issue in germany,  and it took me only 20 minutes to
instruct
a lawyer to generate CD letter with lawyer bill over 1200 EUR for the
delinquent
- bill was payd )

regards,

On Dec 20, 4:19 am, Matt hansen.matt...@gmail.com wrote:
 There is usually a cyber-crime division in each state.  However, they
 are severely under-staffed.  For example, Utah only has 3 officers for
 cyber-crime, and two of them spend all of their time on child
 pornography cases.

 However, I would still report it.

 Regards,

 Matt

 On Dec 18, 5:27 pm, Warren warrenba...@gmail.com wrote:

  Have you contacted law enforcement? You might have a hard time getting
  their attention for something small but it is their job to
  investigate and prosecute these things. When someone downloads
  something they don't have the rights to, that is wrong, but it gets
  much more serious when someone is profiting from their copyright
  infringement.

  On Dec 18, 5:01 pm, David Overcash funnylookin...@gmail.com wrote:

   Send him a CD for fun.  Then tell Paypal he's selling illegally pirated
   goods, they'll probably freeze his account.  At the least you can stop him
   for a while.

   On Fri, Dec 18, 2009 at 12:28 PM, Andrei gml...@gmail.com wrote:
Somebody on Craigslist selling our apps half price

   http://knoxville.craigslist.org/mob/1515792578.html

--
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.comandroid-developers%2Bunsubs
 cr...@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: Dont show Link Borders in WebView

2009-12-21 Thread ko5tik
What is wrong with CSS?

On Dec 20, 8:21 pm, guruk ilovesi...@gmail.com wrote:
 Hi, first thanks for all your previous help before :)

 Now I need a solution for HOW to disable the standart LINK Borders in
 a WebView!

 I mean. For example I have a page with some Pics or Text and all with
 Links.

 So when i Click on them .. the Android Browser shows me a orange
 Border around
 of them. I dont need that.. how can i disable that ?

 Thx
 Chris

-- 
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 get the highest framerate with this quellcode?

2010-01-02 Thread ko5tik
Depending on UI event handling to produce smooth
and accurately timed  animations is usually bad idea

In your code,  if you remove delay you are just trashing
event pipeline, so UI will (and certainly does) become irresponsive.
And if you keep it in, your delays are unpredictable
(let me Guess, you are sending messages because you can not
affect UI from non UI thread? )

I recommend to look into LunarLander sample. Basic idea for smooth
animation is:
1. Use Surface to draw ( any SurfaceHolder subclass ), you can access
it from any thread
2.  You animation loop looks OK
3. I would recommend to create  something like finite automate / state
engine
to  provide smooth and controlled transition between game states

You drawing method would look like:
 redraw() {
// field is prepared
Canvas canvas = holder.lockCanvas();
//  draw background
canvas.drawBitmap(field, 0, 0, null);
...  draw whatever you like
// push it to the screen
 holder.unlockCanvasAndPost(canvas);
}

have fun

-- 
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: Where can I get adds for my application?

2010-01-03 Thread ko5tik
As adsense for mobile is still beta,   they accept only apps
with 100K views a day ( and your is certainly not yet eligible,
or you would not ask this question )

BUt good news is,  that admob will accept it,  and they are about to
be bought
by google - so you will make it to adsense through back door in couple
of months

On Jan 2, 5:34 pm, Kumar Bibek coomar@gmail.com wrote:
 Well, Admob is a good choice. Also, you can try Adsense API by google.

 Thanks and Regards,
 Kumar Bibek

 On Dec 31 2009, 7:13 pm, Martin google-gro...@digle.de wrote:

  Hi!

  I want to write a game for the Market. So where can I get adds for it
  to earn some money (a page like admob.com for example)?
  I am searching for an advertising page, where I do not need to do
  anything and earn the most money. The ad-page has to dynamically
  change the content of my ads in my program.

  Greetings,
  Martin

-- 
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: Chinese company offers translation for right to publish app on their market

2010-01-08 Thread ko5tik
Why would it be illegal? If your application is under something like
CC, you already allowed it  - and there is a small checkbox which
allows
application to be taken off phone - also invitation to republish

-- 
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: Accelerometer Reading ranges

2010-01-15 Thread ko5tik


On Jan 14, 2:17 am, MPower123 michaelh...@gmail.com wrote:
 Hi,

 I am writing a game for android phone and I want to know what is the
 range of values that can be read from the accelerometer? I want to
 know how many Gs can be read from the accelerometer?
 Or is this dependant on the phone? I've seen an Iphone app that can
 read up to 2.5g, is this possible on android phones?

You can read model of a chip through sensor manager -  usually its
crappy
Bosh Sensortec BM 150  ( sells for about $ 1.5 a kilo) - datasheets
are available on internet.
Usually it set to 8G range, and delivers 256 distinct values, its
also pretty noizy - so not
await gtreat precision from 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: Accelerometer Reading ranges

2010-01-16 Thread ko5tik
It's accurate enough to steer a toy car on display by tilting
device, but I would not use this sensor to deliver  nuclear warhead
( there definitely better ones )

Of course you can write some filter, but it would be tricky because:
  - your sample times  are not guaranted to be equal (android is not a
realtime environment)
  - you get no more than about 100 samples per seconds
  - you get only 8 bit resolution over 16G
-- 
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: Accelerometer Reading ranges

2010-01-16 Thread ko5tik
I looked at my favorite seller of electronic stuff - while BMA1502
sells for 1.50  from 100+,
there are chips for about $120 apiece ( with much better resolution
and answer times) - guess which
ones will be built into your $300 smartphone ;)
-- 
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 doug_a...@yahoo.com 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: Are external libraries limited by Android version?

2010-08-10 Thread ko5tik


On Aug 9, 1:26 pm, FrEaKmAn zasebn...@gmail.com 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: 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: Converting XML into Java in Android

2010-08-19 Thread ko5tik


On Aug 11, 9:31 pm, Neilz neilhorn...@gmail.com 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: Greystripe experiences?

2010-08-26 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 andfa...@gmail.com 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: String being truncated when its long

2010-08-27 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 krishna.acha...@gmail.com 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 radzikowski.j...@gmail.com
 wrote:

  Could you try removing the responseHandler?

  On Thu, Aug 26, 2010 at 4:13 PM, Achanta krishna.acha...@gmail.com 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 radzikowski.j...@gmail.com
   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 krishna.acha...@gmail.com
   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);
 ResponseHandlerString 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.comandroid-developers%2bunsubscr...@googlegroups.com
   android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@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] 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 brione2...@gmail.com 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 danhi...@ieee.org 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 krishna.acha...@gmail.com 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);
   ResponseHandlerString 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


[android-developers] Re: Can you change permissions when you update an app?

2010-08-31 Thread ko5tik


On Aug 29, 12:19 am, chromedude srmorrison...@gmail.com 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: How to use D-Pad control in Android

2010-09-05 Thread ko5tik


On Sep 3, 3:34 pm, Dhrumil Shah dhrumilsh...@gmail.com 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: Need project idea

2010-09-06 Thread ko5tik


On Sep 5, 8:11 pm, sws-vinpa vincepascu...@gmail.com 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 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: new service: link to android market from device and computer

2010-04-05 Thread ko5tik


On Apr 5, 2:22 pm, Lance Nanek lna...@gmail.com wrote:
 What about Android devices without the Market app? I think I asked
 that last thread on this technique too, heh.

In this case just stream out your apk -  most devices will recognize
it and offer to install it

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: ad support?

2010-04-05 Thread ko5tik
Use admob since 4 months. February payouts are just processed
and landed in my paypal  (could be more ;) )

I'm satisfied.

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2010-04-05 Thread ko5tik


On Apr 5, 6:09 pm, Bob Kerns r...@acm.org wrote:

 Hashcode would not be secure. That is, you can construct an alternate
 app+signature that would produce the same hash code. That may be good
 enough for you, but I would discourage such a technique. However, you
 could construct a secure SHA-1 hash of the value!

The problem is,  that every other application can also read this
signature
and produce hash out of it...


 Unfortunately, the contract given for PackageManager does not even
 guarantee that you'd get the same 979-character string consistently,
 even for the same version of the same application. I'd be quite
 surprised if you didn't. A more relevant question is if you get the
 same value for two different versions of your app. If they include the
 hash portion of the signature, and its encrypted counterpart, then the
 answer is no.

I checked  - it was the same.  Otherwise market app/installer would be
unable to
check whether you are upgrading existing application.


 or user, yes, but application, no. Nothing in a .apk can be regarded
 as secret.

... It would be cool feature request  for android.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: ad support?

2010-04-06 Thread ko5tik


On Apr 5, 8:25 pm, Abdul Mateen abmat...@gmail.com wrote:
 Hi ko5tik,
 How much is your per day revenue with admob ? asking because mine is not
 good, instead of having 10K+ active installs.

Something to laugh at ;) Some 2-3$$ But I do not have to live off it,
as android development being my hobby
ATM.  I think it depends on nature of you application. My lines game
( http://www.cyrket.com/p/android/de.pribluda.games.android.lines/)
 is designed in a way to be used several hours at once (I observed
gameplay times over 100 hours in applet version) and is not time
constrained -
so there is a chance to display more ads and get click through from
users.

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: Activity Being Killed (onDestroy) on Orientation Change

2010-04-06 Thread ko5tik


On Apr 5, 7:50 am, Gaurav Vaish gvaish.i...@gmail.com wrote:


 b) The new instance which is created is automatically = onCreate,
 onPause, onStop, onDestroy now that's catastrophic.

  Any guesses as to why the new activity is killed? :(

God made it that way  are you sure, that onStop and onDestroy are
coming from newly created
activity instace? This could be as well race condition.

Treat activity as mere view part and keep business logic out of it and
you shall be fine.

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: Announcing RoboGuice 1.0

2010-04-06 Thread ko5tik
Hi Michael,

Being developer of pico I'm also watching  what you are doing ;)

Currently I'm not very happy with size (could/should be less)  and
inheritance.
Though inheritance problem could be solved easily - Just create static
method
which will inject supplied  object out of context:

RoboGuice.inject(this)

This (IMHO) would be less intrusive for users.

But I think there is more room for DI on android - not only in
interface creation

( I play with ideas to adapt pico,  but its core is currently too
big )
regards,

On Apr 6, 4:38 pm, Michael Burton m...@niskala.org wrote:
 Hi Matthias,

 I'm with you on the sluggishness issues.  I had to dial-back my use of 
 libraries like gson because the overhead just ended up being too high.

 In my experience, run-time impact of RoboGuice isn't that high.  As I was 
 telling Manfred a few days ago, I notice zero impact on the Nexus One or 
 Droid.  For older devices, it's possible to notice an impact during activity 
 startup if you're looking for it, but it's fairly innocuous.   Reading 
 reviews of apps that use RoboGuice indicates that it doesn't seem to be 
 something users are generally aware of.  I've got an action item (Issue #33) 
 to publish some benchmarks at some point.  Battery impact should be 
 negligible as roboguice doesn't really do anything in the background.

 APK size is an issue though.  Right now roboguice+guice adds about 450k (400 
 of that is just guice).  I think proguard could probably take out much or 
 most of that impact, but I haven't had a chance to get it working yet.

 In fact, if anyone is up for the challenge, I'd totally offer up a license to 
 IntelliJ 9 to anyone who can supply detailed instructions on how to use 
 Proguard with a roboguice android app.

 Any takers? :)

 Cheers,
 Mike

 On Apr 4, 2010, at 6:12 AM, Matthias wrote:

  I was thinking about using Guice myself before, but hesitated fearing
  to make the overall sluggishness of the platform even worse.

  How much of an overhead are talking about in terms of memory footprint
  and size of bundled libraries? Any noticeable impacts on speed or
  battery life? How often does Guice kick in in the background?

  I'm currently stepping back from overly abstract programming models on
  Android because of exactly these issues.

  On Mar 29, 8:53 pm, Michael Burton m...@niskala.org wrote:
  Hello Android developers,

  I'd like to announce the final release of RoboGuice 1.0!

 http://code.google.com/p/roboguice

  RoboGuice is a framework that brings the simplicity and ease of Dependency 
  Injection to Android, using Google's own Guice library.  If you've ever 
  used Spring (the #1 enterprise framework on Java, now more popular than 
  J2EE itself) or Guice, you already know how convenient this style of 
  programming can be.

  To give you an idea, take a look at this simple example of a typical 
  Android activity:

  class AndroidWay extends Activity {
      TextView name;
      ImageView thumbnail;
      LocationManager loc;
      Drawable icon;
      String myName;

      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);

          name      = (TextView) findViewById(R.id.name);
          thumbnail = (ImageView) findViewById(R.id.thumbnail);
          loc       = (LocationManager) 
  getSystemService(Activity.LOCATION_SERVICE);
          icon      = getResources().getDrawable(R.drawable.icon);
          myName    = getString(R.string.app_name);
          name.setText( Hello,  + myName );
      }

  }

  This example is 18 lines of code.  If you're trying to read through 
  onCreate(), you have to skip over 5 lines of boilerplate initialization to 
  find the only one that really matters: name.setText().  And complex 
  activities can end up with a lot more of this sort of initialization code.

  Compare this to the same app, written using RoboGuice:

  class RoboWay extends GuiceActivity {
      @InjectView(R.id.name)             TextView name;
      @InjectView(R.id.thumbnail)        ImageView thumbnail;
      @InjectResource(R.drawable.icon)   Drawable icon;
      @InjectResource(R.string.app_name) String myName;
      @Inject                            LocationManager loc;

      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);

          name.setText( Hello,  + myName );
      }

  }

  In this example, onCreate() is much easier to take in at a glance.  All 
  the platform boilerplate is stripped away and you're left with just your 
  own app's business logic.  Do you need a SystemService?  Inject one.  Do 
  you need a View or Resource?  Inject those, too, and RoboGuice will take 
  care of the details.  

  RoboGuice's goal is to make your code be about your app, rather than be 
  about all the initialization and lifecycle code you typically have to 
  maintain in Android.

  RoboGuice has been in development since August 2009, and 0.9 entered 
  release candidacy in 

[android-developers] Re: Announcing RoboGuice 1.0

2010-04-07 Thread ko5tik


On Apr 6, 9:06 pm, Michael Burton m...@niskala.org wrote:
 Hi ko5tik,

 Good idea, I agree that injection is not as simple as it should be for 
 objects instantiated manually.  I've added your suggestion 
 here:http://code.google.com/p/roboguice/issues/detail?id=34

 When you say you're not happy with inheritance, could you be more specific?  
 Do you mean how Activities need to inherit from GuiceActivity instead of 
 Activity?

Composition is usually more flexible as inheritance (as there is no
multiple inheritance in java) -  but for rigigng up interface it
should be less problematic.
as there is not much of reuse of activities between projects.

It would be interesting  to put some business code under DI -
injecting  textviews to them , so they can update values (maybe not
real text views, but
proxy wrapped one,  to overcome problems with interface thread. )

My actual playground:   I have highscore service which sits behind the
scenes and pulls  highscore updates over http  ( asynch)  -
it could receive HTTP-Connector as DI,  could be configured  via DI
with some propeties out of manifest and and reference to some
interface obect
to push highscores there - with   as few knowledge of android
whereabouts as possible.

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: How to parse JSON in Java?

2010-04-08 Thread ko5tik
...   and you can also [un]marshal it into java beans:

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: new service: link to android market from device and computer

2010-04-08 Thread ko5tik


On Apr 7, 8:49 pm, Lance Nanek lna...@gmail.com wrote:
 In this case just stream out your apk

 That would be great if it could be made to work. The problem is that,
 as far as I know, there is no way to tell if the particular device
 accessing the URL has Market installed. It isn't in the user agent. So
 the server wouldn't know if it should send the market redirect or
 stream the APK.

Delivering APK will work on most devices (there is usually custom mime
handler,
unless carrier decided to route everything to his own)

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: new service: link to android market from device and computer

2010-04-10 Thread ko5tik


On Apr 10, 2:33 am, Lance Nanek lna...@gmail.com wrote:
 Delivering the APK on most devices would be very bad. Users with the
 app installed via that method will not be able to rate or comment on
 the app's Market page, will not receive updates, will not count toward
 the app's download or install count.

Nevertheless, it will deliver application for those wuthout market app
installed
Or in case, when you are not yet ready to push it into 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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2010-04-11 Thread ko5tik

 I'm curious as to whether these are always the same, or generated for
 us and unique to each SDK install, but I'm not going to look just now.

It definitely varies -  I use several boxes for development (my older
laptop
retired to mother in law house ;) )  and I have to  uninstall apps
compiled with
debug keys  before I can start them from other box.

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: Google Checkout Merchant Account for Swiss Developer/Seller

2010-04-12 Thread ko5tik


On Apr 11, 4:12 pm, oxonom phyrum@sign.ch wrote:
 Maybe only a Googler can answer the following questions:
 - Is some working on activating Google Checkout Merchant Accounts for
 Swiss developers?

 - If so, when will it be ready?

Looking at the struggles of canadian developers, I think it would be
faster to
join EU that to persuade google  to extend checkout to yet another
country...

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: How to parse JSON in Java?

2010-04-13 Thread ko5tik


On Apr 12, 11:33 am, vworld4u vworl...@gmail.com wrote:
 You can use JSON Parser readily available for this purpose. Since
 Android platform is compliant with standard J2SE JDK, you can use the
 readily available open source JSON parsers.

You do not need any 3rd party JSON parsers, as android platform
already got 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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: Android Phones

2010-04-13 Thread ko5tik
There is a bunch of acer devices starting from about $100

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: twitter and facebook intent : suggestion for the community

2010-04-13 Thread ko5tik
Firinng
 new Intent(android.content.Intent.ACTION_SEND);

will prompt user for application to use for sending something -
be it twitter client,  or email programm.

And there is a lot of twitter APIs around (most of them need some
polishing
for android though ), even with zero auth.
I also would check manifest of  facebook application - chances are
that
it already defined some usefull intents

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: Being legally harassed, by a large iPhone developer

2010-04-13 Thread ko5tik


On Mar 23, 6:53 pm, Hong lordh...@gmail.com wrote:
 So NO ONE in the world can ever make a memory type of game EVER, except
 them?
You can,

but do not even dare to speak word memory publicly ;)

AFAIK,  game play itself is not patentable/protectable - only images /
artwork / sounds etc.
Lego got slapped by german court when they went after compatible
bricks.

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: twitter and facebook intent : suggestion for the community

2010-04-14 Thread ko5tik


On Apr 13, 8:35 pm, Darknoe noe6...@gmail.com wrote:
 I'm trying to develope a software that connects to facebook/twitter,
 which api are you using?

At the moment I evaluate.  There are several java API listed on
twitter website:

http://apiwiki.twitter.com/Libraries#Javanbsp

But I do not like them all due to:
   -  LGPL licvensing
   - heavyweight
   - external dependencies

IMHO,  they are usable out of the box,  but too heavyweight ( if my
app is about 200K,
I'm not eager to bundle another 500K with it)

And for application just sending updates they just do too much

So I'm throwing something together with 0Auth + JSON serialiser of
mine + HTTP client stuff
included in android (I need only send and receive updates)

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: twitter and facebook intent : suggestion for the community

2010-04-14 Thread ko5tik


On Apr 14, 8:35 am, remy berrebi zehunte...@gmail.com wrote:
 @ko5tik: thanks for your answer, but i atually want to use intent without
 any prompt. to let user save time and not click thousand time which program
 he want that i use to send new twitt :-)

Then you need an api.

 about facebook i didn't find any intent about it.

Look into theirt manifest

 my gaol is to use authentification already setup on another twitter/facebook
 client to not store credential, and to not ask once again to a user to enter
 is user/password.

oAuth is the tool of choice for this. (though a little tricky )
Your app requests security tokens from twitter to access some
account,
and account owner has to autorise it (and has power to revoke it at
will) - so your
app does not need to store or even know about credentials.

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: twitter and facebook intent : suggestion for the community

2010-04-14 Thread ko5tik


On Apr 14, 4:44 pm, zehunter zehunte...@gmail.com wrote:
 just to know, is my idea to use intent/contentprovider, or any other
 mechanism from external application is not a good idea?

Idea  is basically good,  but it would require some political
skills to persuade developers to actually offer such intent
(and all the different develioers out there shall agree on some common
format)

 i mean, what i try to suggest is about people that already did a
 Twitter client and / or facebook one, to maybe add some additinal
 functionality, to allow us to interact with their application (if it's
 installed of course) using probably intent or
 startActivityForResult ...

...  start talk to them . You will find contacts in 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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: Motorola Droid JPEG files not standard?

2010-04-15 Thread ko5tik


On Apr 14, 7:36 pm, Jules julianna.wil...@gmail.com wrote:
 Hello,

 I manage a project where users upload JPEG images for processing.
 Generally the images are taken with Nikon cameras, but recently one
 user took images with a Droid and the client software did not
 recognize the Droid JPEG images for upload.  The client software
 developer said it's because they read images written in the standard
 JPEG file interchange format (JFIF), and Droid JPEGs are not in this
 format.

AFAIR, there are some 27 algorythms of JPEG,   number 5 being most
common.
But even within JFIF there are possibilities to screw up (badly
programmed) clients.
I remember that too large huffman tables produced buffer overflows on
some medical image viewers.

 Why, and can this be corrected?

I would look on client side (I bet that images coming from droid will
pass
verification and compliance tests)

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

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: Added core Library by mistake..

2010-04-23 Thread ko5tik
Just edit your project classpath path and throw ( do not export) away
android.jar


-- 
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: Unit Testing : Who uses it ?

2010-04-23 Thread ko5tik


On Apr 23, 2:35 pm, Gubatron gubat...@gmail.com wrote:
 I've come to use Unit Tests organically.
 Certainly I don't write unit tests first, I write tests to make sure
 what I've coded works the way it's supposed to.
 I also add more tests whenever I find bugs.

 Of course not everything can be unit tested, but most things can be.

I found jmockit ( not to confuse with jmock!) extremely usefull in
creation of
unit tests. It can easily mock interactions with any android objects,
and even
superclasses of my activities so I can unit-test them

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Market update of an app installed from another source?

2010-04-24 Thread ko5tik


On Apr 24, 7:07 am, joebowbeer joe.bowb...@gmail.com wrote:

 Can an app that was installed from an unknown source be updated from
 the Market?  For example, if a private beta  is conducted off-market,
 will the beta users be able to update from the market after the app is
 published?  Or will they have to uninstall the beta version before
 installing the market version?

 I'm assuming that the certificate and package name of the beta app
 match those of the market app.

Market app will not know about app installed via other means, but as
long as certifikate  package
are the same it will install it over existing application

-- 
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: Registering as developer HELP

2010-04-24 Thread ko5tik


On Apr 23, 11:15 pm, ~ TreKing treking...@gmail.com wrote:
 On Fri, Apr 23, 2010 at 1:51 PM, Waj arjun.s@gmail.com wrote:
  Is there any alternative for this?

 Get a parent to sign you up?

Google checkout uses billing address as developer information -
so no credit card lending...   I got credit card for this purpose only.

-- 
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: Game stutters when drawing outside screen

2010-04-26 Thread ko5tik
I would say that you do not need to redraw that image part
every frame - nothing happens there,  and as there are no overlapping
window on
android there is no need to repair it.

-- 
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: Game stutters when drawing outside screen

2010-04-26 Thread ko5tik


On Apr 26, 10:26 am, Peter peteroerlem...@gmail.com wrote:
 Thanks for the suggestion.
 I probably shoud have mentioned this in my original post. Objects
 sometimes leave the screen, therefore they are party drawed outside
 the screen until they are removed. On 320x480 screens this isn't
 visible, but on bigger screens it is. Drawing the image every frame
 solves this problem.

AFAIR, almost every glyph/bitmap  drawing method sports a variant
with
clipping rect.

Alternatively you could provide background for hi res - would look
better
than scaled up 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: About AdSense for Mobile Applications

2010-04-27 Thread ko5tik
Google will accept your app if you got enough hitsa
( last time I checked, it was 100K daily )

Go for admob instead:

http://admob.com

( and you will land by adsense once they are bought by google )

On Apr 26, 2:41 pm, s-hiro...@hirookaservice.co.jp s-
hiro...@hirookaservice.co.jp wrote:
 Nice to meet you.
 It is Syougo Hirooka.

 I am Japanese.

 Hereafter, App of Google Android is made.

 All App is opened to the public free of charge.

 The beta version of AdSense for Mobile Applications

 It is thought that it used it.

 How can I obtain the beta version of AdSense for Mobile Applications?

 I want to try not to have done yet in Japan.

 And, I want to use AdSense for Mobile Applications early.

 Please tell me.

 Thank you very much.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 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: Game stutters when drawing outside screen

2010-04-27 Thread ko5tik


On Apr 27, 2:08 pm, tobias429 ecker...@gmx.de wrote:

 As soon as I draw a bitmap and the OS has to adjust the size of it,
 the game begins to stutter as the resize operation takes a lot of CPU
 time, and what's worse, it seems to take a different amount of time
 every frame. Don't know if you might be seeing the same effect.

It's not only CPU, but also memory access...

-- 
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: htc droid incredible

2010-05-03 Thread ko5tik


On May 2, 5:43 pm, Simone simone.russ...@gmail.com wrote:
 Just a couple of questions. If I buy the droid incredible, would I be
 able to:
 -use it in Italy

Why not?  It surely can use all the mobile standards in place.

 -run my applications on it
Ig this is compatible with android version - why not?

-- 
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: deserialize byte[]

2010-05-10 Thread ko5tik
Sending serialized bytesteam over the internet  is generally bad idea
-
it's really difficult to ensure serialised bytes compatibility on both
ends
(JVM version, serial vgersion UID and couple of other factors really
matter.)

If I were you, I would use JSON / XML data binding for this purpose


On 10 Mai, 02:33, dillipk codersnet2...@gmail.com wrote:
 Hello,
   I am trying to deserialize some byte[] data which the app receives
 from server in android,  but the data after deserialization isn't
 correct.

   Below code works absolutely fine with BlackBerry, but I wonder why
 it doesn't in android..!!!? AM I MISSING SOMETHING??? Any help on this
 is highly appreciated..
 
 String fiename;
 String email;
 byte[] byteImageData = null;

 public void deserialize(byte[] array) throws IOException {
         System.out.println(begin DeSerializing UserAdInfo :);
         ByteArrayInputStream in = new ByteArrayInputStream(array);
         DataInputStream dIn = new DataInputStream(in);

        filename = dIn.readUTF();
        email = dIn.readUTF();

        byteImageData = new byte[dIn.available()];
        dIn.read(byteImageData);

     }

 

  If there is some sample source to support deserialzation in android
 would be a great help..

 Thanks in advance..

 Regards,
 -DK

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

2010-07-06 Thread ko5tik


On Jul 6, 12:01 am, moneytoo m...@seznam.cz 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: paypal mobile payment allowed?

2010-07-07 Thread ko5tik


On Jul 6, 10:19 am, Al Sutton a...@funkyandroid.com 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: Easy and fast XML Parser?

2010-07-13 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 flyingdutc...@gmail.com 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 siva.d...@gmail.com 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: 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 sohan.bad...@gmail.com 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: Authenticating an app

2010-07-20 Thread ko5tik


On Jul 19, 9:02 am, Ken ken0624...@gmail.com 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: Twitter / Facebook source code

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

On Jul 20, 12:23 pm, oriharel ori.ha...@gmail.com 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: ADB, HTC Hero and 2.1 Update

2010-07-21 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 kiril.nedial...@gmail.com 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.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To 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 paul.turche...@gmail.com 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: 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 av8r.st...@gmail.com 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: 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 jason.poli...@gmail.com 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: Is anyone's active install % dropping like a rock lately?

2010-09-21 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 fabrizio.giud...@tidalwave.it
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: how to send data to server while recording

2010-09-21 Thread ko5tik


On Sep 21, 8:13 am, cindy ypu01...@yahoo.com 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: Service, AsyncTask, or both?

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

2010-09-22 Thread ko5tik


On Sep 21, 10:35 pm, Indicator Veritatis mej1...@yahoo.com 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: 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 to send data to server while recording

2010-10-08 Thread ko5tik


On Oct 8, 2:44 am, cindy ypu01...@yahoo.com 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: 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-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: Stolen app on market

2010-10-13 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: 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 myleshathc...@gmail.com 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: 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 denpe...@gmail.com 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: 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 atik0...@gmail.com 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 webnet.andr...@gmail.com wrote:

  On 22 December 2010 04:02, Vikram vikram.bodiche...@gmail.com 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: 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: Which JSON Parser is better

2010-12-26 Thread ko5tik


On Dec 25, 11:51 pm, DanH danhi...@ieee.org 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


  1   2   >