[android-developers] Re: ContentProvider - Update Field with multiplication result of other

2012-01-20 Thread Yahel
 but my surprise was find in column total this
 content: Price * Quantity

Hi,

Why is it a surprise ? That is exactly what you are asking Android to
do : Put the STRING : OrderLineContract.Columns.PRICE +  *  +
OrderLineContract.Columns.QUANTITY in the column total.

Your question shows a real gap between what you want to achieve and
what you know about programming. Kind of like : I want to play in the
NBA but what is this orange round-shaped thingy for ?

OrderLineContract.Columns.PRICE does not contain the value of the
field, it contains the name of the field
Using aVariable1 + * + aVariable2 does not multiply, it concatenates
the string.

You should really start here : 
http://docs.oracle.com/javase/tutorial/java/nutsandbolts/index.html

Good luck.

Yahel

-- 
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 disable copy/paste in EditText

2011-12-21 Thread Yahel
I've just found the answer to that so I'll put it here for other
Googlers reference, but  as Mark said : It can be really user-hostile.
So you have to use this only in perfectly defined situations and be
sure you won't upset your users by implementing this.
 For example, in my app people can put comments on photographs. These
comments should be unique to keep the freshness and since the subject
of the app is prone to a lot of spam and, it allows me to stop a
spammer from just going on random pictures pasting the same comment
over and over again.
So here it goes. In your activity ad the following :
       @Overrideprotected void onCreateContextMenu(ContextMenu menu)
{   //super.onCreateContextMenu(menu); //Be sure to 
comment this line
or remove it completely.menu.clear();   }
Yahel

-- 
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: Current mobile connection speed?

2011-12-14 Thread Yahel
Not exactly what you ask for but this is how I do it.

I'm not trying to be specific about the speed in kbs of the connection
because it can change a lot due to the user moving from cell to cell.
So I simply detect what kind of mobile connection we are on and send a
slow connection warning only when connected via EDGE or GPRS.

Here is the code that returns true if the connection is a slow one :

public boolean internetConnectionIsLowSpeed() {
ConnectivityManager connec = (ConnectivityManager)
getSystemService(Context.CONNECTIVITY_SERVICE);

if (connec.getActiveNetworkInfo()==null) return(false);


if
(connec.getActiveNetworkInfo().getType()==ConnectivityManager.TYPE_WIFI)
{
return(false);
}

if
(connec.getActiveNetworkInfo().getType()==ConnectivityManager.TYPE_MOBILE)
{

switch(connec.getActiveNetworkInfo().getSubtype()) {
case TelephonyManager.NETWORK_TYPE_GPRS : 
return(true);
case TelephonyManager.NETWORK_TYPE_EDGE : 
return(true);
case TelephonyManager.NETWORK_TYPE_UMTS : 
return(false);
case TelephonyManager.NETWORK_TYPE_UNKNOWN : 
return(false);
default : return(false);

}
}

return(false);
}

-- 
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: Method to take Wireshark traces

2011-12-06 Thread Yahel
Sorry mate but your question is about java on a desktop, not on
Android.

Maybe try to ask on a java forum.

Good luck.

Yahel

On 6 déc, 07:49, Tom avayam...@gmail.com wrote:
 HI All,

 Here i have copied the code. I am trying to write a code (for
 phone automation) using which i want to connect to wireshark and start
 taking traces on that.
 while the wireshark is running i am doing some activities on phone like
 make calls, browse websites etc.
 When I am done with that, I want to stop wireshark to take more traces.

 The problem in the code below is, with the line in red color. I cannot go
 to next step till i dont get out of that line. i.e. if i once start
 wireshark traces, it does not stop and if i stop to
 go to next step, i cannot capture traces. Please help me to find out any
 work around for that. Its ok if i can write wireshark part and other
 application activites in two diffrnt methods.

 try
 {
 String line;
 File file = new File(C:\\+filename);
 Writer output = new BufferedWriter(new FileWriter(file));
  Runtime rt = Runtime.getRuntime() ;
 Process p = rt.exec(start /B C:\\Program Files\\Wireshark\\tshark.exe -i 2
 -a duration:100);
 BufferedReader bri = new BufferedReader (new
 InputStreamReader(p.getInputStream()));
 while ((line = bri.readLine()) != null)
 {
 output.append(line);}

 output.close();
 bri.close();
 //System.out.println(Done.);

 p.destroy() ;
 //System.out.println(Run);}

 catch(Exception exc)
 {
 exc.printStackTrace();
 System.out.println(Error running wireshark);

 }

 Thanks.

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


[android-developers] Re: Bad implementation of GPS on Samsung Galaxy tabs?

2011-12-06 Thread Yahel
You do know that GPS is based on satellites that revolves around the
earth in space ?

Once inside, your GPS on ANY device will have a hard time getting a
clear sky view, let alone synchronise with enough satellites to get a
position.
You might have some luck if you are near a window, but anyway, since
it will have a hard time getting a fix, it will try and try and try
and your battery consumption will go up and up and up.

Good luck.

Yahel

On 6 déc, 08:51, Terry terb...@gmail.com wrote:
 I have an app which uses the GPS, and e.g. requests an update only
 every 10 minutes. This results in almost no extra battery consumption
 on ordinary phone devices with Android 2.x. When I try the same app on
 a Galaxy Tab 10.1 with android 3.1 INDOOR, it uses the battery like
 crazy. The GPS indicator indicates that the GPS searches for a
 position most of the time. Outdoors it works more as expected. It
 seems that when the GPS has problems getting a position fix, it keeps
 trying. Have anyone else experienced this? Is it a problem with the
 Galaxy Tab, or with Android 3.x? Are there any work-arounds?

-- 
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: strange error

2011-10-30 Thread Yahel
 ProgressThread cannot be resolved to a type

You probably got your code from a sample or an existing project but
forgot to include a file or part of a file that defines the class
ProgressThread.

Take a look in the original folder for a file called :
ProgressThread.java and include it in your new project.

Yahel

-- 
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: Publish modified APK to the Android Market without triggering an Update to existing users?

2011-09-10 Thread Yahel
 However, you should not discount the question for what it is. It
 benefits us all to understand the nuances of the Android market and
 the publishing process. Its a technical question, so let's find an
 answer.

As I told you in my previous answer :

Trying to upload an apk with the same or lower version number from the
current one will only give you an error message.

It will not break anything. It is actually one of the few thing that
doesn't break in the Android Market.

If you are afraid to try it for yourself and you don't seem to want to
hear it from us, then it is going to be hard to end that thread. So I
repeat :

YOU CAN NOT DO THAT BUT IF YOU TRY IT WILL NOT BREAK ANYTHING.

Loud and clear ?

:D

Yahel

-- 
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: Webviews side by side

2011-09-08 Thread Yahel
 I have two Webviews side by side, and, when one of them gets scrolled
 vertically, I need to scroll the other.

Second answer on Google for  Android webview scroll :

http://stackoverflow.com/questions/2238938/how-to-programmatically-scroll-android-webview

Yahel

-- 
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: Publish modified APK to the Android Market without triggering an Update to existing users?

2011-09-08 Thread Yahel
You can't upload a new apk with a lower version number than the
current one on the market.
You can try it for yourself. Nothing bad will happen, you'll just get
an error stating what i've just mentionned.

Don't be to worried about frustrating people.
You can simply add a quick note at the top of your description and in
the recent changes :

* The new update is preparing the ground for the awsome new
feature coming this month. So stay tuned

And there you go. Simply email this line to the few that will email
you and you're done.

Good luck.

Yahel

-- 
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: question about other markets

2011-08-08 Thread Yahel
Hey Jim,

Sorry, don't want to be harsh or anything so please take the following
as constructive criticism.

More markets won't help your apps. The Android Market is like Goliath
and even Amazon looks like David. Others are just ant-sized compared
to the official market.
So if your app doen't perform at all on the Android Market(No
download, no paid install), the problem is not exposure but your app.
Google announced 600 000 new Android phone are activated per DAY !!
That's a lot of exposure !!

I've checked the page of your Bouncing buckies app on the market.

The target audience for your app seems extremely limited, maybe
chemists that work in the carbon field and love their job so much that
they find buckies fun to watch on their leisure time.
Beside, I can tell you know how to code and do it well, but you are
lacking, just as I do and many of us engineers do : Graphical, art
skills. That is just not our thing.
People will download an app even if it's not close to their taste if
the screenshots and the video give them the Wow effect !!

Since it is obvious you don't mind hard work, instead of putting said
hard work in publishing on other markets, here is what I would do to
boost your profit on Android :
- Drop ultra-niche audience : Android phones and tables are a huge
thing among 18-45 males, half the audience is from the US, half from
the rest of the world
- Make a game : Interactivity with our phones is key. It is the second
category of the market that has the most downloads
- Make a very useful app : Something that you would use on a daily
basis yourself
- Find a friend(kid at the local school ?) that can draw. Like really
draw and have him/her photoshop all the artwork for you, you'll pay
them in pizza or something. Then make your game/app/livewallpaper with
it and respect the artwork as truly as possible.

That's just my two cents. Feel free to disagree :)

Take care and good luck with your android endeavours :D

Yahel



On 8 août, 05:17, Jim Graham spooky1...@gmail.com wrote:
 On Sun, Aug 07, 2011 at 07:53:31PM -0700, Chrystian Vieyra wrote:
  I think the only other big market is amazon app store. I am not a big fan of
  amazon app store, as amazon gets to set the app price

 Ok, then ... three questions:

    1) do I get to set a minimum price?
    2) how much of [price] do they take?
    3) do they have a sign-up fee and/or per-listing fee (as I've heard
       Apple does---I read a comment that they charge $100/app uploaded
       to their market...don't know if it's true or not)?

 I'm sitting here looking at a Market that has failed to list Bouncing
 Buckies in the new apps list, and [GASP! SURPRISE] only one (known)
 paid install...and that one probably came from my listing in the
 Android Forums new app announcements page  I made some changes to
 all of the pages for it today (added a YouTube video), but still have
 yet to see anything ... but, because of a known bug, there could be
 another one, or another hundred or more, or . who knows, and from
 what the bug listing says, it might be a while before I know about any
 of them (if any exist).  I'm getting really, really frustrated.  I don't
 even know whether I should work on and release another one, or wait
 I have the ideas, but.  (sorry...I'll stop the frustrated rant now)

 So I'm seriously considering additional listings on other markets

 Thanks,
    --jim

 --
 73 DE N5IAL (/4)            MiSTie #49997       Running FreeBSD 7.0 
 spooky1...@gmail.com                    ICBM/Hurr.: 30.44406N 86.59909W

                My policy on spammers:
                   Castrate first, ask questions later.

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

2011-08-05 Thread Yahel
Hey G.,

Redirection is done on the server side. So you don't really have a way
of controlling that.
The server does the redirection wether you like it or not BEFORE
sending any web pages. So that you can't get the original site you
were going for if the server doesn't let you.

I'm not sure I understand why you would want to override the
redirection but my guess is that you are redirected to a mobile
website and that you want to land on the desktop website.
In this case, depending on what triggers the redirection on the
server, you might try changing the User Agent and/or display size
header of the request.

Most website use the User Agent header to tell if the user is on a
mobile device or on a desktop computer and then serves the website
accordingly.

Good luck.

Yahel




On 5 août, 10:16, gaurav gupta gaurav.gupta...@gmail.com wrote:
 Hi Guys,

 M calling a webview to show a website, but in mobile or tab.
 but url is redirecting .
 i want to open a particular website , not its redirected url.
 m using this code ,
 Kindly check my code and let me know where is problem.
 its urgent.
 Thanks in Advance.

  WebView mWebView;
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);

         mWebView = (WebView) findViewById(R.id.webview);
         //mWebView.getSettings().setJavaScriptEnabled(true);

         mWebView.loadUrl(example url);
     mWebView.requestFocus();

         mWebView.setWebViewClient(new WebViewClient()
         {

         @Override
         public boolean shouldOverrideUrlLoading(WebView view, String url){
         // do your handling codes here, which url is the requested url
         // probably you need to open that url rather than redirect:
         view.loadUrl(url);
         return true; // then it is not handled by default action
         }});

         }

-- 
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: Request to Google's Android SDK team

2011-07-24 Thread Yahel
 If my users were inconvenienced, I would try to give
 them a temporary solution to hold them over until I have a good solution.
  But that's just me.  It's a difference in engineering philosophy.

Your innocence is touching :D

Google doesn't have users, it has beta-testers.
I know it's going to hurt the engineer in you but Google expects you
to work the way they do : Launch bêta-4 crashes out of 5 launch-no
graphic design-not usability-tested app and simply add a way to
monitor the crashes and beta-testers(users:) feedback.

It worked well for them. But to be fair they just copied Microsoft
recipe :D

Beside, you have 600 000 new potential customer every day, so if the
600 000 of today are upset, well you'll do better tomorrow :D It's
called the Google Way :D

Yahel.

-- 
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: croping, scaling and rotating a Bitmap make my app crash

2011-06-23 Thread Yahel
Bitmap + Android + Memory = PIA

Look into BitmapFactory.Options to be used with a BitmapFactory
http://developer.android.com/reference/android/graphics/BitmapFactory.Options.html

and specifically the inSampleSize options and try to find the
balance between memory usage and image quality.

Small device = small memory = small bitmaps or Dalvik will commit
suicide :D

Yahel

-- 
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: Application exits silently

2011-06-23 Thread Yahel
Application that exit prematurely are usually only silent to end
users.

But you as an Android Developper my friend, you have tools that will
make regular people look at you in awe and scream your name. Girls
will probably try to rip your shirt off too... You've bee warned  :

Look into the mighty LogCat of hell and be prepared to see dead
PackageManager.

Yahel

-- 
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: Alarm Service

2011-06-23 Thread Yahel
 Where I can use Alarm Service, looks like the schedule information will be
 persisted only till the device gets boot up.

The drunk coder from India strikes again :)

If you wonder how these messages gets here :

Prakash gets drunk, then comes home :

My wife that B..ch.I'll have a boat one dayAnd then he tells
me...Oh WTF...Oh yeah Android...Alarm service...Need to pee

and falls asleep :D

Yahel


On 23 juin, 16:03, Sivaprakash sivaprakashshanmu...@gmail.com wrote:


 --
 - Prakash.

-- 
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: Please review check my newly launched app.

2011-06-23 Thread Yahel
Hi Abdul,

I am going to share a long long secret tradition among developpers
with you.
Please do not go and tell others about it as it is so very secret.

A long time ago, a thursday around 11h23 in 1982, an obscur, dark and
dangerous age where software companies had to pay the beta-testers
mafia, a young man by the name of Gates decided to take his fate and
ours in his own hands.

Those beta-testers are parasites he said. And the crowd cheered...

Those beta-testers are like users but we have to pay them instead of
getting paid for our buggy code...And the crowd cheered and
boooed

Those beta-testers smell bad under the armpit he added for good
measureAnd the crowd cheered and boooed some more again.

A new age was born : Users are beta-testers and they pay us to be just
that.

So don't be a fool, do just like the Android Market single-man Team
or the Microsoft Word team : Ship your crap to the world and they'll
tell you what's wrong with it.

Oh and by the way this technique is called : User feedback (and
wink;) ... Don't forget to wink after you say it, it will tell people
who are in the know that you are on the same page.

Yahel

-- 
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: textview and unicode

2011-06-20 Thread Yahel
As Zsolt and Kostya already told you Android won't have a font that
includes such special characters.

The one you seem to want to use looks like a printer thingy. If you
are trying to use unicode characters as icons then you'd better start
using Pngs for your icons. Including a font that would hold all of the
fancy characters in unicode up to #5000 will add at least 1-2 Mb to
the overall size of your app.

A png saved for web in 48x48 is less than 10 Ko. And you can use it as
the background of your text field.

Yahel


On 20 juin, 14:25, dashman erjdri...@gmail.com wrote:
 i'm setting some text into textview

 .setText( \u2399 );

 not working - shows up as a box.

 help!

-- 
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: Strange exception

2011-06-17 Thread Yahel
That's what the first three lines of your stacktrace suggest.

Yahel

On 16 juin, 18:33, Felix Garcia Lainez fgarcialai...@gmail.com
wrote:
 Umm... So the error is on one of my touchevents implementations for
 textview objects (and subclass like edittext)?

 On 16 jun, 15:00, Yahel kaye...@gmail.com wrote:







   really would be crazy, no?

  Crazy ? Yes ! Tedious ? Yes !

  But you can probably narrow it down since it is raised by a TextView
  ontouch event.

  Have fun :)

  Yahel

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

2011-06-17 Thread Yahel
The Ice Cream Sandwich Android team ???

These guys never stop, I eagerly wait of their Tomorrow Lottery
Numbers API. Such an helpful piece of coding.

Do you think they'll include a getCellPhoneNumberForStalkingPurposes()
and a howToGetInHerPantsToBeACelebrityToo() method in the celebrity
one ?

I sure could you use the fame :s

Yahel

-- 
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: Strange exception

2011-06-16 Thread Yahel
Hi,

It can really be anything. Modded Rom, bad implementation by a few
manufacturer of some of the apis.

As Treking told you, in those case your best bet is to use your
uncaught exception mecanism to send yourself internal logs that you
generate for yourself. Not only the stacktrace but a detailed log of
whats happening in your app and that you can customise.

Store every action your user does, everything your app does  in an
Array.
Using a 16:29:12 Before action X, 16:29:15 During action X, 16:30
After action x protocol.

And when your app crashes, send this array in your report. You'll then
see the chronology of events and maybe you'll catch the culprit that
kills your app.

My two cents : Most not in my code bugs are generated on objects
creation (eg. AudioBuffer audioB = new AudioBuffer(); ). So be sure to
put a log line just before and a log line just after any of those.

Long and tedious...Yes...Efficient...Yes :D

Yahel

-- 
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: Strange exception

2011-06-16 Thread Yahel
 really would be crazy, no?

Crazy ? Yes ! Tedious ? Yes !

But you can probably narrow it down since it is raised by a TextView
ontouch event.

Have fun :)

Yahel

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


[android-developers] Re: Google removed 10 mallware apps - I'm affected. Please help

2011-06-14 Thread Yahel
Sorry that you only found out now about google's ways of doing things.

That is true to everything Google and that's the best advice I can
give you : Never ever rely on one of their ecosystems to be your only
source of income.

Actually you can broaden this : Never ever rely on anyone ecosystem to
be your only source of income.

But it is especially true for Google : You see, they seem like a huge
company making billions of dollars in benefice each year so you'd
think they would have a huge staff helping their users, communicating
before taking decisions, warning people of services disruption, not
pushing piles and piles of bugs into the Android Market each and
everytime they upgrade it since there is a good 10 000 developers
using it.

But the truth is : For every project Google launches the team that
works on it is only of 2-6 people. Only engineers, no designers, no
graphists, no supervisors, no usability engineer. And with such small
teams for applications that have tenth of thousands users you can
easily see how they have no time to treat things case by case.

So what happened to you is something like this : An engineer found out
that one malware used permissions XX and a specific access to i/o via
NDK. So since he has no time for these foolisheries he just pulled all
the apps that have these specifics in their code.

- That's 10 apps and there is one with 6,5 millions downloads and a
five star rating and no complaints
- Yeah I don't care we don't have time for this, pull the plug !!

For what it's worth, with a delay of two weeks I was able to have a
contact with the Android Market team once on this mail address :
android-market-support AT google.com

I really feel your pain and I hope you get it sorted out.
But be sure to start several other apps for iphone as I did and find
other revenues that do not depends on someone else framework.

Good luck.

Yahel



On 14 juin, 10:57, n.a devuni...@gmail.com wrote:
 Hello Guys and Google,
 I'm the developer of the most popular flashlight application on the
 Android Market - Tiny Flashlight + LED (over 6.5 million downloads,
 top 50 in the overall applications ranking).

 Today I found that Google have deleted my developer account without
 any notice and removed Tiny Flashlight from the market. I saw the news
 that Google removed 10 malware apps from the Android Market 
 (http://phandroid.com/2011/06/14/google-removes-10-new-malware-apps-fr...
 ) and decided to write you.

 Seems like I've been affected by this and I hope this will be resolved
 soon, because I have invested a lot in Tiny Flashlight. For the one
 year since Tiny Flashlight has been released, I've managed to create
 one of the best android applications on the market. Although a
 flashlight application seems easy to create, it's actually quite hard
 on android, because the different hardware vendors have different
 camera drivers and this requires a lot of workarounds just to start
 the camera led / flash. This takes a lot of time and investment. In
 the last 4 months alone I had to buy over 20 different android
 devices, spend huge amounts of time finding a way to start the led on
 these devices and making the whole process trouble-free for the user.
 I've also gone a step further. Tiny Flashlight is one of the few
 applications, which supports all android versions on the market - 1.5,
 1.6, 2.1, 2.2, 2.3, 3.0, and 3.1. It's the only flashlight
 application, which still works on Motorola Quench / i1 / Backflip (all
 Android 1.5).

 Tiny Flashlight has become my primary source of income and the
 investment I've made is huge. Every single line of code has been
 written by me (except the Admob, Millennial Media, and Flurry SDKs,
 but I think they are respectable companies and would never allow any
 malware in their distributed SDKs).

 I just can not afford to make the tiniest mistake with Tiny
 Flashlight, because it's one of the top applications on the market and
 I have over 4 million active users and I've invested my life into
 this.

 I’m angry that Google never contacted me. They just deleted the whole
 account. I hope that they will fix it soon, before I lose my users and
 ranking position.

 http://www.appbrain.com/app/tiny-flashlight-led/com.devuni.flashlight

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


[android-developers] Re: Google removed 10 mallware apps - I'm affected. Please help

2011-06-14 Thread Yahel
I'm sorry to be that guy, but you really should start thinking that
they really just deleted everything about your account, not just hid
it somewhere and are able to put it back up for you. That's the thing
about general intervention and not case by case intervention : Fire
and forget.

I really do hope for you that this time the Android Market Team has
been a little more profesionnal and kept backup but I really wouldn't
count on it if I were you.

Come back to tell us what happenned if they ever get back to you.

Good luck mate.

Yahel



On 14 juin, 14:29, n.a devuni...@gmail.com wrote:
 Apple, at least, gives you 5 days to fix your issues and doesn't
 suspend the whole account.
 This is a bad situation to be in. I've sent an e-mail to android-
 market-support AT google.com but if they answer me after 2 weeks all
 will be lost. I'll lose my ranking position and will never be able to
 come back. A whole year of investment deleted in a single click.

 On Jun 14, 1:44 pm, Yahel kaye...@gmail.com wrote:







  Sorry that you only found out now about google's ways of doing things.

  That is true to everything Google and that's the best advice I can
  give you : Never ever rely on one of their ecosystems to be your only
  source of income.

  Actually you can broaden this : Never ever rely on anyone ecosystem to
  be your only source of income.

  But it is especially true for Google : You see, they seem like a huge
  company making billions of dollars in benefice each year so you'd
  think they would have a huge staff helping their users, communicating
  before taking decisions, warning people of services disruption, not
  pushing piles and piles of bugs into the Android Market each and
  everytime they upgrade it since there is a good 10 000 developers
  using it.

  But the truth is : For every project Google launches the team that
  works on it is only of 2-6 people. Only engineers, no designers, no
  graphists, no supervisors, no usability engineer. And with such small
  teams for applications that have tenth of thousands users you can
  easily see how they have no time to treat things case by case.

  So what happened to you is something like this : An engineer found out
  that one malware used permissions XX and a specific access to i/o via
  NDK. So since he has no time for these foolisheries he just pulled all
  the apps that have these specifics in their code.

  - That's 10 apps and there is one with 6,5 millions downloads and a
  five star rating and no complaints
  - Yeah I don't care we don't have time for this, pull the plug !!

  For what it's worth, with a delay of two weeks I was able to have a
  contact with the Android Market team once on this mail address :
  android-market-support AT google.com

  I really feel your pain and I hope you get it sorted out.
  But be sure to start several other apps for iphone as I did and find
  other revenues that do not depends on someone else framework.

  Good luck.

  Yahel

  On 14 juin, 10:57, n.a devuni...@gmail.com wrote:

   Hello Guys and Google,
   I'm the developer of the most popular flashlight application on the
   Android Market - Tiny Flashlight + LED (over 6.5 million downloads,
   top 50 in the overall applications ranking).

   Today I found that Google have deleted my developer account without
   any notice and removed Tiny Flashlight from the market. I saw the news
   that Google removed 10 malware apps from the Android Market 
   (http://phandroid.com/2011/06/14/google-removes-10-new-malware-apps-fr...
   ) and decided to write you.

   Seems like I've been affected by this and I hope this will be resolved
   soon, because I have invested a lot in Tiny Flashlight. For the one
   year since Tiny Flashlight has been released, I've managed to create
   one of the best android applications on the market. Although a
   flashlight application seems easy to create, it's actually quite hard
   on android, because the different hardware vendors have different
   camera drivers and this requires a lot of workarounds just to start
   the camera led / flash. This takes a lot of time and investment. In
   the last 4 months alone I had to buy over 20 different android
   devices, spend huge amounts of time finding a way to start the led on
   these devices and making the whole process trouble-free for the user.
   I've also gone a step further. Tiny Flashlight is one of the few
   applications, which supports all android versions on the market - 1.5,
   1.6, 2.1, 2.2, 2.3, 3.0, and 3.1. It's the only flashlight
   application, which still works on Motorola Quench / i1 / Backflip (all
   Android 1.5).

   Tiny Flashlight has become my primary source of income and the
   investment I've made is huge. Every single line of code has been
   written by me (except the Admob, Millennial Media, and Flurry SDKs,
   but I think they are respectable companies and would never allow any
   malware in their distributed SDKs).

   I just can not afford to make

[android-developers] Re: Mac source control

2011-05-17 Thread Yahel
Git has a rather steep learning curve but is the best tool available
today.
Svn is a lot simpler to learn and use but is not as versatile as Git.

If you are a single developer on your project and don't want to invest
the time then SVN is perfect for you. You'll be good to go in a few
minutes.
If you are several developers working intensively on the project then
GIT is a must have.

Good luck.

Yahel

On 17 mai, 17:30, bob b...@coolgroups.com wrote:
 What's a good source control system for the Macintosh Android
 developer?

-- 
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: Help me in detecting sound pulses (basically frequency detection)

2011-05-13 Thread Yahel
You need to take a look at an algorithm called Fast Fourier
Transform.
You can find one implementation here : 
http://www.badlogicgames.com/wordpress/?p=449

Good luck.

Yahel

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


[android-developers] Re: Is it true, Paid Aandroid apps from indian origin can not be published?

2011-05-13 Thread Yahel
Please report to this page to know which countries are able to sell on
the market : 
http://market.android.com/support/bin/answer.py?hl=enanswer=143779topic=1100168

Yahel

On 13 mai, 10:16, mack2978 smashmah...@gmail.com wrote:
 Could any one from android support please confirm that Paid Aandroid
 apps from indian origin can not be published, it is true?

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


[android-developers] Re: UI Framework Bug?

2011-05-12 Thread Yahel
I believe you have a case of view reusing.

The ArrayAdapter will reuse row views whenever possible to preserve
memory. So if you set a Bitmap to visible that might be what carries
it as visible on usually the row X+5. So that you would need to reset
everything on the view that was dynamically changed in the GetView.

For example :

@Override
public View getView(int position, View convertView, ViewGroup
parent) {
View v = convertView;
if (v == null) {
LayoutInflater vi =
(LayoutInflater)c.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = vi.inflate(R.layout.list_view_row, null);
}
TextView label = (TextView) v.findViewById(R.id.label);
ImageView spinner = (ImageView) v.findViewById(R.id.spinner);
MyContainer item = (MyContainer) items.get(position);

label.setText(item.getText());
spinner.setVisibility(View.INVISIBLE);

if (item.isLoading()) {
label.setText(***+item.getText()+***);
spinner = (ImageView)v.findViewById(R.id.spinner);
spinner.setVisibility(View.VISIBLE);
Animation spinnerAnimation =
AnimationUtils.loadAnimation(getContext(),
R.anim.rotate);
spinner.startAnimation(spinnerAnimation);
}

return v;
}

Not sure though.

Good luck.

Yahel

-- 
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: UI Framework Bug?

2011-05-12 Thread Yahel
Your solution seems to simple not reuse the views. I don't think
you'll hit a performance issue speed-wise but you may want to check
memory-wise as I believe this is the main reason behind this design.

Especially if you have one bitmap per row, a long list of row could
trigger Bitmap exceeds VM budget memory exceptions.

Yahel

-- 
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 idea that files are only used by application those are stored on media card?

2011-04-13 Thread Yahel
 For a slightly more secure implementation you could
 encrypt/decrypt only a small part of the mp3 files, eg the header -
 enough to render them unplayable by other players, that way you don't
 need to encrypt/decrypt the entire .mp3 file

We'd be on StackOverflow I'd +1 on you big time :D These are very good
advices !! I feel so dumb not to have think you don't need to encrypt
the all file to limit I/O operation as the OP asked !!

-- 
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 idea that files are only used by application those are stored on media card?

2011-04-13 Thread Yahel
 but can anyone tell me how can i apply drm rights to my songs.

Google for these : WMDRM or AAC DRM

But I'm not sure WMDRM is readable by Android.

Just so you know : If your content is this valuable that you want to
encrypt it with DRM(wich is flawed anyway) then be warned that this
content will be offered for free everywhere on the Internet in less
than two monthes(days it it is really great content).

The only reason I would go to all the trouble of finding a way to add
DRM to files is to seal a deal($$) with less tech savvy people that
would think that the content they produce is safe in my app(even
thought it is not really).

Say these mp3's are the best mp3's on the planet and I'm a low tech
hacker : I'd plug a jack in my phone and to my computer, play the file
on the phone and record it in the computer and tadah, I have
ripped your MP3 and your $12 000 DRM licence + 10 days work for the
implementation are just a pure loss of money and time.

Maybe if you told us what the app is about we could help you find a
way to monetize your app in a complete different fashion.

Good luck.

Yahel


-- 
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 idea that files are only used by application those are stored on media card?

2011-04-12 Thread Yahel
Simply implement your own media player inside your app.

Files that are stored in the asset folder of your app are by default
private and not accessible by any other app. No need to encrypt them
except if you're afraid of people manually unpacking your apk.

Yahel

-- 
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 idea that files are only used by application those are stored on media card?

2011-04-12 Thread Yahel
The limit for an apk is 50 meg.

Yahel

-- 
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 idea that files are only used by application those are stored on media card?

2011-04-12 Thread Yahel
Rereading your questions, I'm not sure I understand your problem. You
seem to have find a decent workaround using this encrypt/decrypt
scheme. Can you tell us what is going wrong ?

-- 
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 idea that files are only used by application those are stored on media card?

2011-04-12 Thread Yahel
As everyone told you, crypting and decrypting in the app is a huge
security breach since the password has to be in your app anyway.
Reverse engineering Android apps is very very easy for people who do
this kind of things. Also be aware that except if using https for your
file transfert, the download urls are also pretty easy to snif off the
network.

On another note if you just want to be secure against normal end users
and don't worry too much about the hardcore hackers then you're ok.
In this case I would recommend that you implement your own filestream
class with embedded crypting/decrypting.

If you're mp3's cannot get out at all and that's a requirement I
believe you have to follow Marcin advice to get the best DRM container
you can find. But  Mark is completely right : There's only two types
of DRMs, the one that were hacked and the one that are going to be
hacked :) So much so that a lot of non-free legal mp3 download
services now offer only DRM free mp3's

Yahel

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


[android-developers] Re: Image processing in Android

2011-04-11 Thread Yahel
Bitmap memory management is buggy and completely unintuitive. It does
not show in MAT as it is allocated in another place and not counted in
the heap. Well it is counted but not easily released or something.

My app is all about images(a world of faces), and here is how I get it
to work most of the time :

//decodes image and scales it to reduce memory consumption
private Bitmap decodeFile(File f){
try {

//decode image size
BitmapFactory.Options o = new BitmapFactory.Options();
o.inJustDecodeBounds = true;
BitmapFactory.decodeStream(new FileInputStream(f),null,o);

//Find the correct scale value. It should be the power of
2.
final int REQUIRED_SIZE=480;
int width_tmp=o.outWidth, height_tmp=o.outHeight;
int sampleSize=1;
while(true){
if(width_tmp/2REQUIRED_SIZE || height_tmp/
2REQUIRED_SIZE)
break;
width_tmp/=2;
height_tmp/=2;
sampleSize*=2;
}


//decode with inSampleSize
Bitmap bitmap = null;
boolean cacheHasBeenCleared = false;

BitmapFactory.Options options = new
BitmapFactory.Options();
options.inSampleSize=sampleSize;
byte[] tempBuffer=new byte[8000];
options.inTempStorage = tempBuffer;

while ( (bitmap == null)  (sampleSize  64) ) {
try {
bitmap = BitmapFactory.decodeStream(new 
FileInputStream(f),
null, options);
} catch (OutOfMemoryError e) {

if (!cacheHasBeenCleared) {
this.clearMemoryCache();

//Try to free up some memory
System.gc();
System.runFinalization();
System.gc();

cacheHasBeenCleared = true;
}

sampleSize *=2;
}
}

return bitmap;

} catch (FileNotFoundException e) {}
return null;
}

The idea is to try to decode the file at top quality. If that throws
out of memory error, it tries to free memory and reopen the file but
with a smaller scale. Rinse and repeat.

Oh and don't think the second system.gc() can be removed that would be
so naïve of you :D That's Android framework we're talking about :D

Good luck with your app.

Yahel

-- 
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: Version2 uploading to Android Market

2011-02-08 Thread Yahel
As Cull told you there is no need to worry about that, the market
won't let you upload a new version if it as been signed with a
different key. You'll get an error and that's all.

For you second question, I guess if the line with the

[certificate is valid from 16/10/10 19:48 to 03/03/38 18:48]

shows the same exact date and time for the from section, its pretty
safe to assume that it is the correct certificate.

Yahel


On 8 fév, 10:44, subhashini alaguchokku subhashini.andr...@gmail.com
wrote:
 Hi!

 I checked with jarsigner -verify -verbose -certs my_application.apk if
 the certificates for two versions of build are same. The result was both
 were same. So can this be considered that we have used the same certificate
 for both versions

 Thanks,
 A.Subha







 On Tue, Feb 8, 2011 at 1:55 PM, cuil yahoo cuilya...@gmail.com wrote:
  Don't worry, you cannot upload a version with a different key, the uploader
  will give you an error. Be sure to use the same key.
  --
  Cuil

  On Tue, Feb 8, 2011 at 1:26 PM, subhashini alaguchokku 
  subhashini.andr...@gmail.com wrote:

   Hi!

  Would like to know if there is any method to check before uploading to
  Andorid market, whether the key used to sign for the second version of an
  app is same as first version

   If there is no method, what will happen if we upload the new version
  using the same package name as first version and the key used is wrong?

  Thanks,

  A.Subha

  --
  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.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: SKIA Bitmap loading ??

2011-02-04 Thread Yahel
A little up on this. No one really ?

Yahel

On 3 fév, 19:49, Yahel kaye...@gmail.com wrote:
 Hi all,

 I'm starting to implement a lazy image loader for the listview in my
 new project so I was gathering informations and came across Romain Guy
 full featured implementation in the project Android Shelves 
 :http://code.google.com/p/shelves/source/browse/trunk/Shelves/src/org/...

 While reading I found this piece of code I cannot understand
 (FLAG_DECODE_BITMAP_WITH_SKIA is set to false above in the code) :

                     if (FLAG_DECODE_BITMAP_WITH_SKIA) {
                         expiring.bitmap =
 BitmapFactory.decodeStream(in);
                     } else {
                         final ByteArrayOutputStream dataStream = new
 ByteArrayOutputStream();
                         out = new BufferedOutputStream(dataStream,
 IOUtilities.IO_BUFFER_SIZE);
                         IOUtilities.copy(in, out);
                         out.flush();

                         final byte[] data = dataStream.toByteArray();
                         expiring.bitmap =
 BitmapFactory.decodeByteArray(data, 0, data.length);
                     }

 I think SKIA is the Image library written by google, at least used by
 google.

 What I don't get is why is he doing a test here and what is the
 difference between the two types of loading ? They both are decoded by
 BitmapFactory. Why would the result be different ?

 Any insight ?

-- 
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: Bitmap factory and ICC aware JPG

2011-02-04 Thread Yahel
My problem is that I don't choose the file I want to use, they are
picked by the user from internet.

I'm wondering if the way Romain Guy handles things in my other
question is not about that kind of problem. I'll give it a shot.

Yahel

On 21 jan, 16:33, nagarjuna lingala nagarjuna.ling...@gmail.com
wrote:
 Internally there is difference between bitmap and jpg . You try to use
  bmp file . Or try to convert  that jpg to bmp by using mspaint.
  Dont hesitate me. it is just i hoped

 On 1/21/11, Yahel kaye...@gmail.com wrote:









  Thanks for your answer,

  I was going to go this way but then I read the wikipedia article about
  jpeg and I think I understood that sometimes the icc is coded in the
  pixels and sometimes it's not. Making it quite difficult to work out.

  I'm thinking of using the capture ability of a webview and the facts
  that it knows how to load the image to try to get around.

  Yahel

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

 --
 Sent from my mobile device

       * MIND OVERLOADING*

-- 
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: SKIA Bitmap loading ??

2011-02-04 Thread Yahel
Excellent link and info Kostya, thank you. I believe you're right it's
not the same implementation but it's the same principle.

I hadn't seen this article. Very interesting.

Yahel

-- 
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: SKIA Bitmap loading ??

2011-02-04 Thread Yahel
Thanks for your input Romain, could you comment on the original
question as well ?

What was the point of the SKIA testing and what are the difference
between the two way of downloading an image ?

Yahel

On 4 fév, 12:53, Romain Guy romain...@android.com wrote:
 Shelves is still relevant, but it should be updated to show newer APIs and
 take advantage of multiple resolutions and densities. There might be better
 samples out there though :)

 2011/2/4 Kostya Vasilyev kmans...@gmail.com









  It's really a shame that that blog has no search function. But I think I
  remember reading somewhere that Shelves is too old to be useful as a sample
  these days. The blog post is I linked to is, I believe, more recent.

  --
  Kostya Vasilyev --http://kmansoft.wordpress.com
  04.02.2011 13:27 пользователь Yahel kaye...@gmail.com написал:

   Excellent link and info Kostya, thank you. I believe you're right it's
   not the same implementation but it's the same principle.

   I hadn't seen this article. Very interesting.

   Yahel

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

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

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

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

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


[android-developers] SKIA Bitmap loading ??

2011-02-03 Thread Yahel
Hi all,

I'm starting to implement a lazy image loader for the listview in my
new project so I was gathering informations and came across Romain Guy
full featured implementation in the project Android Shelves :
http://code.google.com/p/shelves/source/browse/trunk/Shelves/src/org/curiouscreature/android/shelves/util/ImageUtilities.java

While reading I found this piece of code I cannot understand
(FLAG_DECODE_BITMAP_WITH_SKIA is set to false above in the code) :

if (FLAG_DECODE_BITMAP_WITH_SKIA) {
expiring.bitmap =
BitmapFactory.decodeStream(in);
} else {
final ByteArrayOutputStream dataStream = new
ByteArrayOutputStream();
out = new BufferedOutputStream(dataStream,
IOUtilities.IO_BUFFER_SIZE);
IOUtilities.copy(in, out);
out.flush();

final byte[] data = dataStream.toByteArray();
expiring.bitmap =
BitmapFactory.decodeByteArray(data, 0, data.length);
}

I think SKIA is the Image library written by google, at least used by
google.

What I don't get is why is he doing a test here and what is the
difference between the two types of loading ? They both are decoded by
BitmapFactory. Why would the result be different ?

Any insight ?

-- 
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 this possible with Android

2011-02-03 Thread Yahel
No sorry, android apis do not provide a way to send audio to a call.

Yahel

On 29 jan, 08:59, Johny pyt...@hope.cz wrote:
 I am thinking about this scenario

 1.In  a mobile with Android will be running my script.

 2. Someone will dial the number( say number A)  of that mobile where
 the script is running.

 3.The script will answer and ask the caller( the caller has say number
 B) to dial the number where  he wants to be connected to( say number
 C)

 4.The caller ( with his number   B )will  enter the number C

 5.The script will dial that number C and makes  the connection
 between  number B and C so that they can talk together.

 Is this possible to do that with Android?

 Thanks
 L.

-- 
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: Newbie help, please.

2011-02-03 Thread Yahel
You are not initializing your object Vibrator.

This is really like java 101. You should start by learning java.
Otherwise it's going to be very difficult for you.

http://download.oracle.com/javase/tutorial/tutorialLearningPaths.html

Good luck.

Yahel

-- 
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: Bitmap factory and ICC aware JPG

2011-01-21 Thread Yahel
Up ?

Any insight of any kind from anyone ?

Thanks.

Yahel

-- 
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: Bitmap factory and ICC aware JPG

2011-01-21 Thread Yahel
Thanks for your answer,

I was going to go this way but then I read the wikipedia article about
jpeg and I think I understood that sometimes the icc is coded in the
pixels and sometimes it's not. Making it quite difficult to work out.

I'm thinking of using the capture ability of a webview and the facts
that it knows how to load the image to try to get around.

Yahel

-- 
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 problem with Galaxy Tab and fullscreen

2011-01-21 Thread Yahel
Seems like you are missing the fullscreen bit of the syntax :

android:theme=@android:style/Theme.NoTitleBar.Fullscreen

Yahel

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


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

2011-01-21 Thread Yahel
Take a look at this port of openCV

https://github.com/billmccord/OpenCV-Android/blob/master/README.rdoc

Good luck.

Yahel

-- 
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] Bitmap factory and ICC aware JPG

2011-01-20 Thread Yahel
Hi all,

I'm fighting a weird battle over here.

Using this simple code :


URL bitmapURL = new URL(http://farm5.static.flickr.com/
4069/4432443443_3ece4b42d9.jpg);
HttpURLConnection connection =
(HttpURLConnection)bitmapURL.openConnection();
connection.setDoInput(true);
connection.connect();
InputStream input = connection.getInputStream();
bitmapFromUrl = 
BitmapFactory.decodeStream(input);


I'm able to create a bitmap from the url of a jpg file. Well most of
the time.
The url included in the code is of a jpg that cannot be decoded by
bitmapfactory.

I narrowed it down to the fact that it uses an ICC color profile.
Which seems to me to be the only true difference from this other one
which loads fine :
http://farm2.static.flickr.com/1370/879345990_d778558446.jpg

I thought that icc color profile were headers and that decoders which
did not know what to do with it just ignore them. But it doesn't seem
to be the case for Android BitmapFactory.

Anyone has any idea how I could overcome this problem ?

Side note : If I feed the guilty url to a webview component, it
displays it fine with no problem. Could that be used in any way to
make a bitmap out of it ?

Thanks.

Yahel

-- 
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] How to use Android documentation ?

2011-01-06 Thread Yahel
Hi guys,

I'm facing a productivity problem with Android. Basically, I can do
whatever I want with the framework, I always find out a solution to
everything I need to do.

My problem is, I never find a solution/explanation on the Android
developer web site. It just never happens.

For example, I'm just trying to save a picture to the SD card. With a
single google search, I find some code/explanation about
getExternalStorageDirectory () on say StackOverflow. Look at it,
understand it, implement it on my own to be sure I grok it.

But then to be thorough, I make a second quick search and discover
MediaStore. Some people use it to store images. But no explanation at
all on what it is, what are the advantages, why I should use it. Does
it take care for me of the location/sd cars presence/sd card
mountability ?

And of course, the Android documentation is just plain useless on the
subject. Just gives me the methods and properties with laconic
sentences that are usually unhelpfull if I don't already know what it
is the purpose of the object.

So my question is : What am I missing ? How do you guys understand
what object to use and why when the documentation doesn't tell you ?

Again, I always find someone smarter than me who understood/debugged/
private investigated, so that I can always achieve what I meant to do,
but I've been developing for 20 years now and I find it tough to feel
so dumb.

Yahel

-- 
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 not decode high resolution picture

2011-01-05 Thread Yahel
 How to open a high resolution png picture, the picture is
 4000x3000,but it crashed when it was decoded.

It depends what you want to do with the image.

If it is a background for a game and you need it at this size, then
you need to break it up and come up with a common tile preloading
scheme.

If you just want to display it on the screen you just need to
downscale it a lot.

I use this function in my code to try to get the biggest picture that
can actually fit in memory, it's far from perfect, especially the fact
that you actually can't feed the sampleSize with a float and have to
go full integer at a time but it works without degraging the picture
quality even when displayed  on tablets :

private Bitmap getDownsampledBitmapFromFile(String fileName, int
sampleSize) {

//Try to free up some memory
System.gc();
System.runFinalization();
System.gc();

BitmapFactory.Options options=new 
BitmapFactory.Options();//reset
object
byte[] tempBuffer=new byte[8000];
options.inTempStorage = tempBuffer;
options.inSampleSize=sampleSize;

Bitmap downsampledBitmap = null;

try {
downsampledBitmap = 
BitmapFactory.decodeFile(fileNameToUpload,
options);
} catch (OutOfMemoryError e) {
sampleSize ++;
}

return(downsampledBitmap);

}

I'm using it 'as is' because it worked for my purpose but if I had
time I would run a benchmark to test if the double gc and finalization
could not be moved to the catch and allow for a bigger size image to
be computed without outofmemory exception.

Yahel

-- 
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: Suggestions for my inventory application

2010-12-29 Thread Yahel
 What else can i add in this to make it the only inventory solution out
 in mobile.

Being ambitious is a nice quality... :D

Take a look at what your competitors do, on mobile platforms(ios,
android, windows mobile 6.5) and desktop. And go from there

A quick obvious one :  Scan the barcode if any on your product,
retrieve the item from a webservice and allow for nice and easy input
of quantities either sold or purchased

Yahel





On Dec 29, 6:50 am, Abhishek Talwar r.o.b.i.n.abhis...@gmail.com
wrote:
 Hey guys
 I have an application on which i have been working on for a while now.
 The application has 4 major areas :-
 1. Item Master - Where user can create new products
 2. Purchase - Created products are inflated in autocompletetextview
 and user can add quantity to it .
 3. Sale -  Created products are inflated in autocompletetextview and
 user can enter quantity of it sold .
 4. Stock -  This shows the list of the products present along with
 the colour and quantity.

 What else can i add in this to make it the only inventory solution out
 in mobile.
 Let me know. I don't mind spending time.

 Regards
 Abhishek

-- 
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 pretty much like mine

2010-12-20 Thread Yahel
That's a bummer but :

- Your competitor seems to be here for a long time, how come you
didn't check before investing monthes ?
- No one knows that your physics is better, no one really compares,
you download a game, you play it
- Your app doesn't show on the market on my nexus one from France. The
other app does
- There's room for everyone, if your game is addictive enough people
will play it
- Be happy, the other apps has evangelized players to that kind of
game, they'll know what to expect and your download rate will be
better
- You know have an incentive to make your game even better,
competition is always a good thing
- I guess your talking about graphism when you say profesionnal,
then just find a friend, or a friend of a friend who can draw better
than you and go for a fun but less polish style. There's a couple of
game you can find that looks like they are drawn on a page with a
pencil for exemple.

Bottom line : Competition is always good and there's room for
everyone, it's not because they downloaded your competitor that they
won't download yours(quite the contratry actually)...If yours is
better people will notice

Good luck.

Yahel

On Dec 20, 8:22 am, brian purgert brianpurge...@gmail.com wrote:
 So yesterday I,m looking around on the app market and I noticed that there
 is a game very similer to the game I've been working on for months now, so
 now im pretty bummed out I thought I would be the first to bring this type
 of game out for android but Im not.
 The game that is similar to mine is mxmoto, its a pretty good game but the
 physics aren't anywhere as good as mine, for instance you can beat any level
 if you hold your phone straight, and its much to sensative for the average
 user... well the thing is I can't make my game look professional like. What
 do you guys think I should do. My game is called doodle bike btw and its
 similar but there is more physics like spinning objects and gravity changes.

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


[android-developers] Re: Why Android Why???

2010-12-19 Thread Yahel
I need(not want, need) a phone with a 4' screen, a physical keyboard,
a trackball and a front camera...Where does it fit in your scheme for
a single one-size-fit-all device ?

Android will never beat any iphone : Android is a framework not a
device

It's as if you were saying on a Microsoft forum : Hey computer
manufacturers how come there's a DVD drive on that computer and not on
this one, and why is there a trackpad on this notebook and not on my
desktop computer...I want consistency :D

Thanks for sharing anyway :D

Yahel

On Dec 17, 5:43 am, JasunX yase...@gmail.com wrote:
 The reason I'm posting in the Developer's forum is because I couldn't
 find a single collective and official discussion forum - and also in
 hopes that someone high up on that ladder will actually get to review
 my concerns (big hopes yeah) - Moderator - if this is too
 inappropriate for this forum - please guide me to a suitable one.

 I'm at a loss for words regarding Android manufacturers - I think all
 they want to do is make money.

 Don't get me wrong - I'm not saying Google (via Android) just wants to
 make money - I'm talking about HTC, Samsung, LG, etc etc...

 These manufacturers want to compete with Apple's iPhone - we all
 know this - it's the core element that keeps them manufacturing. But
 why screw us around? I'm not trying to be cynical - I'm just trying to
 be realistic.

 1. I've used Apple's devices, namely, iPhone (3GS  4) and the iPad -
 and to my dismay - the hardware did not disappoint - the software
 however did - I can't express how much I despise the iOS platform it
 makes my teeth grind that it even exists. I used the iPhone 3GS for
 one night and I couldn't stand the device.

 2. I've used an Android device - Samsung Galaxy S and Samsung Galaxy
 Tab - and couldn't get enough. The device integrates so seamlessly
 with your google account it makes using either your PC or your Android
 device a seamless experience altogether. I've experienced much better
 accuracy when typing, especially on the Samsung Galaxy S compared to
 that of ANY iOS device. Obviously this has been contested as there are
 some reports that say typing on Android's touchscreens is a hassle
 compared to the iPhone or iDevices for that matter - and in my
 experience that's a load of bull. One reason - haptic feedback.

 So Android as a software platform - brilliant - apart from the
 seamless integration with your google account - it's just the UI
 that's such a pleasure. Just having a home button (like Apple's junk)
 might make you feel that's all you need - but after using Android,
 you'll come to find that your Settings, Home - and Return button make
 any mobile device bloody comfortable to use. It just speeds up your
 entire movement and collaboration with the device.

 Now that we've got that out the way - I can firmly pull my head out
 Android's @$$ - let's get to the problem - the manufacturers.

 They all want to rival Apple's iPhone. They're all looking for the
 iPhone killer - maybe not Android fans as a whole - but the
 manufacturer's would like nothing more than to beat Apple's devices to
 a pulp.

 But why? Why oh Why oh Why? Can't you design a cellphone to match the
 exact specifications of the Apple iPhone? Now I anticipate a lot of
 hate speech toward me regarding this - and I accept that some of you
 may be angry but hear me out.

 Why does Apple create their devices the way they do? What is it about
 their design that Apple Fanboys find so fascinating? There's three
 answers I can't give, among others that may exist.

 1. Size: Look at Apple's iPhones - you don't see Apple making them
 bigger, or thicker, or wider - Apple goes smaller every time - but not
 so much that it makes the device feel cheap or insignificant. You want
 a solid device and Apple has maintained that with regard to physical
 design.

 But Android? Yes sure, you get your Xperia X10 Mini's - but that
 device feels like a friggin toy! It's too damn small! Yes sure you get
 your Samsung Galaxy S - but still - the few millimeters added onto the
 length actually does make a difference, and with the thickness at such
 a minimum - it makes the device feel so delicate and awkward.

 2. Symmetry: What makes typing on the Apple iPhone and Samsung Galaxy
 S such a comfortable, convenient pleasure? Symmetry! Apart from the
 screen - you have what I'm going to refer to as the little black
 pieces that make up the rest of the phone - and these exist at the
 top and bottom - i.e. succeeding the top and bottom of the screen.
 With such symmetry it allows you to type so much more comfortably
 without any offset on how your two hands are holding the device - this
 is so important and hardly any Android manufacturer's stick to this
 code - make the bottom and top little black pieces after the screen
 the same size! MAKE THE BACK AND FRONT SEAMLESS - DON'T HAVE A LITTLE
 CAMERA LENS STICKING OUT THE BACK OR A TRACKBALL OR EVEN SO MUCH AS A
 BUTTON STICKING OUT! Those

[android-developers] Re: Fun - Android Market failure on update

2010-12-19 Thread Yahel
Ah nobody played but the answer were : 1, 3, 6 ...

Thank you Android Market Team...Always glad to be your Beta-Testers :)

Yahel

On Dec 11, 5:02 pm, Yahel kaye...@gmail.com wrote:
 Hey guys,

 The market team seems to want to push some more updates. Since they
 probably did not test those better than the previous ones, I thought
 it would be fun to bet on what's going to break this time :

 1. Download/Active install count
 2. FC reports
 3. Checkout
 4. LVL
 5. New rating system hides all apps for all users
 6. Posting/Updating of apps in the console

 Ok, I'm first, I'm betting 2 internets on n°5 and to be safe 1.5
 internets on n°1 which is always a winner :D

 Yahel

-- 
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: Fun - Android Market failure on update

2010-12-19 Thread Yahel
Yes I know what you mean...

What amazes me is the fact that from what I've heard it is very hard
to get a job at Google, it involves a process that takes up to two
monthes and lots of interviews. You'd think those guys know what unit
testings are :s

I would really love to know what are Google's strategy/goals behind
Android for Google to make it look so much like they don't care at
all.
What's even more amazing is : Why on earth is the platform this
successfull ?

I've been a web/intranet developer for 10 years now, if I had shipped
products with such a low level of reliability/functionalities and such
a high level of bugs I would be living under a bridge in a house of
cardboard today :s

Anyway...We now know about it. So I stopped hoping I could make a
living of the Android Market and looked for other opportunities.

Yahel



On Dec 19, 12:24 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 And speaking of testing:

 http://code.google.com/p/android/issues/detail?id=13259

 I know it's harmless, but it's not what you'd expect to see from code in
 com.android.*

 -- Kostya

 19.12.2010 14:17, Yahel пишет:









  Ah nobody played but the answer were : 1, 3, 6 ...

  Thank you Android Market Team...Always glad to be your Beta-Testers :)

  Yahel

  On Dec 11, 5:02 pm, Yahelkaye...@gmail.com  wrote:
  Hey guys,

  The market team seems to want to push some more updates. Since they
  probably did not test those better than the previous ones, I thought
  it would be fun to bet on what's going to break this time :

  1. Download/Active install count
  2. FC reports
  3. Checkout
  4. LVL
  5. New rating system hides all apps for all users
  6. Posting/Updating of apps in the console

  Ok, I'm first, I'm betting 2 internets on n°5 and to be safe 1.5
  internets on n°1 which is always a winner :D

  Yahel

 --
 Kostya Vasilyev -- WiFi Manager + pretty widget 
 --http://kmansoft.wordpress.com

-- 
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: Fun - Android Market failure on update

2010-12-19 Thread Yahel
 Do not confuse the Android *platform* with the Android *Market*

I don't.

But part of the success of the platform should come from apps made by
developpers who tries to cope with the piece of junk that is the
market, the piece of junk that is the documentation, the non-existing
piece of junks that are communication channels between google and
Android developpers.

But despite all of this, the growth of the Android *platform* is
incredible.

Bottom line : Why should they care.

My apps are free and I'm not trying to make a living of Android dev,
but some are trying and it's downright insulting from Google to push
untested updates that breaks everything on people who spent a year or
more working on an app and its reputation.

Anyway, that's my last rant on the subject. When you surf on someone
else's business, you should expect to be treated like a parasite :D

If someone from the market can make the delete link from the
screenshots actually remove the screenshots in a reliable and
reproductible way it would be nice, if not well you know...Happy
holidays anyway :D

Yahel

-- 
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: Fun - Android Market failure on update

2010-12-19 Thread Yahel
Sorry I promised it was my last rant on the market but then this
happens and I couldn't stop laughing :

http://www.picvalley.net/v.php?p=u/2809/69253461918203477631292789388CRkaZVDRjg1Pl0HPbAb7.JPG

Way to go market team :D

Yahel

-- 
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: Layout: Battery usage bar

2010-12-13 Thread Yahel
Julie Andrews is a spam bot... That's why she doesn't have much to
say :D

Yahel

On 13 déc, 17:33, Brill Pappin br...@pappin.ca wrote:
 Julie,

 Your responses still don't contain any content.
 Maybe something wrong with your reader?

 - Brill

-- 
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] Fun - Android Market failure on update

2010-12-11 Thread Yahel
Hey guys,

The market team seems to want to push some more updates. Since they
probably did not test those better than the previous ones, I thought
it would be fun to bet on what's going to break this time :

1. Download/Active install count
2. FC reports
3. Checkout
4. LVL
5. New rating system hides all apps for all users
6. Posting/Updating of apps in the console

Ok, I'm first, I'm betting 2 internets on n°5 and to be safe 1.5
internets on n°1 which is always a winner :D

Yahel

-- 
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 not updating?

2010-12-09 Thread Yahel
Guys, it is notorious that the only thing the Market console allows
you to do is post your app and update it.

It already has a lot of trouble doing this, don't expect anything else
from it.

The numbers you see are random at worth, hints at best.

The market console is a temporary-we'll make it better someday when we
have time-half baked-we need to ship tomorrow so do your best-one man
team effort-crapware :s

But hey as Google always says, it's free, so be happy you can at least
post your apps :D

We repeat out loud for everyone : DO NOT RELY ON THE NUMBERS, OR
ANYTHING FOR THAT MATTER, IN THE MARKET CONSOLE. It is a waste of time
for you.

Yahel

On Dec 8, 1:30 am, Brill Pappin br...@pappin.ca wrote:
 I seem to be having a problem with my paid apps in the market. No
 comments or downloads showing but I have about 30 purchases since this
 morning.

 Is anyone else noticing their apps stuck like that?

-- 
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: App freezes when the power key is pressed

2010-12-06 Thread Yahel
If you have flickering going on, then either :

1) You are drawing only your new shape on top of the canvas and not
redrawing the entire canvas from a bitmap the size of your Canvas
2) You are not drawing every frame in your surfaceview thread loop.

The idea of double buffering is simple, instead of drawing directly to
your surfaceview canvas, you draw on a bitmap buffer that is the same
size as your canvas. Then when the drawing is done on this bitmap, you
draw the entire bitmap on the entire screen which is very fast and
efficient.

Just to be sure...You do have two separate threads ?? One for
calculation and next frame computing(game logic thread) and one which
is the surfaceview drawing thread ?

Yahel

-- 
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: prevent user from clearing app data

2010-12-06 Thread Yahel
 In other words there's no way to protect my app from the user simply
 deleting app data, and the only solution is for me to build my own
 licensing server?

You mean like it is on every single operating system on the planet ?
Well then Thanks Microsoft, thanks Apple, thanks Linus :D

In case you did not notice in your everyday use of desktop softwares
and the thousands of DRM schemes, users can erase anything(regedit
rules:) from their computers and that's a good thing. Does that make
it hard for developer to protect their work ? Yes. Is it normal
behavior ? Yes !

Depending on your target audience and severity of piracy on your
niche, you could simply rely on the good old : If I hide it, they
most likely won't find it : Find a good weird and system like name
and store a file or directory on the sd card that contains the date or
number of uses.

Sure if someone notices he can always erase the file or directory but
it will be far harder to uncover than simply using sharedpreferences.
Normal end-users will see their demo stops, Pirate users will have
decompiled/recompiled your app anyway.

Anyhow this is not Google or Android's fault, it is again those pesky
users who wants to be in control !! So thanks pesky users, you guys
think your the best uh ?! :DD

Yahel

-- 
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: App freezes when the power key is pressed

2010-12-04 Thread Yahel
For the screen-orientation, you just have to specify the one you want
in the activity tag of your manifest.xml :

http://developer.android.com/intl/de/guide/topics/manifest/activity-element.html


I agree with Dianne on the not so impressive Sony-Ericson way to help
you fix an issue for THEIR devices !!

As for double-buffering : You app offers psychedelic animation...I had
not notice the flickering as I thought it was part of the What did I
smoke this time ? concept :D
But if it was not intended you should definitely use double buffering.
Although it is weird because I had understood that SurfaceViews
implemented double buffering out of the box. Are you using
SurfaceView ?
Double-buffering being very straightforward, i'll let you search for
it. The basic idea being that you don't draw directly to screen but in
a bitmap the size of your screen first and then draw that buffer to
the screen while computing the next frame.

Yahel

-- 
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: App freezes when the power key is pressed

2010-12-03 Thread Yahel
Good for you.

Just so you know I tested your app extensively on both my nexus one
and my Htc Hero. Everything worked smoothly. No crash even after a lot
of orientation changes, and home keypressing monkey style :D

Just one idea though :
I understand that you wanted to know what was going wrong and its
really a good thing since you learned a lot from it but if you had
wanted to go the easy route, your app really doesn't need to handle
screen orientation at all. It doesn't add anything to the experience
since the drawings do not depend on it.
I would even go as far as to say that it is distracting since you
decided to leave the notification bar that gets redrawn everytime.

Just my last two cents :)

Yahel



On Dec 3, 6:01 pm, Eyvind Almqvist eyv...@mobile-visuals.com wrote:
 I think I have fixed it now. I discovered that lots of objects were
 created over and over again for every screen turn in the view
 constructor. I fixed this by making the these objects static. I mailed
 the new version to you. You got it for free, it will cost 4,5 $   in
 the appstores:)

 On 3 Dec, 10:23, Eyvind Almqvist eyv...@mobile-visuals.com wrote:







  I got this test result from SonyEricsson:

  We have tested your latest version which you send to me.  The rotation
  issue still can reproduce on both android 1.6 and 2.1. And the
  reproducibility of this issue is much higher than before. On 1.6, 
  theappwill force closed after I rotate the screen more than 2 times.

  This is very strange. I thougth that I fixed the rotation problem and
  they say that it is worse now...

  On 2 Dec, 20:38, Eyvind Almqvist eyv...@mobile-visuals.com wrote:

   Thanks, I read the article. Then I saw that I had a global reference
   to a context, which I didn't need. I removed it and then it worked
   much smoother. I think this fixed the leak. I don't have any reference
   to a context at all now. I mailed youmyapp. Hope it works like it
   should on your HTC!

   On 2 Dec, 14:48, Yahel kaye...@gmail.com wrote:

  When they rotate the screen several times,

This is usually a symptom of a memory leak.

Try to read this article from Romain Guy 
:http://www.curious-creature.org/2008/12/18/avoid-memory-leaks-on-andr...

It explains how they can happen from a single handle to the context.

The fact that you do not have crash but again this black screen(no
drawing being done) probably means that you actually handle this
exception with a try catch somewhere. Ifmyguess is correct then you
simply have to put a Log.e(error,error happens here : xxx); in
every catch of yourappand you'll find where it happens. Again the
difficulty is to be able to reproduce the problem.

Again you should implement something like the android-remote-
stacktrace so that when it happens on someone devices you get the
stacktrace from their session which will give you good clues on what's
happening.

“Sorry! Activity XXX(in application XXX) is not responding” happens
when you have a very long operation that hangs the main UI thread so
that the user can't use it anymore. Maybe this is a clue for you to
what is happening. Do you have a long calcultation, double buffering
drawing, loading of a big bitmap or something similar in the main
thread ?

If you tell me which game it is I can try to reproduce the problem 
onmyHTC Hero which is an older phone so might be more sensitive to the
problem.

Yahel- Dölj citerad text -

   - Visa citerad text -- Dölj citerad text -

  - Visa citerad text -

-- 
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: App freezes when the power key is pressed

2010-12-02 Thread Yahel
  When they rotate the screen several times,

This is usually a symptom of a memory leak.

Try to read this article from Romain Guy :
http://www.curious-creature.org/2008/12/18/avoid-memory-leaks-on-android/

It explains how they can happen from a single handle to the context.

The fact that you do not have crash but again this black screen(no
drawing being done) probably means that you actually handle this
exception with a try catch somewhere. If my guess is correct then you
simply have to put a Log.e(error,error happens here : xxx); in
every catch of your app and you'll find where it happens. Again the
difficulty is to be able to reproduce the problem.

Again you should implement something like the android-remote-
stacktrace so that when it happens on someone devices you get the
stacktrace from their session which will give you good clues on what's
happening.

“Sorry! Activity XXX(in application XXX) is not responding” happens
when you have a very long operation that hangs the main UI thread so
that the user can't use it anymore. Maybe this is a clue for you to
what is happening. Do you have a long calcultation, double buffering
drawing, loading of a big bitmap or something similar in the main
thread ?

If you tell me which game it is I can try to reproduce the problem on
my HTC Hero which is an older phone so might be more sensitive to the
problem.

Yahel

-- 
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: Proposal to Market Place

2010-12-02 Thread Yahel
 person give you one just because they want to be jerks. I would like
 to propose a change .

Good luck proposing, nobody's listening :s


  to the market rating system where a rate of 1 or 5
 must include comments

What you'll get is : 1 star ratings with the following very
helpful(but short to type) comments :
- lame
- wt wrk
- awful
- meh

Even worst : Upset that they can't post their one star rating without
a comment they'll make it count by being even meaner :s

And for the 5 stars ratings they'll be the same as now but a lot fewer
since they require more work.

So you'll have the worst of both world :D

If you really want feedback on your app, you should probably simply
implement it in your app and ask for it when people press your Quit
button(that you really shouldn't have because it's against android
policy...but anyway :)

Not sure if this advice applies to you but this type of rating system
exists since arpanet or so and works very well. In the long term, 1
star-jerk rating are just overwhelmed with the 4 and 5 stars of people
who took time to actually test your app and understood it. So wait a
few weeks and it won't matter anymore

And one last thought, even though it is tough to see them appear in
the comment list, 1 star-jerk rating means nothing about your app if
they are not the norm in your ratings. They just give you a clue about
the lazyness and attention span of the 1 star-jerker :D

Oh and one last-last thought : If your last comment out of 3 comments
in total is this 1 star-jerk rating, did you know you can download
your app, rate it and comment it under your google market account ?
Every time you change your comment it will come back to the top.

Take care.

Yahel




On Dec 2, 7:06 pm, Leon Moreyn-Android Development
lmor...@earthcam.com wrote:
 As a developer I find it difficult to understanding ratings sometime.
 1 to 5 is a good scale. But here is the problem with scale you can
 have people give you a five for the sake of giving you a five or a
 If I am receiving a one due to technical

 Also with the 5 I would like to know what is working so very good on
 my app that I could continue to use it in future developments. This
 way as we develop more apps we can get a better sense as what the
 rating really mean and the ppl who are rating the apps really think
 about them. 1 and 5 the extremes should require feedback as the 2 to 4
 are mostly middle ground and could be left alone for the average jerk
 to rate.

-- 
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 review the app inside the app ; need not to go android market to rate app

2010-12-01 Thread Yahel
 Uri uri = Uri.parse(market://search?q=pname:your.package.name);
 Intent intent = new Intent(Intent.ACTION_VIEW, uri);
 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 startActivity(intent);

If you go this way, don't forget to check there is a market intent
available. I had a lot of FC's due to some device not having a market
to handle such a link.

Yahel

-- 
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: Porting Andoid Apps

2010-12-01 Thread Yahel
 Someone already had an issue when porting applications from a device
 to another one ?

Every single one of us doing more than just displaying images of cats
that purs when you click on it :D

Multitouch, opengl support, intent availability, hardware support, the
list of compatibility issues goes on and on, some you can test
(presence of sensor,...) some you can't.
It's the drawback when you have multiple hardware running on
framework.

There is one company I can't find the name anymore that have some kind
of way to let you try your app on as many devices as you can. It costs
a lot though.

The most spreaded way to go is to add something like android-remote-
stacktrace to receive a full stacktrace by email when an unhandled
error occurs on one of your client device.

Good luck with your game.

Yahel

-- 
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: Please help with an ideea

2010-11-30 Thread Yahel
http://tinyurl.com/34f6d55

:)

Yahel

-- 
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: App freezes when the power key is pressed

2010-11-30 Thread Yahel
Ok that's weird.
If you have nothing in your onStart and your onResume sets the loop as
running for your drawing loop, then that is where you should have a
look.

My guess would be that the restarting of your looping via setRunning
doesn't do what you think and that it is just not restarting at all so
that you don't have any drawing going on.

Or maybe you are creating objects in your onCreate method that get
destroyed when your apps looses focus and that are never recreated
again because onCreate is only called the very first time you launch
your activity.

First thing would be to Log.e(drawing,I'm drawing) in your thread
drawing loop.

Yahel

On Nov 30, 10:50 am, Eyvind Almqvist eyv...@mobile-visuals.com
wrote:
 After I  insert the USB cable, there is three options “1. Connect your
 phone. 2. Install PC Companion. 3. Charge phone.” No matter which
 option I have selected, the app will just freeze without any message.

 When I press the power key to go to power save mode and then press it
 again to resume the application, the app will just freeze without any
 message.

 I test by doing lots of screen orientation changes, like you
 recommended.But I can not replicate the freezing problem on my Samsung
 galaxy. I don't have the SonyEricsson X10 and X8 devices to test on. I
 try to simulate a power key press on the emulator, by pressing the
 power button. I debug and onKeyDown is called, but onpause() and
 onResume() is not called.
 Doesn't onpause() and onResume() get called when the power key is
 pressed? I can not simulate insertion of a USB cable on the emulator.

 My onStart method only call the superclass, so I don't see how an
 exception could be raised here. My onResume method also sets the
 graphics thread to setRunning(false), which means that the thread will
 continue, but it will not
 execute the drawing loop.

 On 29 Nov, 19:16, Dianne Hackborn hack...@android.com wrote:







  What do you mean your app freezes?  This is not a typical failure case
  when pressing the power button. :}

  On Mon, Nov 29, 2010 at 10:05 AM, Eyvind Almqvist eyv...@mobile-visuals.com

   wrote:
   My app freezes when the power key is pressed. This happens on
   SonyEricsson X10 and X8, but not on Samsung Galaxy S. This is what
   happens:

   1)Launch the application-Press power key- Press power key again to
   active app-App freeze.

   The app also freezes when the USB cable is inserted, like this:

   2)Launch the application- Insert USB cable-Message pops up and click
   any option to continue- App freeze.

   I am distributing apps to SonyEricsson's Playnow appstore. They have
   reported this as error, so I have to fix this. Does anyone have an
   idea how to fix this? I have already followed all the advices in
   Designing for Responsiveness on

  http://developer.android.com/guide/practices/design/responsiveness.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

  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com

  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see and
  answer them.- Dölj citerad text -

  - Visa citerad text -

-- 
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: App freezes when the power key is pressed

2010-11-29 Thread Yahel
What do you mean by freeze ?

A Force close or a This app does not respond, wait or kill
message, or no message at all ?

From what you describe I'd guess you have a memory leak or an
exception raising during the onStart or onResume of your app.

You can probably replicate the problem on any device by just doing a
few screen orientation changes which will mimick what you describe(the
lost of focus by your activity)

Don't stay in the dark when you can't access a device that crashes,
use something like the android-remote-stacktrace to receive emails
from your app with the full stack. 
http://code.google.com/p/android-remote-stacktrace/

Good luck.

Yahel


On Nov 29, 7:05 pm, Eyvind Almqvist eyv...@mobile-visuals.com wrote:
 My app freezes when the power key is pressed. This happens on
 SonyEricsson X10 and X8, but not on Samsung Galaxy S. This is what
 happens:

 1)Launch the application-Press power key- Press power key again to
 active app-App freeze.

 The app also freezes when the USB cable is inserted, like this:

 2)Launch the application- Insert USB cable-Message pops up and click
 any option to continue- App freeze.

 I am distributing apps to SonyEricsson's Playnow appstore. They have
 reported this as error, so I have to fix this. Does anyone have an
 idea how to fix this? I have already followed all the advices in
 Designing for Responsiveness on

 http://developer.android.com/guide/practices/design/responsiveness.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.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Market is completely out of order !!

2010-11-25 Thread Yahel
No news from the Android team(one-man team most probably : ) about the
market being completely screwed and unusable :

- Half my app do not appear anymore in the list
- Delete links under the screenshots don't work anymore
- Even though there is a highres icon present and showing, saving
sends error This field is required

I mean ok, Mister Market Developer you are alone in your office doing
the job of a complete team but come on, Unit Testing before launching
new version is the bare minimum.

We know google isn't helping you much and there not giving you even an
assistant but last count from july gives 10199 developers using the
Market console. That's a lot of people depending on you. Could you try
a little harder please ??

Yahel

-- 
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: guitar tuner

2010-11-23 Thread Yahel
Hi mate,

I worked on one recently but never finished the job.

I found this open source code directly in java code perfect for
Android and which works ok and is pretty easy to understand :

http://thesongeditor.com/ref/FFT.java

I had pretty good result with it.

Good luck.

Yahel

-- 
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: LVL - Yay or Nay?

2010-11-23 Thread Yahel
 At this point I'm leaning towards no DRM... hopefully that's the right
 decision.

A good thing it is not an irreversible decision :D

Put your apps on the market with no DRM but a single call home via
http request at the very first start of the app.
In a month you'll be able to compare you're actual sales number to the
number of app which called home and estimate the piracy ratio of your
apps.

Then take the most pirated one, implement LVL just for this one. Wait
for a month and see if the piracy ratio changes enough to make it
worthwile to add LVL to your other apps.

And of course, be sure to report back here to us. I like beautiful
graphics and long analytic blog posts...Thank you very much :D

Good luck.

Yahel

-- 
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: Product images for marketing materials

2010-11-10 Thread Yahel
Your printer is a douchebag ... Just sign him a release stating that
you won't sue him if any problem should arise and be done with it Phil
Endecott from Scotland :)

Oh yeah Samsung is so really going to be pissed off by a developper
diffusing one of the press-release pictures of their product
displaying an app. They might sell one, it would be so horrible.

:D

Yahel



On Nov 10, 4:12 pm, Phil Endecott spam_from_goo...@chezphil.org
wrote:
 Dear All,

 What do people know about rights to reproduce device graphics for web
 sites and marketing materials?

 I have some great images of the Galaxy Tab that were published with
 their launch press release, and I have assembled a flyer showing my
 app running on it.  However, my printer won't print it unless I can
 convince him that I have the right to do so.  I've spent a long time
 trying to reach the right person at Samsung but so far without any
 luck (you are in a twisty maze of telephone menu options, press 1 to
 abandon hope).  So, I'm wondering if anyone has any experience to
 share or perhaps suggestions of other manufacturers whose material is
 published with a clear re-use rights statement.  If not, the flyer is
 only going to have pictures of Apple devices on it, which would be
 unfortunate.

 Many thanks,  Phil.

-- 
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: AppsLib (Archos store) is not legit?

2010-11-09 Thread Yahel
I was in contact with their Developper relation manager a month ago. I
told her that I would not release my apps on the appslib store if I
could not test it first on Archos hardware.
She told me there was no way to get lended or offered one of their
device but that they might some day offer 20% discount on their
overpriced hardware to developpers.

So  I told her I would not release my apps on their market. Two days
later I received an email saying : Thank you for registering as a
developper on our market and publishing your apps with us

Not very courteous but hey they do business what do they care about
developpers.

Yahel


On Nov 9, 10:51 pm, SoftwareForMe.com SoftwareForMe.com
softwareforme@gmail.com wrote:
 Hello,

 What do you all know about AppsLib?

 I know they were a small startup store who partnered with Archos to provide
 them with an app store on their devices.

 Recently we found that they are distributing pirated software, including an
 old copy of our product, PhoneMyPC, for free.

 We have contacted AppsLib several times, and Archos directly twice, only to
 be ignored by all parties.

 We had AppsLib in our list of markets to release products into once our
 licensing mechanism is finalized, but we have now removed them and will not
 do business with them. I sincerely hope Archos device owners can download
 SAM from SlideMe, or some other reputable app market.

 What's your experience? Is this unusual for that store, or is this just how
 they do business?

 Warm regards,
 Scott
 SoftwareForMe Inc.

-- 
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 many devices have the nexus one / HTC desire multi touch bug and would you release a game utilizing multitouch anyway?

2010-11-06 Thread Yahel
Hi,

Sorry but it's not only the nexus or the desire, it's all the htcs and
some other.

The answer to your question is in the market : Almost no games are
multitouch because it is so broken.

Mine(Armaboing) which is as simple as it can gets is using a massive
amount of logic and took me a massivea amount of time to be almost
decent in two players mode.

If massive multitouch gestures is needed. Don't waste your time. Or
be prepared to have only a very small share of the market and dreadful
comments.

I just realised : you said gesture. This might be different, my game
uses only taps which are reported wrong almost everytime.

In any case, you should prototype your gesture with a very simple app
before and tests them on a nexus, a desire or a hero to see what
happens for you.

Yahel

On Nov 6, 10:43 am, noriato fabri...@gmail.com wrote:
 Hi,
 so there's the multitouch issue with the Nexus One and HTC Desire. Is
 there some documentation on what other devices have this hardware
 error and what the total market share is?

 If you had a game idea that needs massive multitouch gestures, would
 you go for it on Android or would it currently be a waste of time with
 only a few devices supporting it?

 Peter

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

2010-10-14 Thread Yahel
Here, well we all are pro-Mark Murphy's books...

Haven't read them but given the amount of definite and accurate
answers he gives in this group I would say this is a safe call :D

Yahel

-- 
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 Yahel
Because I care about the Android project which I find to be such a
great idea on paper and such a poor realisation. Well the framework is
ok but the market ?
I spend a lot of time in and around that piece of junk and it slowly
building a huge itch, so much so that I bought a Mac.

That's why ... But I'm an entrepreneur, I'm suppose to thrive on
constraints and use them at my advantage to make my business flourish
and if the Market allows that kind of behavior, I know now exactly
what to do next ;) What's the name of your app by the way ? ;)

Yahel

-- 
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: multiple images in a one single image

2010-10-12 Thread Yahel
Well the collage part is easy and tough :
Just use one of the many flavor of drawBitmap and matrices(if you want
rotation and/or scale randomness) from your source image into your big
destination image. What I found difficult and did not solve that
properly, is how to layout the pictures nicely so that they all are
visible.

The easiest way I found was to dispose the image in a grid with random
but limited rotations(+/-25°) and play around with cells size. The
smallest the size the more the picture overlap.

Then to be able to click one, I would just get the coordinate of the
touch event and compute which grid cell it corresponds to.

You can maybe even do all of that without creating a big bitmap but
just using imageviews.

Yahel

On 12 oct, 15:35, ntimesc ntim...@gmail.com wrote:
 i  want to create a bitmap / image which has many images like
 Collage which has more then one images in a single picture.

 I have stored all my images in a grid view but now i want to create a
 single image from all those images. And even i want to make few images
 click able

 so what can be the road map to do this ? any sort of help / example
 will be helpful.

 search for a for collage image image in google . one can see what it
 is exactly

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


[android-developers] Re: Stolen app on market

2010-10-12 Thread Yahel
Ok, this is getting ridiculous !!

We are on theft issue here, not just spam or something dull.

GOOGLE should not just remove the app. This is a big, huge, and the
worst infringement you can find in the whole history of market
crapiness : The account of this guy should be deleted. period.

As soon as GOOGLE receive the first CD letter and checked that it is
indeed exactly the same app, boom !! Even if all the other apps are
his own work.

Yahel





On 12 oct, 15:57, Nightwolf mikh...@gmail.com wrote:
 Thank you for the answers.
 We reported about infringement to adMob and Google. AdMob advised to
 file CD to Google and we did so.

 On 4 окт, 21:44, { Devdroid } webnet.andr...@gmail.com wrote:







  On 4 October 2010 19:14, Nightwolf mikh...@gmail.com wrote:

   Recently I've discovered that our app Little Python is distributed by
   developer who call himself Adam Gates. He renamed our app to snake,
   replaced icon and changed AdMob id.
   He has 55 published apps. Please take a look may be you'll find yours.
   Is there any way to shut him down? Please advise.

  Sure. Write to Google using this link (in Market console Help on the
  upper side, then Contacting Us on bottom and then
  Android Market Developers: Publishers  Merchants then
  probably Application Removal which would lead you to this:

 http://www.google.com/support/androidmarket/bin/request.py?contact_ty...

  Write down your discovery

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


[android-developers] Re: Stolen app on market

2010-10-12 Thread Yahel
Atually there is no legal issue here. Against the TOS + theft :
Account terminated !

I can admit although with difficulty, 32 spammers with 10 000
apps(actual numbers) and 14 years old, made-in-5-minutes crapps, to
artificially increase the count of apps in the market for marketing
purpose. But this is something else.

I'm glad I just bought a Mac. Diversification will soften the feeling
as I won't be 100% Android as today !!

Yahel

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


[android-developers] Re: Advertising network

2010-10-11 Thread Yahel
Ah I thought the name was familiar : Is Avril your sister or just the
fake top-model avatar you made yourself on linked-in ?? :D

As for mobclix, you should maybe read this blog post before
choosing...The comments are gold :

http://www.androidsx.com/admob-vs-mobclix-2nd-round/

Take care :D

Yahel
http://www.a-world-of-faces.com

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

2010-10-11 Thread Yahel
 i wanna to test it if the language is Norwegian

On the emulator I wouldn't know, but on actual device, simply download
more locale from the market and set the locale you want to be in.
Its instanteneous and works very well.

That's what I use to test my localization.

Yahel

-- 
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] Market misery !!

2010-10-09 Thread Yahel
I am so upset !!

It is not enough that the just-in category is flooded by bigboobs
finders crap-apps all the time so that the exposition time of any
decent app is a mere couple of hours but now after patiently waiting a
week before launching my new update, it does not even appear in the
just-in category !!!

I'm promoting my app all I can on my blog, myspace, facebook, twitter,
tumblr and all, but the best exposition tool should normally be the
market !!

[Actual question]
So how long between two updates to be sure to show up in the just in
category ?

Beside : I'm buying a mac mini this very week-end and starts porting
my apps to iphone and if these ports works well on webos and iphone, I
think i'll just quit this information black hole that is the Android
platform !!



-- 
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: caller id spoofing

2010-10-08 Thread Yahel
Hi Greg,

I think caller id is not sent by the phone that makes the call but is
actually served to the receiving phone by the company at the other
end.

This might exists as an option in some professionnal phone contract.
You should call the phone company which have the sale's staff
contract.

I'm not sure but you could also take a look at google voice that gives
a fair amount of freedom with what you do with your phone numbers.

But It won't be Android related.

Yahel



On 7 oct, 23:40, Greg Donald gdon...@gmail.com wrote:
 I've searched and found nothing helpful so I'm now asking for guidance.

 I have a client who wishes to spoof the caller id for his phones he
 assigns to his sales staff.  He wants the number to appear to be from
 his main office to better handle return calls from potential buyers.

 Is this possible?  After reading many posts on this list and much time
 Google'ng, I'm thinking it's not.  Meanwhile he is pointing to his
 internal phone system which does exactly as he described.  All his
 office phones appear to dial out from the same number as far as the
 receivers caller id is concerned.  How can I pull off the same on
 Android?

 Thanks,

 --
 Greg Donald
 destiney.com | gregdonald.com

-- 
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] Gone element blocking the view

2010-10-08 Thread Yahel
Hi all,

I have a fairly easy layout : Two relative layouts filling the parent
frame layout.

firstRelativeLayout appears first in the xml and secondRelativeLayout
appears next.

firstRelativeLayout  has it's visibility not set in the xml (visible
by default).
secondRelativeLayout has it's visibility set to gone.

firstRelativeLayout respond to touch perfectly.

Then I programmatically set secondRelativeLayout visibility to visible
and back to gone.

firstRelativeLayout does not respond to touch anymore.

Any idea what can go wrong ?

Yahel

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

2010-10-07 Thread Yahel
Hi Mike,

That's a very long mail just to try to hire an Android developper for
half the potential revenue of splendor ideas you don't share anything
about :)

I think Treking and Rocky are right.

May I suggest you go back to West Virginia University and find an
under graduate in computer science ? Your deal is more likely to ring
a bell there and he'll put time and effort you can't imagine.
You can even lure them with the $13k a month success story from the
creator of car locator :)


Take care and I look forward to see your splendor apps on the market.
Keep us posted.

Yahel

-- 
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] Market ranking

2010-10-06 Thread Yahel
Hi all,

I know my question answers but since there's a lot of you who really
spend your time scrutinizing your rank, downloads and all, I'm trying
it maybe someone came up with empiric science on this one :

Does anyone understood even bits of how the market ranks apps in the
market ?

I usually don't look at stats but following another post on this
topic, I counted my rank in my category ... 565 ... Ouch that hurts !!
Especially when half the apps in front of mine, are crap apps with
less downloads and ratings as low as 1 star :).

Not that it would make a difference being rank 250 instead of
565...But this is humiliating a little :s

Since my app has been on the market for one month, i'm wondering if
age matters ...

I know I should have asked in the market black hole of hell  google
group but the name says it all. And I'm sure some of you already
figured out some of the black magic used by the Market to rank apps.

Thanks for any insight.

Yahel
http://www.a-world-of-faces.com


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

2010-10-06 Thread Yahel
Hi Kumar,

Ok I guess then I'm going to jump a few places in a bit then.
What do you mean by 30days/60days download ?

Yahel

On 6 oct, 13:11, Kumar Bibek coomar@gmail.com wrote:
 Well, there are a lot of factors. A few of them are:

 1. No of downloads
 2. No of active installs
 3. Reviews of users
 4. 30day/60day downloads

 These are only a few of them. All this was mentioned in one of the Android
 Developers Lab that I attended.









 On Wed, Oct 6, 2010 at 2:26 PM, Yahel kaye...@gmail.com wrote:
  Hi all,

  I know my question answers but since there's a lot of you who really
  spend your time scrutinizing your rank, downloads and all, I'm trying
  it maybe someone came up with empiric science on this one :

  Does anyone understood even bits of how the market ranks apps in the
  market ?

  I usually don't look at stats but following another post on this
  topic, I counted my rank in my category ... 565 ... Ouch that hurts !!
  Especially when half the apps in front of mine, are crap apps with
  less downloads and ratings as low as 1 star :).

  Not that it would make a difference being rank 250 instead of
  565...But this is humiliating a little :s

  Since my app has been on the market for one month, i'm wondering if
  age matters ...

  I know I should have asked in the market black hole of hell  google
  group but the name says it all. And I'm sure some of you already
  figured out some of the black magic used by the Market to rank apps.

  Thanks for any insight.

  Yahel
 http://www.a-world-of-faces.com

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

 --
 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com

-- 
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: Adding Rate this application capability

2010-10-06 Thread Yahel
Interesting find : My english is not that good so I'm not sure about
the wording : Incentive means to offer something in return or simply
to ask for a good rating ?

I can see the point in the first one, I suppose the second one makes
more sense.

Thanks.

Yahel.

On 6 oct, 16:00, Brill Pappin br...@pappin.ca wrote:
 check the Market policy as you don't want to get your app removed.

 Developers should not attempt to change the placement of any
 application in the Market by offering incentives to users to rate an
 application with higher or lower ratings; or by themselves rating an
 application multiple times.

 found at:http://www.android.com/market/terms/developer-content-policy.html

 It doesn't specifically say you can't direct them to the ratings
 though, only that you can't offer incentives... so maybe a grey area.

 - Brill Pappin

 On Oct 6, 7:54 am, TreKing treking...@gmail.com wrote:







  On Wed, Oct 6, 2010 at 1:24 AM, Amit amitmishr...@gmail.com wrote:
   I wan to know how this is achieved.

 http://developer.android.com/guide/publishing/publishing.html#marketi...

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

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


[android-developers] Re: Adding Rate this application capability

2010-10-06 Thread Yahel
 You need to be aware of intangible incentives too

Ok so the reward being tangible or intangible as to exists. That's the
meaning of incentive I understand. Thank you.

Just to be sure, and I know you are not lawyers or anything so in the
end it will be my call but I just spent the day implementing this
message(english version) in my app :


You can really help us by rating this app with 5 ★ in the market and
leave a nice, short comment


Would YOU consider it as an incentive or is it just a request that is
compliant with the TOS ?

Thanks.

Yahel

-- 
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: Adding Rate this application capability

2010-10-06 Thread Yahel
Cool, I thought so but since my english is not perfect, I wanted to
have a second opinion.

It will be in the next release then :D

Thank you very much.

Yahel
http://www.a-world-of-faces.com

-- 
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: OutOfMemory exception in OnCreate

2010-10-06 Thread Yahel
 You might want to try just tossing a System.gc()

Thanks for your answer, unfortunately, I'm already doing it :

//Try to avoid crashing with outofmemory in the app oncreate
 try{
setContentView(R.layout.main);
} catch (Exception e) {

   System.gc();
   System.runFinalization();
   System.gc();

   setContentView(R.layout.main);
}

But no dice. It does not happen as much though, so it kind of fixed
it.
I'm going to see in the next few days, if it is always the same device
or framework.

I'll keep you posted.

Yahel

-- 
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] OOS : How do you use google groups ?

2010-10-05 Thread Yahel
Hi all,

Sorry for this OOS but Android developper is the only part of my life
on google groups and call me thick but I can not for the life of me
understand how it works !!

I have the hardest time following a thread i'm participating in
because I can simply not find it back when I look for it, even using
the search engine at the top !!

I'm not receiving email alerts to warn me when somenone answers in it

In my profile tab, there is a summary of my last messages ... Which
lags by 2 weeks !! Sometimes message I sent never appear there at all.

I'm suscribed to a Gay Pictures group I'm pretty sure I never
applied to :s

Can someone tell me is setup to monitor and use google groups
effectively. From my point of view it really looks likes the internet
of 1985 :s

Again sorry for the OOS. I really hope I'll find this thread back
somewhere ...

Yahel

-- 
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: Screen shot of the canvas screen

2010-10-05 Thread Yahel
 How can get the screen shot? Kindly

Switch to DDMS perspective in Eclipse, then in the top left corner
select the device you are running, then click on the darkblue icon
above the list. It will take a screenshot of whatever is displayed on
your device screen.

Yahel

-- 
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: OOS : How do you use google groups ?

2010-10-05 Thread Yahel
Thank you both for your answers...Since everyone has a google group
now I thought it was a really awsome piece of sofware and that I was
just to dumb...Good to know it's not all my fault :D

I'm going to try your suggestion of using receiving the list by mail
and filtering it in my mail client. If it doesn't work I'll give using
gmail a try.

I really wonder how a huge company like google seems to only ship half
baked product. This amazes me. Ok they are free, nevermind :)

As for the OOS ... Good thing you asked me, nobody has ever asked me
before and I just discovered that I meant OOT. I kind of frenchised
it : out of subject instead of out of topic ... I wonder how many
poor fellows are still asking themselves if they are old dinosaurs to
not know that acronym I made up :D

Thanks to both of you.

Yahel

-- 
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] OutOfMemory exception in OnCreate

2010-10-02 Thread Yahel
Hi all,

I'm having a hard time resolving a crash report.
It's an OutOfMemory exception that occurs during the setContentView in
the onCreate of my main activity.

I just want to be sure I understood Android LifeCycle well :

1) The onCreate of my main activity is called once and only once
during the life time of my application ? Is that correct ?

2) Just like for the big bang, before the oncreate of my activity,
nothing exists for that activity, so memory consumption is zero, no
objects exists right ?

So what can cause that sometimes, with random framework and devices, I
get an OOM exception ?
I mean if say my background image  is causing this, it should blow up
everytime, on every device, shouldn't it ? I mean the result should be
reliable.

The background image is a standard jpg : 360*480 weighing 37kb,
nothing fancy really :s

The crash report below :

java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.kayenko.awof/com.kayenko.awof.Main}:
android.view.InflateException: Binary XML file line #10: Error
inflating class unknown
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2663)
at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2679)
at android.app.ActivityThread.access$2300(ActivityThread.java:125)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
2033)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #10:
Error inflating class unknown
at android.view.LayoutInflater.createView(LayoutInflater.java:513)
at
com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:
56)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:
563)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
198)
at android.app.Activity.setContentView(Activity.java:1647)

at com.kayenko.awof.Main.onCreate(Main.java:174)

at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2627)
... 11 more
Caused by: java.lang.reflect.InvocationTargetException
at android.widget.FrameLayout.init(FrameLayout.java:79)
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
at android.view.LayoutInflater.createView(LayoutInflater.java:500)
... 22 more
Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
at android.graphics.Bitmap.nativeCreate(Native Method)
at android.graphics.Bitmap.createBitmap(Bitmap.java:468)
at android.graphics.Bitmap.createBitmap(Bitmap.java:435)
at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:340)
at android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:
488)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:
462)
at
android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:
323)
at
android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:
697)
at android.content.res.Resources.loadDrawable(Resources.java:1709)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.view.View.init(View.java:1885)
at android.view.ViewGroup.init(ViewGroup.java:291)
at android.widget.FrameLayout.init(FrameLayout.java:83)
... 26 more


Thanks for any hint.

Yahel
http://www.a-world-of-faces

-- 
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: OutOfMemory exception in OnCreate

2010-10-02 Thread Yahel
Thank you for your answer.

So now I understand that the onCreate method can be called several
time, for example on orientation change.

My app is set to Portrait mode only using manifest's
android:screenOrientation=portrait so I don't expect any orientation
change in the app.

Could there be any other obvious reason for the activity to be
reinstanciated, therefore triggering the onCreate method again ?

My app does only startActivityForResult and a Share Intent nothing
more than that.

But that must be what happens, I'm going to reread thoroughfully the
Activity documentation and try to cleanup and save only what's needed
in the onDestroy method.

Thanks again.

Yahel

On 3 oct, 00:32, Prakash Iyer thei...@gmail.com wrote:
 On Sat, Oct 2, 2010 at 6:14 PM, Yahel kaye...@gmail.com wrote:
  Hi all,

  I'm having a hard time resolving a crash report.
  It's an OutOfMemory exception that occurs during the setContentView in
  the onCreate of my main activity.

  I just want to be sure I understood Android LifeCycle well :

  1) The onCreate of my main activity is called once and only once
  during the life time of my application ? Is that correct ?

 If what you mean is the process, then your answer is a no. Assuming this is
 an Activity that can be launched from the launcher, i.e. no other Intent, a
 process will be spawned the first time the user decides to start your
 Activity. Then it goes through the lifecycle as described quite well in the
 Activity documentation. Thus it is quite likely that onCreate gets called
 multiple times, e.g. if you have not over-ridden the orientation change, it
 will get called whenever the phone moves from landscape to portrait or vice
 versa. You can test this out quite easily on the emulator.

 Thus, if you have static variables etc. they will live thru all of this.
 Your view will be cleaned up and redone in the onCreate.

  2) Just like for the big bang, before the oncreate of my activity,
  nothing exists for that activity, so memory consumption is zero, no
  objects exists right ?

 Not correct. onCreate is called on an instance, so all the static variables
 and any thing else required by your instance, e.g. a String that you may
 have defined as a member variable etc is already loaded. Maybe you knew that
 and are asking something else??

  So what can cause that sometimes, with random framework and devices, I
  get an OOM exception ?
  I mean if say my background image  is causing this, it should blow up
  everytime, on every device, shouldn't it ? I mean the result should be
  reliable.

  The background image is a standard jpg : 360*480 weighing 37kb,
  nothing fancy really :s

 I think more detail here will help, Is this a bitmap loaded into a variable?
 If yes and you hold a reference to your Activity object elsewhere, you might
 leak for every orientation change.
 ...

-- 
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: OutOfMemory exception in OnCreate

2010-10-02 Thread Yahel
Thank you for your answer.

 You haven't shown us enough of your code (code snippets) for us to...

Yes sorry about that, it's just that I don't seem to understand where
everything goes wrong. The line giving me an error is a simple
setContentView with a simple background image in a FrameView. So I am
trying to narrow down the causes before I overflow the group with my
10 000 or so lines of code :D


 But since many instances of your activity can exists,
Do you mean that there can be multiple instances of my app running at
the same time, all using the same oncreate method ? I didn't know it
was possible...Could you explain to me how to reproduce this case ?

Tahnks again for your time.

Yahel

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