Re: [android-developers] Menu

2011-11-16 Thread Ratheesh Valamchuzhy
see this link.
http://www.codeproject.com/KB/android/AndroidMenusMyWay.aspx
http://staticallytyped.wordpress.com/2011/05/05/android-how-can-you-implement-a-custom-menu-class/

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

[android-developers] Re: Cheating the Rating, please google stop this.

2011-11-16 Thread Lew
On Wednesday, November 16, 2011 11:39:56 AM UTC-8, sblantipodi wrote:
>
> Hi google, 
> I received this email from a well known contact that I can give you 
> via 
> PVT if you are interested in it. 
>
> --- 
> Hi, 
>
[snip]

> My team also am having a good command over 
> english language.. 

[snip]

That was rich.

I'm not sure why you're upset over such an obvious spam.  Certainly I 
wouldn't worry about it gaining any competitive edge; the whole piece was a 
giant advertisement for why one should *not* use his services. 

If you know this joker, it's more fun to give them advice than to report 
them.  Tell him, for example, that before putting forward a claim of 
"having a good command over english language" that one might wish to learn 
English.

This guy you're worried about is more pathetic than dangerous.  Tell him so.

-- 
Lew


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

[android-developers] Menu

2011-11-16 Thread fthusa
Can any one tell me How to show menu list when i click the button
please send me sample codes

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


[android-developers] Re: localization bloats my app - is there an alternative approach?

2011-11-16 Thread Zsolt Vasvari
> > One thing to look at is that you are building against a the min SDK version
> > at which the platform switched to UTF-8 for resource strings.
>
> How would we determine what version this was?

I am also interested in this...

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


Re: [android-developers] Layout Height

2011-11-16 Thread Raghav Sood
1) This is not, strictly speaking, a custom layout.
2) Use wrap_content. That way the layout will scale to the size of your
content. Or use fill_parent, if you want to take up the entire screen, even
if you don't need it.

Thanks

On Thu, Nov 17, 2011 at 1:05 PM, Siva Prakash wrote:

> Hi
>
> I have created custom layout
>
>  xmlns:android="http://schemas.android.com/apk/res/android";
> android:orientation="horizontal"
> android:layout_width="fill_parent"
> android:layout_height="15dip"
> android:gravity="center_vertical"
>
>
>  android:id="@+id/logo"
> android:layout_width="wrap_content"
> android:layout_height="wrap_content"/>
>
> 
>
> Here I mention height as a constant value if I put it in small screen
> mobile then it will take same space which will be huge . Is there any way
> for me to specify the height in percentage or shared?
> I tried "weight" that also didnt help me.
>
> 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




-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

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

Re: [android-developers] Android programmer position at Arizona State University in Phoenix AZ

2011-11-16 Thread Rocky
Hi Eric,

Are you looking Indian candidate, let me know

On Thu, Nov 17, 2011 at 12:05 AM, Eric Hekler  wrote:

> To all programmers
>
>I am looking to hire a new programmer, preferably in the Phoenix,
> AZ area to work on innovative new strategies in mHealth for promoting
> health and behavior change using Android phones and related devices (see
> here for related work: http://www.mendeley.com/profiles/eric-hekler/).
> Additional information about this position can be found here:
> https://www.asu.edu/go/employment/?auth=guest&jobid=27524&SiteId=1&PostingSeq=1
>
>   Please feel free to email me if you have any questions.  Otherwise,
> submit your application at the posting address listed above.
>
> Thanks,
> Eric Hekler, Ph.D.
> Assistant Professor
> Nutrition Program
> Health Outcomes @ASU
> Arizona State University
> 500 North 3rd St. room 121
> Phoenix, AZ 85004
> Office # (602) 827-2271
> Email: ehek...@asu.edu
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Thanks & Regards

Rakesh Kumar Jha
Android Developer, Trainer and Mentor
Bangalore
(O) +918030274295
(R) +919886336619

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

[android-developers] Re: Ice Cream Sandwich -- possible Crypto incompatibility

2011-11-16 Thread Zsolt Vasvari
Ok, thanks.

On Nov 17, 3:12 pm, Nikolay Elenkov  wrote:
> On Thu, Nov 17, 2011 at 3:54 PM, Zsolt Vasvari  wrote:
>
> >> Anyway, it's either one of NoSuchAlgorithmException, NoSuchPaddingException
> >> InvalidKeyException or InvalidAlgorithmParameterException. It is very
> >> unlikely that they removed an algorithm or padding from ICS,
> >> so that leaves an invalid key or IV. Since your IV seems to be a constant
> >> (bad idea, BTW), that leaves the key. What is 
> >> R.string.lvl_cipher_algorithm?
>
> > cipher_algorithm is "AES/CBC/PKCS5Padding"
>
> You can be pretty sure none of these are removed in ICS.
>
> > How should I be generating the IV?
>
> Generate randomly and use a different one for every encryption.
> Then store it with the message and use it initialize the cipher
> on decryption.

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


[android-developers] Layout Height

2011-11-16 Thread Siva Prakash
Hi

I have created custom layout

http://schemas.android.com/apk/res/android";
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="15dip"
android:gravity="center_vertical"






Here I mention height as a constant value if I put it in small screen
mobile then it will take same space which will be huge . Is there any way
for me to specify the height in percentage or shared?
I tried "weight" that also didnt help me.

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

Re: [android-developers] How to show Date Picker in AlertDialog

2011-11-16 Thread chandra sekhar
> I can successfully show EditText field, Buttons and Text Views in
> > AlertDialog.Builder using LayoutInflater . But I am unable to show
> > datepicker (Not DatePicker Dialog) in AlertDialog.Builder. Can we show
> > date picker in AlertDialog.Builder?
>
> Presumably, yes.
>
> > If yes then How we can show?
>
> The same way you do any other widget. DatePicker should not be special
> in this regard. You could always look at the source code to
> DatePickerDialog to see how they do it.
>
>
>  i wish it usefull to u

  Button pickDate = (Button) findViewById(R.id.pickDate);
pickDate.setOnClickListener(new View.OnClickListener() {

public void onClick(View v)
{
showDialog(DATE_DIALOG_ID);
}
});
final Calendar c = Calendar.getInstance();
mYear = c.get(Calendar.YEAR);
mMonth = c.get(Calendar.MONTH);
mDay = c.get(Calendar.DAY_OF_MONTH);
updateDisplay();
}
protected Dialog onCreateDialog(int id)
{
switch (id)
{
case DATE_DIALOG_ID:
return new DatePickerDialog(this,
mDateSetListener,
mYear, mMonth, mDay);
}
return null;
}

 private void updateDisplay() {
date.setText(
new StringBuilder()
// Month is 0 based so add 1
.append(mMonth + 1).append("-")
.append(mDay).append("-")
.append(mYear).append(" ")
);
}
 private DatePickerDialog.OnDateSetListener mDateSetListener =
 new DatePickerDialog.OnDateSetListener() {

 public void onDateSet(DatePicker view, int year, int monthOfYear,
 int dayOfMonth) {
 mYear = year;
 mMonth = monthOfYear;
 mDay = dayOfMonth;
 updateDisplay();
 }
 };



--

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

Re: [android-developers] Re: Ice Cream Sandwich -- possible Crypto incompatibility

2011-11-16 Thread Nikolay Elenkov
On Thu, Nov 17, 2011 at 3:54 PM, Zsolt Vasvari  wrote:

>>
>> Anyway, it's either one of NoSuchAlgorithmException, NoSuchPaddingException
>> InvalidKeyException or InvalidAlgorithmParameterException. It is very
>> unlikely that they removed an algorithm or padding from ICS,
>> so that leaves an invalid key or IV. Since your IV seems to be a constant
>> (bad idea, BTW), that leaves the key. What is R.string.lvl_cipher_algorithm?
>
> cipher_algorithm is "AES/CBC/PKCS5Padding"
>

You can be pretty sure none of these are removed in ICS.

> How should I be generating the IV?
>

Generate randomly and use a different one for every encryption.
Then store it with the message and use it initialize the cipher
on decryption.

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


[android-developers] Re: Ice Cream Sandwich -- possible Crypto incompatibility

2011-11-16 Thread Zsolt Vasvari
> I see. ACA 4.x has handleSilentException() which (I think) might work.
> You might want to just wrap with RuntimeException instead of
> returning null, that way the cause won't be masked.

I came to the same conclusion and already changed all my code catching
checked exceptions.


>
> Anyway, it's either one of NoSuchAlgorithmException, NoSuchPaddingException
> InvalidKeyException or InvalidAlgorithmParameterException. It is very
> unlikely that they removed an algorithm or padding from ICS,
> so that leaves an invalid key or IV. Since your IV seems to be a constant
> (bad idea, BTW), that leaves the key. What is R.string.lvl_cipher_algorithm?

cipher_algorithm is "AES/CBC/PKCS5Padding"

How should I be generating the IV?



>
> If it doesn't repeat, it might be just a broken emulator-based ROM or 
> something.

It works on the ICS Emulator.  Had it been a Galaxy Nexus, I would be
more worried, but since it's a Droid X, it has to be something half-
baked at this point, unless it's a Motorola employee testing a build.

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


[android-developers] Re: Samsung Galaxy s2 Browser not working.

2011-11-16 Thread Zsolt Vasvari
Have you tried dipping the phone into the toilet bowl?  That usually
works for me.

On Nov 17, 2:44 pm, Archana  wrote:
> Hi ,
> I am using samsung galaxy s2. Till yesterday morning its browser was
> working fine. But now its showing
> web page not available. Its connected to WiFi.
>
> Can anyone tell me how to fix this issue.
>
> regards,
> archana

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


[android-developers] Re: Activity can not receive the same intent second time while the app which this activity belongs to launched from another app.

2011-11-16 Thread Zsolt Vasvari
What the hell are you talking about?

On Nov 17, 2:49 pm, BelvCompSvs  wrote:
> with the caveat that i am still in get-going and do not have my
> first .apk build up yet it seems rather obvious to me how to do it as
> this would be an intermediate level work in Java - if Kyra were here I
> would be she would allow passing by reference here
>
> remoteOrBackGroundService(this);
>
> or something like that then on the other end in Java it would
> obviously be save this as the type of the class that you are trying to
> broadcast from
>
> you have to be really diligent about not creating a circular reference
> but compilers by their task should be able to spot those and look for
> them in a build as they report circular constructor chains readily
>
> I am still in get-going but those xml files and the way they are using
> them sure look like application initialization to me
>
> if they are then you only live once as far as they are concerned.
>
> what they are calling Binders is actually RPC ~ you can do it that way
> but is sorta clumsy - not really badly so if you are willing to
> construct enough String to pass whatever need be
>
> do not fall for using statics though as that is not the ideal way due
> to the way the machine dumps when the user shakes the phone around
>
> what you do is check for nulls and handle so that you do not get
> bitten like the other poster who is going to nail the wall on 14 
>
> it's really simple in java - you can ship me some (sterilized) class
> names and method names and I can write it for you in Java screwing off
> while I wake up and make coffee ~ will trade some GUI stuff for it
> with you as I am nimrod on GUI stuff - I do hardcore backend =
> gui.equals("fear") returns true in all case, even with the phone shut
> off..
>
> On Nov 16, 9:18 pm, Cimo Huang  wrote:
>
>
>
> > Dear Android Developers:
>
> > I got an issue that activity can not receive the same intent second
> > time while the app which this activity belongs to  launched from
> > another app.
>
> > I have an app2 launched from app1. Then in app1, start activity B from
> > the main activity A with  startActivity
> > The launch mode of B is "Single top"
>
> >  >               android:launchMode="singleTop"
> >               android:configChanges="keyboardHidden|orientation">
> >       
> >         
> >       
> >        >                  android:resource="@xml/searchable"/>
> >        >                  android:value=".B" />
> >     
>
> > Then I search in B, first time I search, the onCreate in B is called.
> > Search again, this time B doesn't response the
>
> > search inetent, no matter onCreate and onNewIntent, they both haven't
> > been called. It seems like B is not at the top of
>
> > the visiable stack, but I don't know why and how it can be that.
> > How can I do to make B receive the Search intent in second time?  Here
> > I can't sdd flag for the search intent and can't
>
> > change B's launch mode or add paremeters like "
> > android:clearTaskOnLaunch="true" " in manifest.
> > Is there any way to solve this issue? What's the root cause of this
> > issue. Can you please provide me some suggestion?
>
> > Thanks a lot in advance.- Hide quoted text -
>
> - Show quoted 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: Activity can not receive the same intent second time while the app which this activity belongs to launched from another app.

2011-11-16 Thread BelvCompSvs
with the caveat that i am still in get-going and do not have my
first .apk build up yet it seems rather obvious to me how to do it as
this would be an intermediate level work in Java - if Kyra were here I
would be she would allow passing by reference here

remoteOrBackGroundService(this);

or something like that then on the other end in Java it would
obviously be save this as the type of the class that you are trying to
broadcast from

you have to be really diligent about not creating a circular reference
but compilers by their task should be able to spot those and look for
them in a build as they report circular constructor chains readily

I am still in get-going but those xml files and the way they are using
them sure look like application initialization to me

if they are then you only live once as far as they are concerned.

what they are calling Binders is actually RPC ~ you can do it that way
but is sorta clumsy - not really badly so if you are willing to
construct enough String to pass whatever need be

do not fall for using statics though as that is not the ideal way due
to the way the machine dumps when the user shakes the phone around

what you do is check for nulls and handle so that you do not get
bitten like the other poster who is going to nail the wall on 14 

it's really simple in java - you can ship me some (sterilized) class
names and method names and I can write it for you in Java screwing off
while I wake up and make coffee ~ will trade some GUI stuff for it
with you as I am nimrod on GUI stuff - I do hardcore backend =
gui.equals("fear") returns true in all case, even with the phone shut
off..

On Nov 16, 9:18 pm, Cimo Huang  wrote:
> Dear Android Developers:
>
> I got an issue that activity can not receive the same intent second
> time while the app which this activity belongs to  launched from
> another app.
>
> I have an app2 launched from app1. Then in app1, start activity B from
> the main activity A with  startActivity
> The launch mode of B is "Single top"
>
>                android:launchMode="singleTop"
>               android:configChanges="keyboardHidden|orientation">
>       
>         
>       
>                         android:resource="@xml/searchable"/>
>                         android:value=".B" />
>     
>
> Then I search in B, first time I search, the onCreate in B is called.
> Search again, this time B doesn't response the
>
> search inetent, no matter onCreate and onNewIntent, they both haven't
> been called. It seems like B is not at the top of
>
> the visiable stack, but I don't know why and how it can be that.
> How can I do to make B receive the Search intent in second time?  Here
> I can't sdd flag for the search intent and can't
>
> change B's launch mode or add paremeters like "
> android:clearTaskOnLaunch="true" " in manifest.
> Is there any way to solve this issue? What's the root cause of this
> issue. Can you please provide me some suggestion?
>
> Thanks a lot in advance.

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


[android-developers] How to compile Android Launcher source code?

2011-11-16 Thread Saurabh Patel
Hi
*
*
*
*
*I have just donwload the source code of the Android default Launcher
here:
http://android.git.kernel.org/?p=platform/packages/apps/Launcher.git;...


But when I import the project, i can't compile it because there is a
lot of errors. Many of this are unresolved name, package, class and
variables... why? what is the problem? How can I solve it?

Errors Are like local variables of mScrollx,

mScrollY,
**

mLeft etc.

So how can i solve this?

Please help me.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] Samsung Galaxy s2 Browser not working.

2011-11-16 Thread Archana
Hi ,
I am using samsung galaxy s2. Till yesterday morning its browser was
working fine. But now its showing
web page not available. Its connected to WiFi.

Can anyone tell me how to fix this issue.

regards,
archana

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


Re: [android-developers] Re: Cheating the Rating, please google stop this.

2011-11-16 Thread Michael Leung
I think that is a kind of spam.

On Thu, Nov 17, 2011 at 1:06 PM, Zsolt Vasvari  wrote:

> Ask him for an example of his "work", then report the IDs to Google.
>
> On Nov 17, 3:39 am, sblantipodi  wrote:
> > Hi google,
> > I received this email from a well known contact that I can give you
> > via
> > PVT if you are interested in it.
> >
> > ---
> > Hi,
> > I am android application review writer. I have provided more then
> > 100's of reviews to different developers. I can provide you one review
> > free on cost to check my service. You can ask me  start at any time
> > from now. You can always expect sincere, dedicated and honest work
> > from me.I  am having a eIght different smart phone users with Android
> > 2.2.1 Froyo or more. My team also am having a good command over
> > english language.. I can work for as many hours as the project demands
> > me to, can meet deadlines, work with minimum instructions. You can
> > communicate daily. can be available at any time on skype.. I am ready
> > to work for you. .
> > You can ask me for paid applications also. I can rate it also but with
> > different terms.
> > You can ask me some of my examples.
> > ---
> >
> > I think that it's time to stop this guys.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Regards,
Michael Leung
http://www.itblogs.info
http://www.michaelleung.info

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

Re: [android-developers] Re: Ice Cream Sandwich -- possible Crypto incompatibility

2011-11-16 Thread Nikolay Elenkov
On Thu, Nov 17, 2011 at 2:58 PM, Zsolt Vasvari  wrote:
> I don't know how really.  ACRA seems to only show the last exception,
> and unless I propogate the checked exception, I don't seem to be able
> to force ACRA to just report the first one.
>

I see. ACA 4.x has handleSilentException() which (I think) might work.
You might want to just wrap with RuntimeException instead of
returning null, that way the cause won't be masked.

Anyway, it's either one of NoSuchAlgorithmException, NoSuchPaddingException
InvalidKeyException or InvalidAlgorithmParameterException. It is very
unlikely that they removed an algorithm or padding from ICS,
so that leaves an invalid key or IV. Since your IV seems to be a constant
(bad idea, BTW), that leaves the key. What is R.string.lvl_cipher_algorithm?

If it doesn't repeat, it might be just a broken emulator-based ROM or something.

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


[android-developers] Re: Ice Cream Sandwich -- possible Crypto incompatibility

2011-11-16 Thread Zsolt Vasvari
I just change my code to rethrow the GSE as a RuntimeException which
is caught and reported by ACRA.  So hopefuly, after I update the app,
I will get another report from the same user.

On Nov 17, 1:58 pm, Zsolt Vasvari  wrote:
> I don't know how really.  ACRA seems to only show the last exception,
> and unless I propogate the checked exception, I don't seem to be able
> to force ACRA to just report the first one.
>
> On Nov 17, 12:31 pm, Nikolay Elenkov 
> wrote:
>
>
>
> > On Thu, Nov 17, 2011 at 1:24 PM, Zsolt Vasvari  wrote:
>
> > > If I get a GeneralSecurityException, I report it, but then I return
> > > NULL which causes an NPE later on, which I saw in the crash report --
> > > instead of the GeneralSecurityException.
>
> > > Anyway, other than somebody from Google, probably nobody could answer
> > > that, but why would this code suddenly throw a
> > > GeneralSecurityException on ICS when it works fine on HC and earler.
> > > I am afraid, once ICS hits, I will be deluged with unhappy users and 1-
> > > star ratings.
>
> > You might want to show the GSE stacktrace.- Hide quoted text -
>
> - Show quoted 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] Video Conference

2011-11-16 Thread inn
Hi everyone.
Does anyone have tutorial regarding to make video conference between
one computer to android galaxy tab?I am start from scratch.And need to
complete this project only two weeks?Is it possible?Really need your
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: Ice Cream Sandwich -- possible Crypto incompatibility

2011-11-16 Thread Zsolt Vasvari
I don't know how really.  ACRA seems to only show the last exception,
and unless I propogate the checked exception, I don't seem to be able
to force ACRA to just report the first one.


On Nov 17, 12:31 pm, Nikolay Elenkov 
wrote:
> On Thu, Nov 17, 2011 at 1:24 PM, Zsolt Vasvari  wrote:
>
> > If I get a GeneralSecurityException, I report it, but then I return
> > NULL which causes an NPE later on, which I saw in the crash report --
> > instead of the GeneralSecurityException.
>
> > Anyway, other than somebody from Google, probably nobody could answer
> > that, but why would this code suddenly throw a
> > GeneralSecurityException on ICS when it works fine on HC and earler.
> > I am afraid, once ICS hits, I will be deluged with unhappy users and 1-
> > star ratings.
>
> You might want to show the GSE stacktrace.

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


[android-developers] Re: Density confusion

2011-11-16 Thread Kim
Answered one of my questions. I changed my simulated device to 164 ppi
and got the 1.0 density. Sorry, this should have been obvious.

On Nov 16, 10:41 pm, Kim  wrote:
> I am testing our app on a Galaxy Tab 7 and a Kindle Fire. They both
> have the same number of pixels and screen size, but the various views
> on the Fire are two thirds the size of the same ones on the Tab.
> I put in a couple of lines of code to capture the screen metrics and
> find that the Tab is returning 1.5 for density and scaled density and
> the Fire is returning 1.0. Also, for densityDpi, the Tab is returning
> 240 and the Fire is returning 160. This explains the different sized
> views, but I don't understand why.
> By the way, a simulator set up with 1024x600 pixes and 169 ppi looks
> like the Tab.
>
> I do see that the Fire reports back about 165 dpi, x and y, vs about
> 169 from the Tab. Are they just on either side of the border of Large
> and Medium?
> If so, is there a way to load the layout-large xml even though the
> Fire is on the Medium side?

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


[android-developers] Density confusion

2011-11-16 Thread Kim
I am testing our app on a Galaxy Tab 7 and a Kindle Fire. They both
have the same number of pixels and screen size, but the various views
on the Fire are two thirds the size of the same ones on the Tab.
I put in a couple of lines of code to capture the screen metrics and
find that the Tab is returning 1.5 for density and scaled density and
the Fire is returning 1.0. Also, for densityDpi, the Tab is returning
240 and the Fire is returning 160. This explains the different sized
views, but I don't understand why.
By the way, a simulator set up with 1024x600 pixes and 169 ppi looks
like the Tab.

I do see that the Fire reports back about 165 dpi, x and y, vs about
169 from the Tab. Are they just on either side of the border of Large
and Medium?
If so, is there a way to load the layout-large xml even though the
Fire is on the Medium side?

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


Re: [android-developers] Ice Cream Sandwich -- possible Crypto incompatibility

2011-11-16 Thread Nikolay Elenkov
On Thu, Nov 17, 2011 at 1:24 PM, Zsolt Vasvari  wrote:

>
> If I get a GeneralSecurityException, I report it, but then I return
> NULL which causes an NPE later on, which I saw in the crash report --
> instead of the GeneralSecurityException.
>
> Anyway, other than somebody from Google, probably nobody could answer
> that, but why would this code suddenly throw a
> GeneralSecurityException on ICS when it works fine on HC and earler.
> I am afraid, once ICS hits, I will be deluged with unhappy users and 1-
> star ratings.
>

You might want to show the GSE stacktrace.

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


[android-developers] Ice Cream Sandwich -- possible Crypto incompatibility

2011-11-16 Thread Zsolt Vasvari
I got the following ACRA crash report:

USER_COMMENT=Working with widget.
ANDROID_VERSION=4.0.1
APP_VERSION_NAME=1.7.0.2008
BRAND=verizon
PHONE_MODEL=DROIDX

So this guy appears to be running Ice Cream Sandwich on a Droid X.
That's my first huh...

The crash seems to come from my LVL code:

private static Cipher createCipher(Context context, SecretKeySpec
secret, boolean encrypt) {
Cipher cipher = null;

try {
cipher =
Cipher.getInstance(fixText(context.getText(R.string.lvl_cipher_algorithm)).toString());
cipher.init((encrypt ? Cipher.ENCRYPT_MODE :
Cipher.DECRYPT_MODE), secret, new IvParameterSpec(IV));
}
catch (GeneralSecurityException e) {
ErrorReporterFactory.getInstance().reportException(e);
}

return cipher;
}

If I get a GeneralSecurityException, I report it, but then I return
NULL which causes an NPE later on, which I saw in the crash report --
instead of the GeneralSecurityException.

Anyway, other than somebody from Google, probably nobody could answer
that, but why would this code suddenly throw a
GeneralSecurityException on ICS when it works fine on HC and earler.
I am afraid, once ICS hits, I will be deluged with unhappy users and 1-
star ratings.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 change Android Home screen code at framework

2011-11-16 Thread Saurabh Patel
Hi all

My Question is this

How can i change Android Default Home screen Code and Replace my Customize
Home Screen application source code?

Here i already make one customize home screen launcher application for
android. Now i want to add this application in Android Source code. And
Remove Default android home screen source code from Android 2.3 source
code. than i want to built whole Android Source code after replacing
default home screen source code on EVOLUTION MODULE.

So please Share your idea how can i replace default home screen source code
to my home screen source code.

i already download the source code of android 2.3. but i have no idea where
i have to change in code. which files i have to replace.? i want changes in
framework level.


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

Re: [android-developers] Re: Capture Video + Circular Buffer for Video on Android

2011-11-16 Thread s.rawat
try joining any one of the relevant mailing lists here

http://gstreamer.freedesktop.org/lists/


experts are sitting here ..!!

Rgds
Saurabh

"..pain is temporary.quitting lasts forever.."



On Thu, Nov 17, 2011 at 9:07 AM, Joseph Irvine wrote:

> Does gstreamer natively work with circular buffers? In my searches for
> circular buffers I have yet to see any references to gstreamer come up.
>
> Is there a particular class within gstreamer I should try to look into?
>
> Thank you,
> Joseph Irvine
>
> On Wed, Nov 16, 2011 at 7:40 PM, BelvCompSvs  wrote:
>
>> gstreamer --- but it very much is a work in progress
>>
>> On Nov 15, 7:20 pm, Joseph Irvine  wrote:
>> > Hello,
>> >
>> > I am trying to build an application that would run on an Android set-
>> > top box (not mobile device). The set-top box will have analog video
>> > inputs.
>> >
>> > I would like to capture the incoming video within Android.
>> >
>> > Once I capture video, I am looking to see if there are any good SDKs
>> > that provide circular buffers for video. I am space constrained and
>> > would like to be able to capture video and have it set to recycle on
>> > itself after a set period of time.
>> >
>> > For instance, if I determine that I want a 30 minute circular buffer,
>> > it would be nice if the 31st minute of captured video began
>> > overwriting minute number 1. During playback, I would like the 30
>> > minutes to appear seamless even across the circle back to the
>> > beginning.
>> >
>> > What is the best way to capture video in Android and process it
>> > through a circular buffer? I fear that Android, being designed
>> > predominately for mobile devices, may make this tricky for me. Is
>> > there a convenient way to do this with MediaRecorder?
>> >
>> > While this isn't actually my application, it is similar enough that it
>> > will suffice for example: Say I want to hook a video camera to the
>> > analog inputs (although I recognize digital would be better for this
>> > scenario). I want it to only record the last 30 minutes worth of
>> > activity, so that at any point I can review the last 30 minutes of
>> > what has transpired, and it will always be the most recent.
>> >
>> > Thanks,
>> > Joseph Irvine
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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
>

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

[android-developers] Re: Very weird NPE in onPrepareDialog

2011-11-16 Thread Zsolt Vasvari
If prepareCongratulationsDialog() is only called once, it will be
merged by ProGuard, so the NPE will be in
prepareCongratulationsDialog() itself somewhere. The line number is
useless.

On Nov 17, 11:39 am, Emanuel Moecklin <1gravity...@gmail.com> wrote:
> I get reports of NullPointerExceptions in onPrepareDialog in line 860
> (method call to prepareCongratulationsDialog(dialog)):
>         @Override
>         protected void onPrepareDialog(int id, Dialog dialog) {
>                 super.onPrepareDialog(id, dialog);
>                 switch (id) {
>                 case DIALOG_CONGRATULATIONS:
>                         prepareCongratulationsDialog(dialog); // line 860
>                         break;
>                 case DIALOG_...:
>                         // some code
>                 }
>         }
>
>         private void prepareCongratulationsDialog(Dialog dialog) {
>                 // some code
>         };
>
> The dialog is a managed dialog opened using
> showDialog(DIALOG_CONGRATULATIONS)
>
> The stack trace looks like this:
> java.lang.NullPointerException
>         at com.company.app.MyActivity.onPrepareDialog(MyActivity.java:860)
>         at android.app.Activity.onPrepareDialog(Activity.java:2505)
>         at android.app.Activity.showDialog(Activity.java:2555)
>         at android.app.Activity.showDialog(Activity.java:2514)
>         ...
>
> I normally can't reproduce the problem (only once so far) and it seems
> to happen on arbitrary devices and Android versions but once it occurs
> it seems to have a certain persistency (I normally get several crash
> reports from the same devices).
> How could that line possibly cause an NPE? Even if dialog were null
> (which it isn't, I had a productive version that tested against dialog
> being null and that didn't help), at least
> prepareCongratulationsDialog should be called.
> In that case the stack trace would show the line of code in
> prepareCongratulationsDialog causing the NPE (tested that as well just
> to make sure).
> I tried to put a try catch around the method call. What happened is
> that the app didn't crash and the dialog appeared but "unprepared"
> meaning with all the %1$s etc. placeholders that the onPrepareDialog
> is supposed to replace.
>
> If the method prepareCongratulationsDialog itself isn't crashing how
> could line 860 possibly cause an NPE?
> Could the fact that I'm using ProGuard be related to these crashes?
>
> Any help is very much appreciated.
>
> Emanuel Moecklin
> 1gravity LLC

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


[android-developers] Very weird NPE in onPrepareDialog

2011-11-16 Thread Emanuel Moecklin
I get reports of NullPointerExceptions in onPrepareDialog in line 860
(method call to prepareCongratulationsDialog(dialog)):
@Override
protected void onPrepareDialog(int id, Dialog dialog) {
super.onPrepareDialog(id, dialog);
switch (id) {
case DIALOG_CONGRATULATIONS:
prepareCongratulationsDialog(dialog); // line 860
break;
case DIALOG_...:
// some code
}
}

private void prepareCongratulationsDialog(Dialog dialog) {
// some code
};

The dialog is a managed dialog opened using
showDialog(DIALOG_CONGRATULATIONS)

The stack trace looks like this:
java.lang.NullPointerException
at com.company.app.MyActivity.onPrepareDialog(MyActivity.java:860)
at android.app.Activity.onPrepareDialog(Activity.java:2505)
at android.app.Activity.showDialog(Activity.java:2555)
at android.app.Activity.showDialog(Activity.java:2514)
...

I normally can't reproduce the problem (only once so far) and it seems
to happen on arbitrary devices and Android versions but once it occurs
it seems to have a certain persistency (I normally get several crash
reports from the same devices).
How could that line possibly cause an NPE? Even if dialog were null
(which it isn't, I had a productive version that tested against dialog
being null and that didn't help), at least
prepareCongratulationsDialog should be called.
In that case the stack trace would show the line of code in
prepareCongratulationsDialog causing the NPE (tested that as well just
to make sure).
I tried to put a try catch around the method call. What happened is
that the app didn't crash and the dialog appeared but "unprepared"
meaning with all the %1$s etc. placeholders that the onPrepareDialog
is supposed to replace.

If the method prepareCongratulationsDialog itself isn't crashing how
could line 860 possibly cause an NPE?
Could the fact that I'm using ProGuard be related to these crashes?

Any help is very much appreciated.

Emanuel Moecklin
1gravity LLC

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


Re: [android-developers] Re: Capture Video + Circular Buffer for Video on Android

2011-11-16 Thread Joseph Irvine
Does gstreamer natively work with circular buffers? In my searches for
circular buffers I have yet to see any references to gstreamer come up.

Is there a particular class within gstreamer I should try to look into?

Thank you,
Joseph Irvine

On Wed, Nov 16, 2011 at 7:40 PM, BelvCompSvs  wrote:

> gstreamer --- but it very much is a work in progress
>
> On Nov 15, 7:20 pm, Joseph Irvine  wrote:
> > Hello,
> >
> > I am trying to build an application that would run on an Android set-
> > top box (not mobile device). The set-top box will have analog video
> > inputs.
> >
> > I would like to capture the incoming video within Android.
> >
> > Once I capture video, I am looking to see if there are any good SDKs
> > that provide circular buffers for video. I am space constrained and
> > would like to be able to capture video and have it set to recycle on
> > itself after a set period of time.
> >
> > For instance, if I determine that I want a 30 minute circular buffer,
> > it would be nice if the 31st minute of captured video began
> > overwriting minute number 1. During playback, I would like the 30
> > minutes to appear seamless even across the circle back to the
> > beginning.
> >
> > What is the best way to capture video in Android and process it
> > through a circular buffer? I fear that Android, being designed
> > predominately for mobile devices, may make this tricky for me. Is
> > there a convenient way to do this with MediaRecorder?
> >
> > While this isn't actually my application, it is similar enough that it
> > will suffice for example: Say I want to hook a video camera to the
> > analog inputs (although I recognize digital would be better for this
> > scenario). I want it to only record the last 30 minutes worth of
> > activity, so that at any point I can review the last 30 minutes of
> > what has transpired, and it will always be the most recent.
> >
> > Thanks,
> > Joseph Irvine
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Re: Multiple Apps and Content Providers, How to ?

2011-11-16 Thread BelvCompSvs
there are some other things you may not have thought about yet

go to the developer doomawhichythingy at

http://developer.android.com/videos/index.html#v=WGIU2JX1U5Y

and run the video titled

Evading Pirates and Stopping Vampires

about half of which I was already working on and had re-coding of the
LVL entry point for the app well underway like changing the salts for
aes and looking for "chokepoints" that would make an ideas attack
vector and as the speakers were working i had a near-brilliant insight
on how exactly to approach the market correctly

suffice it to say we do not want a legit customer who is trying
getting a block on every app load

standard engineering ~ the correct approach to "licensing" actually
involves a softer approach - you do what you mention in that last post
and these speakers on the google team confirm your approach

On Nov 16, 3:22 pm, swebb99  wrote:
> Right I've had a read around in-app purchasing and I think its the way
> to go.
>
> My thinking is I release the initial version of the code probably
> without in-app code, just get it out there. Then I do an update when
> ready which add in-app purchasing. The extra logic to be bought will
> already be in the app just not enabled. When the customer makes a
> purchase the extra logic is enabled. Whenever I do updates another
> extra bit of functionality maybe provided which may require a purchase
> and the purchase screen will have extra entries. Should all work quiet
> well I think.
>
> Thanks
>
> Steve

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


[android-developers] Activity can not receive the same intent second time while the app which this activity belongs to launched from another app.

2011-11-16 Thread Cimo Huang
Dear Android Developers:

I got an issue that activity can not receive the same intent second
time while the app which this activity belongs to  launched from
another app.

I have an app2 launched from app1. Then in app1, start activity B from
the main activity A with  startActivity
The launch mode of B is "Single top"


  

  
  
  


Then I search in B, first time I search, the onCreate in B is called.
Search again, this time B doesn't response the

search inetent, no matter onCreate and onNewIntent, they both haven't
been called. It seems like B is not at the top of

the visiable stack, but I don't know why and how it can be that.
How can I do to make B receive the Search intent in second time?  Here
I can't sdd flag for the search intent and can't

change B's launch mode or add paremeters like "
android:clearTaskOnLaunch="true" " in manifest.
Is there any way to solve this issue? What's the root cause of this
issue. Can you please provide me some suggestion?

Thanks a lot in advance.

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


[android-developers] Re: Cheating the Rating, please google stop this.

2011-11-16 Thread Zsolt Vasvari
Ask him for an example of his "work", then report the IDs to Google.

On Nov 17, 3:39 am, sblantipodi  wrote:
> Hi google,
> I received this email from a well known contact that I can give you
> via
> PVT if you are interested in it.
>
> ---
> Hi,
> I am android application review writer. I have provided more then
> 100's of reviews to different developers. I can provide you one review
> free on cost to check my service. You can ask me  start at any time
> from now. You can always expect sincere, dedicated and honest work
> from me.I  am having a eIght different smart phone users with Android
> 2.2.1 Froyo or more. My team also am having a good command over
> english language.. I can work for as many hours as the project demands
> me to, can meet deadlines, work with minimum instructions. You can
> communicate daily. can be available at any time on skype.. I am ready
> to work for you. .
> You can ask me for paid applications also. I can rate it also but with
> different terms.
> You can ask me some of my examples.
> ---
>
> I think that it's time to stop this guys.

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


Re: [android-developers] Looking for a partner

2011-11-16 Thread Rajeev K
Hi,

This is Rajeev. I would like to work on Android projects and i have done 2
projects in Android with java.

My Skills

Android, java, PHP,MySql,Javascript, HTML,CSS, JQuery, Ajax and  XML.
Looking forward to hear your response.

Thanks,
Rajeev

On Thu, Nov 17, 2011 at 2:00 AM, Alexander Turda
wrote:

> I started working on an app and I could really use some help.
>
> All I need is a person with at least 1 released app.
> Also,I need that person to be able to work at least 2 hours per day.
>
>
> The app I'm working right now is unique,I mean there isn't any app like
> this one.
> If the partnership goes ok,then I have plans for future...(do I have
> ideeas for future apps? Heck I do!)
>
> Now I would actually need a person to setup an xml reader,and to play a
> little bit with some settings on a listview. I can't do those cause I'm
> working on a service,so a person that knows how to work with that,would be
> awesome.
>
> If you think you can handle all that I wrote above,feel free to contact
> me! (also,please send me the apk or the link to the app you made!)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Thanks and Best Regards,
Rajeev

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

Re: [android-developers] Tab with in Expandable List

2011-11-16 Thread TreKing
On Wed, Nov 16, 2011 at 8:32 AM, Siva Prakash wrote:

> Anybody can help me on how to put a Tabe View inside Expandable List ?
> Appreciate if someone pass me an example or tutorial ?


Check the documentation, it has an ExpandableListView example.
Get that working.
Then replace the view it returns with a TabView and see if it works.

-
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: org.apache.http.conn.HttpHostConnectException: Connection to http://127.0.0.1:8080 refused

2011-11-16 Thread Kumar Bibek
Also check the port number to which you are supposed tp connect.

On Nov 17, 4:30 am, alexb  wrote:
> First, 127.0.0.1 is not valid on the device.
> Second, check that your app has  android:name="android.permission.INTERNET" />
>
> On Nov 16, 1:38 am, indra  wrote:
>
>
>
>
>
>
>
> > I am  trying to call  a servlet from andorid application but when i
> > call the servlet i get the connection refused error
> >  I have tried replacing 127.0.0.1 with my ip iaddress the i get
> > connection time out error any clue on these.
>
> >  public static String executeHttpPost(String url,
> > ArrayList postParameters) throws Exception {
> >         BufferedReader in = null;
> >           HttpClient client = getHttpClient();
> >             System.out.println("===1");
> >             HttpPost request = new HttpPost(url);
> >             UrlEncodedFormEntity formEntity = new
> > UrlEncodedFormEntity(postParameters);
> >             request.setEntity(formEntity);
> >             System.out.println("===2");
> >             HttpResponse response = client.execute(request);
>
> >     }
>
> > public class LoginExcerciseActivity extends Activity {
>
> >   @Override
> >             public void onCreate(Bundle savedInstanceState) {
>
> >                 try {
> >                     Class
> > strictModeClass=Class.forName("android.os.StrictMode");
> >                     Class
> > strictModeThreadPolicyClass=Class.forName("android.os.StrictMode
> > $ThreadPolicy");
> >                     Object laxPolicy =
> > strictModeThreadPolicyClass.getField("LAX").get(null);
> >                     Method method_setThreadPolicy =
> > strictModeClass.getMethod(
> >                             "setThreadPolicy", strictModeThreadPolicyClass 
> > );
> >                     method_setThreadPolicy.invoke(null,laxPolicy);
> >                 } catch (Exception e) {
> > System.out.println("===>Error giving policy");
> > e.printStackTrace();
> >                 }
> >                 super.onCreate(savedInstanceState);
> >                 setContentView(R.layout.main);
> >                         ArrayList postParameters = new
> > ArrayList();
> >                         postParameters.add(new 
> > BasicNameValuePair("username",
> > un.getText().toString()));
> >                         postParameters.add(new 
> > BasicNameValuePair("password",
> > pw.getText().toString()));
> >                         System.out.println("===About to send request");
> >                         response = CustomHttpClient.executeHttpPost("http://
> > 127.0.0.1:8080/MobileProj/androidres.do", postParameters);
>
> > }

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


Re: [android-developers] Google maps API

2011-11-16 Thread TreKing
On Tue, Nov 15, 2011 at 12:36 PM, pmurdoch wrote:

> I am developing a store locator and what to show on the map locations of a
> particular branch of fast food outlets without the user doing a search. Any
> idea's on the best way to do this?
>

1 - Create database with store locations -OR- connect to some site that
lets you query said locations.
2 - Plot them on the map.
3 - Profit

-
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: VideoView Volume

2011-11-16 Thread BelvCompSvs
MediaPlayer class can be used to control playback of audio/video files
and streams. An example on how to use the methods in this class can be
found in VideoView .  While in the Prepared state, properties such
as audio/sound volume, ...

just put your question in the search bar

http://developer.android.com/search.html#q=control the volume of a
VideoView's sound playback&t=0

like i did and you get plenty of good answers

On Nov 15, 4:30 pm, Anm  wrote:
> Is there a way to control the volume of a VideoView's sound playback.
> More specifically, I want to control the volume of one of two video
> views, independently.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
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 connect android device to wifi printer ??

2011-11-16 Thread BelvCompSvs
http://developer.android.com/reference/android/util/PrintStreamPrinter.html

then you get the Wifi thing working on it but very very probably you
will end up with character encoding issues ( probably all over the
place )

I found a get-going first starter app that I could use from nothing
but vCard project that busted in a few places on character encoding bu
for what you ask you get wifi working and interface to the printer
stuff i gave a link for

gonna take awhile so do not get in too big of a hurry

On Nov 16, 12:05 am, Hrishi  wrote:
> Hi ... I am newbie to android ,Want to code a Android app, which will
> connect to a wifi printer and than make a printing.
>
> Please tell me step that how could i get this result ...
>
> The question mark is how to connect to the network printer
>
> So if anyone can suggest me a way i would appriciate it,
>
> thanks in advance

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


[android-developers] Re: Capture Video + Circular Buffer for Video on Android

2011-11-16 Thread BelvCompSvs
gstreamer --- but it very much is a work in progress

On Nov 15, 7:20 pm, Joseph Irvine  wrote:
> Hello,
>
> I am trying to build an application that would run on an Android set-
> top box (not mobile device). The set-top box will have analog video
> inputs.
>
> I would like to capture the incoming video within Android.
>
> Once I capture video, I am looking to see if there are any good SDKs
> that provide circular buffers for video. I am space constrained and
> would like to be able to capture video and have it set to recycle on
> itself after a set period of time.
>
> For instance, if I determine that I want a 30 minute circular buffer,
> it would be nice if the 31st minute of captured video began
> overwriting minute number 1. During playback, I would like the 30
> minutes to appear seamless even across the circle back to the
> beginning.
>
> What is the best way to capture video in Android and process it
> through a circular buffer? I fear that Android, being designed
> predominately for mobile devices, may make this tricky for me. Is
> there a convenient way to do this with MediaRecorder?
>
> While this isn't actually my application, it is similar enough that it
> will suffice for example: Say I want to hook a video camera to the
> analog inputs (although I recognize digital would be better for this
> scenario). I want it to only record the last 30 minutes worth of
> activity, so that at any point I can review the last 30 minutes of
> what has transpired, and it will always be the most recent.
>
> Thanks,
> Joseph Irvine

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


[android-developers] Re: Handster

2011-11-16 Thread BelvCompSvs
got any more of them serious sites ??

I have found one really promising then 4-5 that sound right but
probably bust me in the long run bcs dont know about Pirates and
Stopping Vampires using License Verification Library and so on { which
I already am using as primary base class entry nexus recoding SALTS
and hand coding a few obvious obfuscatory points }

then there are the very amazing rate of real busts suddenly showing
up 

On Nov 16, 5:08 pm, Ali Chousein  wrote:
> Yes it is worthwhile. Cisco chose one of my apps from Handster to
> distribute in their app store for example. Based on my experience it's
> a serious site.
>
> -
> Ali Chousein
> Weather-Buddyhttp://weatherbuddy.blogspot.com|http://twitter.com/weather_buddy
> Geo-Filtered 
> Assistanthttp://geo-filtered-assistant.blogspot.comhttps://marketplace.cisco.com/apphq/store/products/994

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


Re: [android-developers] Problems when signing APKs with Java 7.

2011-11-16 Thread Nikolay Elenkov
On Thu, Nov 17, 2011 at 3:20 AM, BoD  wrote:
> Hi!
>
> I just spent a few hours on a signature problem when building our project
> with ant on a machine that has (Oracle's) Java 7 installed.
> When trying to install this apk, I have this error:
> Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
>
> After looking inside the MANIFEST.MF file inside the apk, I noticed that the
> digests are in the form:
> SHA-256-Digest: tXIm+feek/QDGP6yrxtgWDHyfl+XaND6lXbsY9gjZrA=
> Whereas when building with Java 6, they have the form:
> SHA1-Digest: lPHIYoqZ+2OpY0LPumyDkUdNdoc=
>
> I then saw in the (Java 7) jarsign documentation the -digestalg options
> (http://download.oracle.com/javase/7/docs/technotes/tools/windows/jarsigner.html).
> When signing manually the apk with jarsign (instead of using the ant build),
> and passing -digestalg SHA1, I no longer have the problem.
>
> I was wondering if this was a known issue, and if yes, is there anyway to
> fix it in an 'ant friendly' way?
>

Java 7 is not officially supported, AFAIK. People on SO have been reporting
this, so I guess it's known :)

SHA256 is the new default in Java 7 jarsigner, so you need to specify the
-digestalg option to use SHA1, as you've found.Don't know if 
even supports specifying the digest algorithm, so you might want to create
an unsigned package and call jarsigner directly from your build script.
Or just use Java 6 and save yourself some trouble :)

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


[android-developers] Re: Speed up dalvikvm calls

2011-11-16 Thread BelvCompSvs
be very very care full to call .release() { or whatever the actual
release call is named } then what the others are telling you will get
you an efficiency improvement

for what you want to do the ICS [14] is exactly what that is for

On Nov 16, 11:40 am, New Developer  wrote:
> Thanks Daniel
>
> Iam trying to call it every 5ms  But I would settle for as fast as possible.
>
> I have tried so somehow buffer, thus trying to do all the I/O first and
> then just view
> but this has failed hopelessly I can only load 15 frames into memory and
> then get an OutOfMemory
>
> Do you by any chance know how to find the bandwidth of the Xoom and Sony
> S bus what is it capable of
> If I have to call every 20ms  but get a smoother flowing video playback
> that would be fine.
>
> It's just right now I read every 327  or 327000  frames
> frame is not incremented by 1 but by 327  this works for the timing it
> now takes 15 sec to play a 15 sec video
> BUT you are skipping so much that it is obviously  jerky and does not
> flow.  Would love to
> increment frame by 10, but then then the handle cycle to be faster.
>
> any ideas ?
>
> thanks in advance
>
> On 11/16/2011 12:18 PM, Daniel Drozdzewski wrote:
>
>
>
>
>
>
>
> > On 16 November 2011 16:45, New Developer  wrote:
> >> Thanks to all
>
> >> It is a video player   I'm using the MediaMetadataRetriever  so that I can
> >> load and if necessary stop and edit a bitmap
>
> >> I've tried (obviously unsuccessfully to read the bitmap and make it smaller
> >> (for the purpose of memory)
> >> the original video is 1280 x 720  I was trying to save this as a  320 x 180
> >> bitmap  so as to use up less memory
>
> >> mBitmap  = Bitmap.createScaledBitmap(retriever.getFrameAtTime(frame*1000) ,
> >> 320 , 180 , false);
> >> Item.setImageBitmap(mBitmap);                        //    1280 x 720
> > Here ^^^ mBitmap is 320x180, however retriever.getFrameAtTime()
> > returns the full thing...
>
> > How often is this code called? Do you know, that retriever does I/O to
> > pull the frame out?
>
> > Are you trying to have it running every 5ms?
>
> > Do you appreciate that 1280 x 720 x 4B = 3.5MiB and if you want that
> > every 5ms, then your I/O bus and memory bus would have to have
> > bandwidth of 700MiB (assuming processing takes zero time in the 5ms
> > slot, which obviously it doesn't).
>
> > That is a big ask for any mobile phone.

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


Re: [android-developers] In-App purchase and a Paid entry (2 separate listings on android market)

2011-11-16 Thread Nikolay Elenkov
On Thu, Nov 17, 2011 at 1:50 AM, androidmediadeveloper
 wrote:
> Anyone encounter a situation where you had to place an app, with in-
> app purchasing to pro as well as yet another "paid" entry on the
> Android Market ?
>
> We currently have a free app with an upgrade to pro option available
> via in-app billing, and the product team wants to create more
> "discoverability" for the app by asking for another entry in the
> market as a "paid" app.

Probably a bad idea. A new app will have no apparent connection to
the existing one, and will have 0 users/0 rating. Try to change their
 mind :)

You have basically two choices:

* a full featured paid 'pro' app -- easy. You might have to think of
a way to migrate any data from the free app, and ask people
to uninstall the free app, or make sure they can co-exist
peacfully

* in the current free app, check it the pro stub/license app
is installed, and enable pro functionality if it is. You need
to check if both are signed with the same key too, otherwise
anyone can make an app with that package. Downsides:
people need to have two apps installed, and one of them
does nothing (you can make it a 'shell' that just starts the
original/free app).

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


[android-developers] Re: Fragment within a fragment?

2011-11-16 Thread BelvCompSvs
actually while we are at it we may note that a useful Threading tool
will be reverted to single threading model for what ( probably ) is
about the same reasons

On Nov 16, 5:13 pm, Doug Gordon  wrote:
> Thanks for the confirmation; I sort of expected that. After browsing
> StackOverflow, one of the posts gave me an idea for an alternative
> design that will actually make everything much simpler and more
> elegant than what I was thinking of doing. So it worked out for the
> better. :-)
>
>   Doug Gordon
>
> On Nov 16, 4:24 pm, Mark Murphy  wrote:
>
>
>
>
>
>
>
> > On Wed, Nov 16, 2011 at 1:38 PM, Doug Gordon  wrote:
> > > So Fragment A is instantiated, inflates its view, and goes on its merry 
> > > way.
> > > Can Fragment A later instantiate a Fragment B and add it to one of 
> > > Fragment
> > > A's own child views, thus creating a sort of fragment within a fragment?
>
> > No, sorry, Ms. Hackborn has indicated that nesting fragments in
> > fragments is not supported. There's a StackOverflow post or two on
> > this topic.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.1
> > Available!

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


[android-developers] Re: Cheating the Rating, please google stop this.

2011-11-16 Thread BelvCompSvs
about something under a month ago i suddenly started getting 419's
like I have never seen before ~ in fact i told one moderator Oauth-2
at Google had been busted using my "port-25" and strictly speaking -
due to the type of internet interlocutor i find funny - I flat have no
way to know if the what appears to be Ph.D. student trying to study
crypto who sent me a question on some deep kernel crypto-issues is not
just another one of them = but if the person is not how do i detect
whether [N] { in-case she reads this } is getting 419's that appear to
be from ->my<- account

I am a straight and at least have the courtesy to go to those places
where that is done rather than bothering innocents

it is my opinion that there is a "vast" cabal who .

how ^exactly^ do you propose we shield our own activity here . ?

we could probably use the work strengthening the security model for
Android

when things are running at $1,000 there is no such thing as trust ~ it
only becomes a penetration vector


On Nov 16, 1:39 pm, sblantipodi  wrote:
> Hi google,
> I received this email from a well known contact that I can give you
> via
> PVT if you are interested in it.
>
> ---
> Hi,
> I am android application review writer. I have provided more then
> 100's of reviews to different developers. I can provide you one review
> free on cost to check my service. You can ask me  start at any time
> from now. You can always expect sincere, dedicated and honest work
> from me.I  am having a eIght different smart phone users with Android
> 2.2.1 Froyo or more. My team also am having a good command over
> english language.. I can work for as many hours as the project demands
> me to, can meet deadlines, work with minimum instructions. You can
> communicate daily. can be available at any time on skype.. I am ready
> to work for you. .
> You can ask me for paid applications also. I can rate it also but with
> different terms.
> You can ask me some of my examples.
> ---
>
> I think that it's time to stop this guys.

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


[android-developers] No Broadcast intent for Network State changed?

2011-11-16 Thread Zsolt Vasvari
Am I looking at this right?  Is there no way of getting notified when
the user turns on their data?  Or is ACTION_AIRPLANE_MODE_CHANGED
supposed to be used for this?

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


[android-developers] Re: localization bloats my app - is there an alternative approach?

2011-11-16 Thread Zsolt Vasvari
> Hence, the solution would appear to be: make a less wordy app... :-)

This is also a problem for my app as it has 2000+ translatable
strings...  Less wordy is not an option.

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


[android-developers] Re: org.apache.http.conn.HttpHostConnectException: Connection to http://127.0.0.1:8080 refused

2011-11-16 Thread alexb
First, 127.0.0.1 is not valid on the device.
Second, check that your app has 

On Nov 16, 1:38 am, indra  wrote:
> I am  trying to call  a servlet from andorid application but when i
> call the servlet i get the connection refused error
>  I have tried replacing 127.0.0.1 with my ip iaddress the i get
> connection time out error any clue on these.
>
>  public static String executeHttpPost(String url,
> ArrayList postParameters) throws Exception {
>         BufferedReader in = null;
>           HttpClient client = getHttpClient();
>             System.out.println("===1");
>             HttpPost request = new HttpPost(url);
>             UrlEncodedFormEntity formEntity = new
> UrlEncodedFormEntity(postParameters);
>             request.setEntity(formEntity);
>             System.out.println("===2");
>             HttpResponse response = client.execute(request);
>
>     }
>
> public class LoginExcerciseActivity extends Activity {
>
>   @Override
>             public void onCreate(Bundle savedInstanceState) {
>
>                 try {
>                     Class
> strictModeClass=Class.forName("android.os.StrictMode");
>                     Class
> strictModeThreadPolicyClass=Class.forName("android.os.StrictMode
> $ThreadPolicy");
>                     Object laxPolicy =
> strictModeThreadPolicyClass.getField("LAX").get(null);
>                     Method method_setThreadPolicy =
> strictModeClass.getMethod(
>                             "setThreadPolicy", strictModeThreadPolicyClass );
>                     method_setThreadPolicy.invoke(null,laxPolicy);
>                 } catch (Exception e) {
> System.out.println("===>Error giving policy");
> e.printStackTrace();
>                 }
>                 super.onCreate(savedInstanceState);
>                 setContentView(R.layout.main);
>                         ArrayList postParameters = new
> ArrayList();
>                         postParameters.add(new BasicNameValuePair("username",
> un.getText().toString()));
>                         postParameters.add(new BasicNameValuePair("password",
> pw.getText().toString()));
>                         System.out.println("===About to send request");
>                         response = CustomHttpClient.executeHttpPost("http://
> 127.0.0.1:8080/MobileProj/androidres.do", postParameters);
>
>
>
>
>
>
>
> }

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


[android-developers] Re: Fragment within a fragment?

2011-11-16 Thread Doug Gordon
Thanks for the confirmation; I sort of expected that. After browsing
StackOverflow, one of the posts gave me an idea for an alternative
design that will actually make everything much simpler and more
elegant than what I was thinking of doing. So it worked out for the
better. :-)

  Doug Gordon

On Nov 16, 4:24 pm, Mark Murphy  wrote:
> On Wed, Nov 16, 2011 at 1:38 PM, Doug Gordon  wrote:
> > So Fragment A is instantiated, inflates its view, and goes on its merry way.
> > Can Fragment A later instantiate a Fragment B and add it to one of Fragment
> > A's own child views, thus creating a sort of fragment within a fragment?
>
> No, sorry, Ms. Hackborn has indicated that nesting fragments in
> fragments is not supported. There's a StackOverflow post or two on
> this topic.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.1
> Available!

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


[android-developers] Re: Handster

2011-11-16 Thread Ali Chousein
Yes it is worthwhile. Cisco chose one of my apps from Handster to
distribute in their app store for example. Based on my experience it's
a serious site.

-
Ali Chousein
Weather-Buddy
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/store/products/994

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


[android-developers] Google+ and NFC

2011-11-16 Thread Dominik
can someone (probably from the Google-Guys) explain, why NFC support
has been disabled for the Android Google+ app? With earlier versions
of the Google+ client, a tag with an NDEF-Record of type
TNF_WELL_KNOWN and the type RTD_TEXT ("T") was automatically read in
and pasted into the "post message" form. This no longer works.

Or has the type of NDEF messages changes which are known by the Google
+ app?

Thanks for your help
Dominik

PS I have Google+ build-version 2.1.1.219805 installed

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


Re: [android-developers] Re: localization bloats my app - is there an alternative approach?

2011-11-16 Thread Mark Murphy
On Wed, Nov 16, 2011 at 4:53 PM, Dianne Hackborn  wrote:
> They aren't compressed so that they can be mmapped when starting the
> process, instead of having to decompress and copy the entire resource block
> to RAM.  You really do not want that file compressed.

Ah. Makes sense.

> One thing to look at is that you are building against a the min SDK version
> at which the platform switched to UTF-8 for resource strings.

How would we determine what version this was?

Thanks!

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.1
Available!

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


Re: [android-developers] Re: localization bloats my app - is there an alternative approach?

2011-11-16 Thread Dianne Hackborn
They aren't compressed so that they can be mmapped when starting the
process, instead of having to decompress and copy the entire resource block
to RAM.  You really do not want that file compressed.

One thing to look at is that you are building against a the min SDK version
at which the platform switched to UTF-8 for resource strings.

On Wed, Nov 16, 2011 at 1:24 PM, Mark Murphy wrote:

> On Wed, Nov 16, 2011 at 2:18 PM, Kevin TeslaCoil Software
>  wrote:
> > Actually in a normal build the resources.arsc file isn't zip
> > compressed with the other files are and it can be quite large.
> >
> > Manually running aapt can compress it (and does by default), but then
> > you get really weird force closes on some froyo devices. I've been
> > meaning to ask about why this is.
>
> If you can reproduce the problem, it seems like a fine issue for
> b.android.com, perhaps with a side post to the adt-dev Google Group
> about why they aren't compressed by default.
>
> Regardless, my apologies to the OP for my error.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.1
> Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

[android-developers] OpenGL on android

2011-11-16 Thread John Goche
Hello,

I am new to OpenGL and would like to write some
code in it for Android. I wonder whether there are
any significant differences in the android implementation
compared to JOGL http://jogamp.org/jogl/doc/HowToBuild.html
(which also has a quite involved setup process).

I ask because I was thinking of developing in JOGL in order to
speed up the process and then when the project is ready port
the code to android (which has a slower emulator compile,
load, and test development cycle).

Also, would I find a .OBJ (Wavefront) parser anywhere on
android or must I implement/import my own? I ask because
I would require one to read my model into OpenGL/Java.

Comments and suggestions on how to proceed welcome,

Thanks,

John Goche

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

[android-developers] setting permission...

2011-11-16 Thread Nishit Soni
I am developing a project which utilizes oauth (client side).
I am unable to retrieve the request tokens.
The error shown in the catlog (eclipse) is : "communication with the
service provider failed : the target server failed to respond"

I think it is because of no permission being set in the manifest
file..
Can anyone suggest how and which can I set permission for this
problem..?

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] sound spectrum analyzer

2011-11-16 Thread ron simon
Hi Dev. Team,
I want to create a spectral analyser but I'am new in this field . For
writing a content from a music file in an array I used this

try {
File file = new File(mFileName,
array_spinner[Getposition()]);
 file.createNewFile();
 InputStream  is = new FileInputStream (file);
 BufferedInputStream bis = new BufferedInputStream
(is);
 DataInputStream dis = new DataInputStream
(bis);

while (dis.available() > 0)
{
dis.read(buffer,byteOffset,byteCount);
}
 dis.close();

 //write buffer into a text file

After that I wrote this buffer in a txt file for reading.

Text.setTxtDatei("test",buffer);

The problem is that the content is allways the same for every music
file.So it can not be the buffer of the stream.
So the question is how to get the buffer into the txt file ?

Yours,
Ron


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


[android-developers] FragmentMap + ActionBar Tab

2011-11-16 Thread m3n0R
I have a problem I've been trying insert a MapView into a ActionBar
Tab, but I wasn't able to solve the problem even googling...

Here is the Main Activity:

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.layout.action_bar_tabs);
FragmentManager fm = getSupportFragmentManager();
fm.beginTransaction().add(android.R.id.content,
GigLoader.GigLoaderListFragment.newInstance()).commit();

 
getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);

ActionBar.Tab tab1 =
getSupportActionBar().newTab().setText("Geo").setTabListener(this);
ActionBar.Tab tab2 =
getSupportActionBar().newTab().setText("Lista").setTabListener(this);
getSupportActionBar().addTab(tab1);
getSupportActionBar().addTab(tab2);
}

@Override
public void onTabSelected(Tab tab, FragmentTransaction ft) {
if (tab.getPosition() == 0) {
fm.beginTransaction().add(android.R.id.content,
GigLoader.GigLoaderListFragment.newInstance()).commit();
}
else {
fm.beginTransaction().add(android.R.id.content,
GeoGigLoader.GeoGigMapFragment.newInstance()).commit();
}

}

And here the code of the GeoGigLoader:

public class GeoGigLoader extends FragmentMapActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}

public static final class GeoGigMapFragment extends Fragment {

static GeoGigMapFragment newInstance() {
GeoGigMapFragment map = new GeoGigMapFragment();
return map;
}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup
container, Bundle savedInstanceState) {
View view =
getActivity().getLayoutInflater().inflate(R.layout.map_gigs,
container, false);
MapView mapView = (MapView)view.findViewById(R.id.map_view);
mapView.setBuiltInZoomControls(true);
return view;
}

}

@Override
protected boolean isRouteDisplayed() {
return false;
}
}

FragmentMapActivity is a library from actionbarsherlock.com, and this
one extends from a MapActivity, so it should work...

The error I get, is the next one:

FATAL EXCEPTION: main E/AndroidRuntime(954):
android.view.InflateException: Binary XML file line #2: Error
inflating class com.google.android.maps.MapView E/AndroidRuntime(954):
at android.view.LayoutInflater.createView(LayoutInflater.java:513) E/
AndroidRuntime(954): at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565)

Anybody knows what's happening? Thx!!!

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


[android-developers] org.apache.http.conn.HttpHostConnectException: Connection to http://127.0.0.1:8080 refused

2011-11-16 Thread indra
I am  trying to call  a servlet from andorid application but when i
call the servlet i get the connection refused error
 I have tried replacing 127.0.0.1 with my ip iaddress the i get
connection time out error any clue on these.

 public static String executeHttpPost(String url,
ArrayList postParameters) throws Exception {
BufferedReader in = null;
  HttpClient client = getHttpClient();
System.out.println("===1");
HttpPost request = new HttpPost(url);
UrlEncodedFormEntity formEntity = new
UrlEncodedFormEntity(postParameters);
request.setEntity(formEntity);
System.out.println("===2");
HttpResponse response = client.execute(request);

}

public class LoginExcerciseActivity extends Activity {

  @Override
public void onCreate(Bundle savedInstanceState) {

try {
Class
strictModeClass=Class.forName("android.os.StrictMode");
Class
strictModeThreadPolicyClass=Class.forName("android.os.StrictMode
$ThreadPolicy");
Object laxPolicy =
strictModeThreadPolicyClass.getField("LAX").get(null);
Method method_setThreadPolicy =
strictModeClass.getMethod(
"setThreadPolicy", strictModeThreadPolicyClass );
method_setThreadPolicy.invoke(null,laxPolicy);
} catch (Exception e) {
System.out.println("===>Error giving policy");
e.printStackTrace();
}
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
ArrayList postParameters = new
ArrayList();
postParameters.add(new BasicNameValuePair("username",
un.getText().toString()));
postParameters.add(new BasicNameValuePair("password",
pw.getText().toString()));
System.out.println("===About to send request");
response = CustomHttpClient.executeHttpPost("http://
127.0.0.1:8080/MobileProj/androidres.do", postParameters);



}

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


[android-developers] c2dm token

2011-11-16 Thread sushil jindal
I have the c2dm token its working properly . i am getting the
notification from server but some it miss the notification or the
notifications are stop to working so what its mean. the c2dm token was
expire. if yes then how we are test that the c2dm token is expire or
valid.please give me the solution of this querry

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


[android-developers] Programmatic gallery scroll on a timer?

2011-11-16 Thread noobler
Hi,

I need to implement a gallery which scrolls one item at a time, and
which can do 'autoscroll': i.e. every couple of seconds, it
automatically scrolls to the next item.
I extended Gallery, overriding onFling to ignore the fling event and
instead simulate a DPAD arrow left or right in order to move a single
item at a time:

@Override
public boolean onFling(MotionEvent e1, MotionEvent e2, float
velocityX, float velocityY) {
  int kEvent;
  if(isScrollingLeft(e1, e2)){ //Check if scrolling left
kEvent = KeyEvent.KEYCODE_DPAD_LEFT;
  }
  else{ //Otherwise scrolling right
kEvent = KeyEvent.KEYCODE_DPAD_RIGHT;
  }
  onKeyDown(kEvent, null);

  return true;
}

This works well.
For the auto scroll, I create a handler and postDelayed a runnable
which simulates the same DPAD key press in the same way:

handler.postDelayed(new Runnable() {
public void run() {
onKeyDown(KeyEvent.KEYCODE_DPAD_RIGHT, null);
}
}, AUTO_SCROLL_INTERVAL);

but this doesn't do anything!! I know the runnable gets executed as
expected at the correct interval, since I logged it and confirmed
this, but the onKeyDown does not cause the gallery to scroll or switch
items.
Why would this work in one method and not another?
I looked into the Gallery code for clues, but found nothing! It seems
as though it should work.
Please, I'm stumped... any ideas?

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] Problem when I add a header to the list of a PreferenceActivity on Honeycomb

2011-11-16 Thread Julien Del Rio
Hi everybody,

I work on the Honeycomb version.

I add an header to the list in my PreferenceActivity using
getListView().addHeaderView(header).

But now, I think there is a problemn on the index of the list. When I
click on a line, the onPreferenceTreeClick return the previous line.

Do you have an idea for managing this problem ?

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


Re: [android-developers] Re: localization bloats my app - is there an alternative approach?

2011-11-16 Thread Mark Murphy
On Wed, Nov 16, 2011 at 2:18 PM, Kevin TeslaCoil Software
 wrote:
> Actually in a normal build the resources.arsc file isn't zip
> compressed with the other files are and it can be quite large.
>
> Manually running aapt can compress it (and does by default), but then
> you get really weird force closes on some froyo devices. I've been
> meaning to ask about why this is.

If you can reproduce the problem, it seems like a fine issue for
b.android.com, perhaps with a side post to the adt-dev Google Group
about why they aren't compressed by default.

Regardless, my apologies to the OP for my error.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.1
Available!

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


Re: [android-developers] Fragment within a fragment?

2011-11-16 Thread Mark Murphy
On Wed, Nov 16, 2011 at 1:38 PM, Doug Gordon  wrote:
> So Fragment A is instantiated, inflates its view, and goes on its merry way.
> Can Fragment A later instantiate a Fragment B and add it to one of Fragment
> A's own child views, thus creating a sort of fragment within a fragment?

No, sorry, Ms. Hackborn has indicated that nesting fragments in
fragments is not supported. There's a StackOverflow post or two on
this topic.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.1
Available!

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


[android-developers] Re: Multiple Apps and Content Providers, How to ?

2011-11-16 Thread swebb99
Right I've had a read around in-app purchasing and I think its the way
to go.

My thinking is I release the initial version of the code probably
without in-app code, just get it out there. Then I do an update when
ready which add in-app purchasing. The extra logic to be bought will
already be in the app just not enabled. When the customer makes a
purchase the extra logic is enabled. Whenever I do updates another
extra bit of functionality maybe provided which may require a purchase
and the purchase screen will have extra entries. Should all work quiet
well I think.

Thanks

Steve

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


[android-developers] Re: What is the best Client Server framework to use for Android?

2011-11-16 Thread hhenne
Playframework makes it easy to make REST/JSON services.

Hardy Henneberg
http://www.maxikeys.com


On Nov 16, 9:21 pm, JackN  wrote:
> HTML over HTTP
>
> On Nov 16, 9:52 am, raduq  wrote:
>
>
>
> > Hello!
>
> > I'd like to ask you all, what framework would you recommend for a
> > Client-Server application.
>
> > Thanks in advance!

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


[android-developers] Need Your Help: How to send video of mediarecorder over TCP and How can i receive this on server side.

2011-11-16 Thread muhammad.ume...@hotmail.com
Hi,
 I found Mediarecorder that record video, i also found that
parcelFileDescriptor fromSocket can use to send video over TCP but I
am not able to send this video and recieve on a server side.
Mediarecorder
 parcelFileDescriptor fromSocket
that perfect to record video on sd card but when i send it to socket
it doesn't receive on server side and  not create a file,
please guide me how can receive this video on server side and how
can i store in a video file.


Thanks

UMER

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


[android-developers] Looking for a partner

2011-11-16 Thread Alexander Turda
I started working on an app and I could really use some help.

All I need is a person with at least 1 released app.
Also,I need that person to be able to work at least 2 hours per day.


The app I'm working right now is unique,I mean there isn't any app like 
this one.
If the partnership goes ok,then I have plans for future...(do I have ideeas 
for future apps? Heck I do!)

Now I would actually need a person to setup an xml reader,and to play a 
little bit with some settings on a listview. I can't do those cause I'm 
working on a service,so a person that knows how to work with that,would be 
awesome.

If you think you can handle all that I wrote above,feel free to contact me! 
(also,please send me the apk or the link to the app you made!)

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

[android-developers] Re: What is the best Client Server framework to use for Android?

2011-11-16 Thread JackN
HTML over HTTP

On Nov 16, 9:52 am, raduq  wrote:
> Hello!
>
> I'd like to ask you all, what framework would you recommend for a
> Client-Server application.
>
> Thanks in advance!

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


[android-developers] Cheating the Rating, please google stop this.

2011-11-16 Thread sblantipodi
Hi google,
I received this email from a well known contact that I can give you
via
PVT if you are interested in it.

---
Hi,
I am android application review writer. I have provided more then
100's of reviews to different developers. I can provide you one review
free on cost to check my service. You can ask me  start at any time
from now. You can always expect sincere, dedicated and honest work
from me.I  am having a eIght different smart phone users with Android
2.2.1 Froyo or more. My team also am having a good command over
english language.. I can work for as many hours as the project demands
me to, can meet deadlines, work with minimum instructions. You can
communicate daily. can be available at any time on skype.. I am ready
to work for you. .
You can ask me for paid applications also. I can rate it also but with
different terms.
You can ask me some of my examples.
---

I think that it's time to stop this guys.

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


[android-developers] Re: localization bloats my app - is there an alternative approach?

2011-11-16 Thread Kevin TeslaCoil Software
Actually in a normal build the resources.arsc file isn't zip
compressed with the other files are and it can be quite large.
Manually running aapt can compress it (and does by default), but then
you get really weird force closes on some froyo devices. I've been
meaning to ask about why this is.

But my advice is not to split the APK and translations. It will create
a lot more work for you and confusion or bugs for users. And phone's
storage space is just getting large.

On Nov 16, 10:58 am, Mark Murphy  wrote:
> On Wed, Nov 16, 2011 at 9:49 AM, mot12  wrote:
> > My app was about 1.5M, after adding 12 languages I am now looking at
> > 3M because of the multiple string.xml files in the resources.
>
> So, you added 1.5MB of space with 12 languages. That's around 100KB
> apiece. Since this stuff should be compressed in the APK, that's
> probably close to 1MB of strings per language.
>
> Hence, the solution would appear to be: make a less wordy app... :-)
>
> Seriously, how big are your string.xml files?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!

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


[android-developers] Fragment within a fragment?

2011-11-16 Thread Doug Gordon
So Fragment A is instantiated, inflates its view, and goes on its merry 
way. Can Fragment A later instantiate a Fragment B and add it to one of 
Fragment A's own child views, thus creating a sort of fragment within a 
fragment?


I can't think of a reason why not, but still don't have a really good 
grasp on how fragments are implemented and managed. Thanks.


  Doug Gordon
  GHCS Software

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


[android-developers] Re: How to transform a openGL object into a bitmap?

2011-11-16 Thread Streets Of Boston
Looks like colors are inversed.

Probably an issue with this part:
 int pb = (pix >> 16) & 0xff; 
 int pr = (pix << 16) & 0x00ff; 
 int pix1 = (pix & 0xff00ff00) | pr | pb;

Try swapping the red and blue channels:
 int p*r* = (pix >> 16) & 0xff; 
 int p*b* = (pix << 16) & 0x00ff; 
 int pix1 = (pix & 0xff00ff00) | pr | pb;
 

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

[android-developers] Android programmer position at Arizona State University in Phoenix AZ

2011-11-16 Thread Eric Hekler
To all programmers

   I am looking to hire a new programmer, preferably in the Phoenix, AZ
area to work on innovative new strategies in mHealth for promoting health
and behavior change using Android phones and related devices (see here for
related work: http://www.mendeley.com/profiles/eric-hekler/).   Additional
information about this position can be found here:
https://www.asu.edu/go/employment/?auth=guest&jobid=27524&SiteId=1&PostingSeq=1

  Please feel free to email me if you have any questions.  Otherwise,
submit your application at the posting address listed above.

Thanks,
Eric Hekler, Ph.D.
Assistant Professor
Nutrition Program
Health Outcomes @ASU
Arizona State University
500 North 3rd St. room 121
Phoenix, AZ 85004
Office # (602) 827-2271
Email: ehek...@asu.edu

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

[android-developers] Problems when signing APKs with Java 7.

2011-11-16 Thread BoD
Hi!

I just spent a few hours on a signature problem when building our project 
with ant on a machine that has (Oracle's) Java 7 installed.
When trying to install this apk, I have this error: 
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

After looking inside the MANIFEST.MF file inside the apk, I noticed that 
the digests are in the form:
SHA-256-Digest: tXIm+feek/QDGP6yrxtgWDHyfl+XaND6lXbsY9gjZrA=
Whereas when building with Java 6, they have the form:
SHA1-Digest: lPHIYoqZ+2OpY0LPumyDkUdNdoc=

I then saw in the (Java 7) jarsign documentation the -digestalg options 
(http://download.oracle.com/javase/7/docs/technotes/tools/windows/jarsigner.html).
When signing manually the apk with jarsign (instead of using the ant 
build), and passing -digestalg SHA1, I no longer have the problem.

I was wondering if this was a known issue, and if yes, is there anyway to 
fix it in an 'ant friendly' way?

Thanks a lot!

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

[android-developers] International / UTF-8 bug in java.util.zip

2011-11-16 Thread Lathe26
I have found the following bug in Android.  Where do I report it?

There is a bug in java.util.zip (likely in the ZipEntry class) where
the name of the ZipEntry is not properly encoded in the ZIP file.
This bug affects any UTF-8 characters that are not in the ASCII
range.  An example character is the '©' character, which is Unicode
codepoint 0x00A9 or in UTF-8 is 0xC2 0xA9.

The effect of this bug is that file names that contain non-ASCII are
read back with corrupt file names by other ZIP file reading programs
(ex: PKWare's PKZip or WinRar).  Thus, file names that contain
international characters or special symbols are being corrupted.

What is happening is as follows:
1.  By default, ZIP files contain file names that use the IBM 437
character set for historical reasons.  To use the modern UTF-8
encoding of the Unicode character set, a flag needs to be set in the
zip file.  This flag has been supported since ZIP file format version
6.3.2 which was released in September 2007.
2.  Android writes file names in UTF-8 format but does NOT set this
flag.
3.  What appears to be happening is that the flag field is a 16-bit
field that is stored in little-endian format.  The flag to be set for
UTF-8 support is bit 11.  Instead, bit 3 is being set.  Bit 3 is
documented by PKWare to mean "...fields crc-32, compressed size and
uncompressed size are set to zero...".  However, since the crc-32 and
size fields are not 0, I am guessing that the Android code is _trying_
to set bit 11 but is doing it in incorrect big-endian format and thus
accidentally setting bit 3.

For debugging / testing purposes, I used a hex editor to properly set
bit 11 in the zip file.  This enables other ZIP file reader programs
to properly decode the file names.  I have 2 example ZIP files, before
and after this hex edit, that demonstrate this bug that I can make
available.

Note: do not rely on Microsoft Windows 7 built-in zip reader program
for testing purposes to properly decode the file names since
Microsoft's implementation is known to have several zip-related bugs.

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


[android-developers] What is the best Client Server framework to use for Android?

2011-11-16 Thread raduq
Hello!

I'd like to ask you all, what framework would you recommend for a
Client-Server application.

Thanks in advance!

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


Re: [android-developers] Speed up dalvikvm calls

2011-11-16 Thread New Developer

Thanks Daniel

Iam trying to call it every 5ms  But I would settle for as fast as possible.

I have tried so somehow buffer, thus trying to do all the I/O first and 
then just view
but this has failed hopelessly I can only load 15 frames into memory and 
then get an OutOfMemory


Do you by any chance know how to find the bandwidth of the Xoom and Sony 
S bus what is it capable of
If I have to call every 20ms  but get a smoother flowing video playback 
that would be fine.


It's just right now I read every 327  or 327000  frames
frame is not incremented by 1 but by 327  this works for the timing it 
now takes 15 sec to play a 15 sec video
BUT you are skipping so much that it is obviously  jerky and does not 
flow.  Would love to

increment frame by 10, but then then the handle cycle to be faster.

any ideas ?

thanks in advance

On 11/16/2011 12:18 PM, Daniel Drozdzewski wrote:

On 16 November 2011 16:45, New Developer  wrote:

Thanks to all

It is a video player   I'm using the MediaMetadataRetriever  so that I can
load and if necessary stop and edit a bitmap

I've tried (obviously unsuccessfully to read the bitmap and make it smaller
(for the purpose of memory)
the original video is 1280 x 720  I was trying to save this as a  320 x 180
bitmap  so as to use up less memory

mBitmap  = Bitmap.createScaledBitmap(retriever.getFrameAtTime(frame*1000) ,
320 , 180 , false);
Item.setImageBitmap(mBitmap);//1280 x 720

Here ^^^ mBitmap is 320x180, however retriever.getFrameAtTime()
returns the full thing...

How often is this code called? Do you know, that retriever does I/O to
pull the frame out?

Are you trying to have it running every 5ms?

Do you appreciate that 1280 x 720 x 4B = 3.5MiB and if you want that
every 5ms, then your I/O bus and memory bus would have to have
bandwidth of 700MiB (assuming processing takes zero time in the 5ms
slot, which obviously it doesn't).

That is a big ask for any mobile phone.



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

[android-developers] Please Help with GPS Provider Switch

2011-11-16 Thread Tommy Hartz
 

Hey,

 

Right now when trying to get a user location I start with the GPS Provider.
I have a timer set for 30 seconds, If a location is not found in 30 seconds
the timer goes off and stops that location request. When that happens I move
to the Passive Provider. After 30 seconds if a location is not found I stop
the location request and move to the Network Provider.

 

My issue is that when the network provider gets called it never does
anything. If I start with the network provider it goes off just fine and
returns a location back to me. Below is the code I am trying to use:

 

gpsTimer.schedule(new TimerTask(){

  @Override

  public void run() {



startPassive();





  }

}, 3);



currentTimer = "GPS";

 
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0,
locationListener);

 

private void startPassive(){



locationManager.removeUpdates(locationListener);



//Now we want to try for a Passive Fix

currentTimer = "Passive";

passiveTimer.schedule(new TimerTask(){

 

  @Override

  public void run() {

startNetwork();

  }

  

}, 3);

Looper.prepare();

Looper.myLooper().quit();

 
locationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 0,
0, locationListener);

 

private void startNetwork(){

locationManager.removeUpdates(locationListener);

currentTimer = "Network";

Looper.prepare();

Looper.myLooper().quit();

 
locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0,
0, locationListener);

 

any help or suggestions would be greatly appreciated. Thank so much in
advance.

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

Re: [android-developers] Speed up dalvikvm calls

2011-11-16 Thread Daniel Drozdzewski
On 16 November 2011 16:45, New Developer  wrote:
> Thanks to all
>
> It is a video player   I'm using the MediaMetadataRetriever  so that I can
> load and if necessary stop and edit a bitmap
>
> I've tried (obviously unsuccessfully to read the bitmap and make it smaller
> (for the purpose of memory)
> the original video is 1280 x 720  I was trying to save this as a  320 x 180
> bitmap  so as to use up less memory
>
> mBitmap  = Bitmap.createScaledBitmap(retriever.getFrameAtTime(frame*1000) ,
> 320 , 180 , false);
> Item.setImageBitmap(mBitmap);    //    1280 x 720

Here ^^^ mBitmap is 320x180, however retriever.getFrameAtTime()
returns the full thing...

How often is this code called? Do you know, that retriever does I/O to
pull the frame out?

Are you trying to have it running every 5ms?

Do you appreciate that 1280 x 720 x 4B = 3.5MiB and if you want that
every 5ms, then your I/O bus and memory bus would have to have
bandwidth of 700MiB (assuming processing takes zero time in the 5ms
slot, which obviously it doesn't).

That is a big ask for any mobile phone.

-- 
Daniel Drozdzewski

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


Re: [android-developers] Sensor events are received, but not working.

2011-11-16 Thread Raghav Sood
Guess you could be right, Perhaps shifting all the sensor code to the newer
APIs could fix it.

Thanks

On Wed, Nov 16, 2011 at 10:30 PM, Mark Murphy wrote:

> It might be a combined bitfield, since they have a TYPE_ALL. Beyond
> that, no clue.
>
> On Wed, Nov 16, 2011 at 9:18 AM, Raghav Sood
>  wrote:
> > Thanks Mark! I'll work on updating the orientation code. Do you have any
> > idea why the if statement for the accelerometer doesn't kick in, even
> though
> > I am getting a couple of thousand sensor events for type 1?
> > Thanks
> >
> > On Wed, Nov 16, 2011 at 7:22 PM, Mark Murphy 
> > wrote:
> >>
> >> FWIW, the orientation sensor is deprecated. While I yanked the sensor
> >> coverage from my books (the third-generation sensor API makes my head
> >> hurt), I do have some samples that might help:
> >>
> >> https://github.com/commonsguy/cw-advandroid/tree/master/Sensor
> >>
> >> On Wed, Nov 16, 2011 at 8:46 AM, Raghav Sood
> >>  wrote:
> >> > Having a little problem here. I am making an app that uses the GPS,
> >> > accelerometer and compass. GPS works fine. The problem comes with the
> >> > other
> >> > two. According to the Log.d s splattered all over my code, the
> following
> >> > code receives the sensor events for the sensor with the int code 1,
> >> > which
> >> > according to the docs is the accelerometer.
> >> >
> >> > public void onSensorChanged(SensorEvent evt)
> >> >
> >> >   {
> >> >
> >> >   float vals[] = evt.values;
> >> >
> >> >   //Log.d("PAAR", "Sensor triggered.");
> >> >
> >> >   if(evt.sensor.getType() == Sensor.TYPE_MAGNETIC_FIELD ||
> >> > evt.sensor.getType() == Sensor.TYPE_ORIENTATION)
> >> >
> >> >   {
> >> >
> >> > float rawDirection = vals[0];
> >> >
> >> > Log.d("PAAR", "compass Sensor triggered.");
> >> >
> >> > direction =(float) ((rawDirection * kFilteringFactor) +
> >> >
> >> > (direction * (1.0 - kFilteringFactor)));
> >> >
> >> >   inclination =
> >> >
> >> > (float) ((vals[2] * kFilteringFactor) +
> >> >
> >> > (inclination * (1.0 - kFilteringFactor)));
> >> >
> >> >
> >> >
> >> >   if(aboveOrBelow > 0)
> >> >
> >> >   {
> >> >
> >> > inclination = inclination * -1;
> >> >
> >> >   }
> >> >
> >> >
> >> >
> >> > if(evt.sensor.getType() == Sensor.TYPE_ACCELEROMETER)
> >> >
> >> > {
> >> >
> >> > aboveOrBelow =
> >> >
> >> >   (float) ((vals[2] * kFilteringFactor) + (aboveOrBelow *
> >> > (1.0 -
> >> > kFilteringFactor)));
> >> >
> >> > Log.d("PAAR", "Accelerometer ");
> >> >
> >> > }
> >> >
> >> >   }
> >> >
> >> >   }
> >> >
> >> > Yet the if statement for the accelerometer doesn't kick in. Also why
> am
> >> > I
> >> > not receiving the compass events? My device has a compass, I am 100%
> >> > sure of
> >> > that. I register the sensors as follows:
> >> >
> >> > sensorManager =
> >> > (SensorManager)this.getSystemService(Context.SENSOR_SERVICE);
> >> >
> >> >   sensorManager.registerListener(listener,
> >> > sensorManager.getDefaultSensor( SensorManager.SENSOR_ORIENTATION),
> >> > SensorManager.SENSOR_DELAY_FASTEST);
> >> >
> >> >   sensorManager.registerListener(listener,
> >> > sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),
> >> > SensorManager.SENSOR_DELAY_FASTEST);
> >> >
> >> > Ideas/solutions, anyone?
> >> >
> >> > Thanks
> >> >
> >> > --
> >> > Raghav Sood
> >> > http://www.androidactivist.org/ - Author
> >> > http://www.appaholics.in/ - Founder
> >> >
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to
> android-developers@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > android-developers+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> > http://groups.google.com/group/android-developers?hl=en
> >>
> >>
> >>
> >> --
> >> Mark Murphy (a Commons Guy)
> >> http://commonsware.com | http://github.com/commonsguy
> >> http://commonsware.com/blog | http://twitter.com/commonsguy
> >>
> >> Android Training...At Your Office: http://commonsware.com/training
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to
> android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >> http://groups.google.com/group/android-developers?hl=en
> >
> >
> > --
> > Raghav Sood
> > http://www.androidactivist.org/ - Author
> > http://www.appaholics.in/ - Founder
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this

Re: [android-developers] Sensor events are received, but not working.

2011-11-16 Thread Mark Murphy
It might be a combined bitfield, since they have a TYPE_ALL. Beyond
that, no clue.

On Wed, Nov 16, 2011 at 9:18 AM, Raghav Sood
 wrote:
> Thanks Mark! I'll work on updating the orientation code. Do you have any
> idea why the if statement for the accelerometer doesn't kick in, even though
> I am getting a couple of thousand sensor events for type 1?
> Thanks
>
> On Wed, Nov 16, 2011 at 7:22 PM, Mark Murphy 
> wrote:
>>
>> FWIW, the orientation sensor is deprecated. While I yanked the sensor
>> coverage from my books (the third-generation sensor API makes my head
>> hurt), I do have some samples that might help:
>>
>> https://github.com/commonsguy/cw-advandroid/tree/master/Sensor
>>
>> On Wed, Nov 16, 2011 at 8:46 AM, Raghav Sood
>>  wrote:
>> > Having a little problem here. I am making an app that uses the GPS,
>> > accelerometer and compass. GPS works fine. The problem comes with the
>> > other
>> > two. According to the Log.d s splattered all over my code, the following
>> > code receives the sensor events for the sensor with the int code 1,
>> > which
>> > according to the docs is the accelerometer.
>> >
>> > public void onSensorChanged(SensorEvent evt)
>> >
>> >   {
>> >
>> >       float vals[] = evt.values;
>> >
>> >       //Log.d("PAAR", "Sensor triggered.");
>> >
>> >       if(evt.sensor.getType() == Sensor.TYPE_MAGNETIC_FIELD ||
>> > evt.sensor.getType() == Sensor.TYPE_ORIENTATION)
>> >
>> >       {
>> >
>> >         float rawDirection = vals[0];
>> >
>> >         Log.d("PAAR", "compass Sensor triggered.");
>> >
>> >         direction =(float) ((rawDirection * kFilteringFactor) +
>> >
>> >             (direction * (1.0 - kFilteringFactor)));
>> >
>> >           inclination =
>> >
>> >             (float) ((vals[2] * kFilteringFactor) +
>> >
>> >             (inclination * (1.0 - kFilteringFactor)));
>> >
>> >
>> >
>> >           if(aboveOrBelow > 0)
>> >
>> >           {
>> >
>> >             inclination = inclination * -1;
>> >
>> >           }
>> >
>> >
>> >
>> >         if(evt.sensor.getType() == Sensor.TYPE_ACCELEROMETER)
>> >
>> >         {
>> >
>> >             aboveOrBelow =
>> >
>> >               (float) ((vals[2] * kFilteringFactor) + (aboveOrBelow *
>> > (1.0 -
>> > kFilteringFactor)));
>> >
>> >             Log.d("PAAR", "Accelerometer ");
>> >
>> >         }
>> >
>> >       }
>> >
>> >   }
>> >
>> > Yet the if statement for the accelerometer doesn't kick in. Also why am
>> > I
>> > not receiving the compass events? My device has a compass, I am 100%
>> > sure of
>> > that. I register the sensors as follows:
>> >
>> > sensorManager =
>> > (SensorManager)this.getSystemService(Context.SENSOR_SERVICE);
>> >
>> >       sensorManager.registerListener(listener,
>> > sensorManager.getDefaultSensor( SensorManager.SENSOR_ORIENTATION),
>> > SensorManager.SENSOR_DELAY_FASTEST);
>> >
>> >       sensorManager.registerListener(listener,
>> > sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),
>> > SensorManager.SENSOR_DELAY_FASTEST);
>> >
>> > Ideas/solutions, anyone?
>> >
>> > Thanks
>> >
>> > --
>> > Raghav Sood
>> > http://www.androidactivist.org/ - Author
>> > http://www.appaholics.in/ - Founder
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Android Training...At Your Office: http://commonsware.com/training
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
> --
> Raghav Sood
> http://www.androidactivist.org/ - Author
> http://www.appaholics.in/ - Founder
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups "An

Re: [android-developers] localization bloats my app - is there an alternative approach?

2011-11-16 Thread Mark Murphy
On Wed, Nov 16, 2011 at 9:49 AM, mot12  wrote:
> My app was about 1.5M, after adding 12 languages I am now looking at
> 3M because of the multiple string.xml files in the resources.

So, you added 1.5MB of space with 12 languages. That's around 100KB
apiece. Since this stuff should be compressed in the APK, that's
probably close to 1MB of strings per language.

Hence, the solution would appear to be: make a less wordy app... :-)

Seriously, how big are your string.xml files?

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

Warescription: Three Android Books, Plus Updates, One Low Price!

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


[android-developers] In-App purchase and a Paid entry (2 separate listings on android market)

2011-11-16 Thread androidmediadeveloper
Anyone encounter a situation where you had to place an app, with in-
app purchasing to pro as well as yet another "paid" entry on the
Android Market ?

We currently have a free app with an upgrade to pro option available
via in-app billing, and the product team wants to create more
"discoverability" for the app by asking for another entry in the
market as a "paid" app.

Any suggestions ? Can this be done with some sort of a stub apk ?
Also, how to treat situations where the free app might already exist
on the device.

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] Mobile Developer (IMMED NEED)

2011-11-16 Thread Steven Smith
Dear Business Partner,
Hope you are doing well today,
Please review the requirement and let me know if you have any one available
for the below position, Please send me your consultant updated resume with
the contact detail ASAP


Job Title:Mobile Developer
Location: McHenry, IL
Duration: 12+ Months

/ NEED LOCAL CANDIDATES /

Required Skills:
HTML5 and CSS3 experience.

**
Warm Regards,
Steven Smith

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

[android-developers] Re: In-app billing: Creating coupons ?

2011-11-16 Thread androidmediadeveloper
Thanks for the suggestions there Kostya, we're going with a issue
refund after purchase approach in lieu of anything in the platform.

-Android Media developer

On Nov 7, 3:51 pm, Kostya Vasilyev  wrote:
> In-app billing does not allow free (of charge) items. You can refund a
> purchase once it's been completely processed (i.e. the money actually
> changed hands) and keep activation (it's up to the application code to
> treat refunded items as active: Dungeons does this).
>
> There is no expiration date either, although you could try unpublishing
> the item in the Dev Console - don't know if this affects existing
> transactions; it might. This assumes that the app does a restore
> transactions once in a while (which is subject to throttling on Google's
> side).
>
> Some similar requests for enhancements have been filed:
>
> http://code.google.com/p/marketbilling/issues/detail?id=12
>
> http://code.google.com/p/marketbilling/issues/detail?id=3
>
> ... but not specifically for coupon type functionality. You are welcome
> to do so (but I wonder if it makes any difference).
>
> At this time, I'd go with some other solution, perhaps an activator type
> application that could be installed alongside the main one, and would
> talk to your own server.
>
> -- Kostya
>
> 08.11.2011 0:38,androidmediadeveloperпишет:
>
> > We want the ability to setup a beta program for our pro app, which
> > uses in-app billing. I am exploring the possibility of giving our beta
> > testers access to the pro features on the app for free for a limited
> > amount of time, i.e., until we ship it in public. Was wondering if
> > there is a way to generate and issue something like a coupon which can
> > be redeemed by the beta tester to access the pro features. And, for us
> > as developers to have a way to put an "expiry" on the access acquired
> > via the coupon.
>
> > Thanks!
>
> --
> Kostya Vasilyev

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


Re: [android-developers] Speed up dalvikvm calls

2011-11-16 Thread New Developer

Thanks to all

It is a video player   I'm using the MediaMetadataRetriever  so that I 
can load and if necessary stop and edit a bitmap


I've tried (obviously unsuccessfully to read the bitmap and make it 
smaller  (for the purpose of memory)
the original video is 1280 x 720  I was trying to save this as a  320 x 
180 bitmap  so as to use up less memory


mBitmap  = 
Bitmap.createScaledBitmap(retriever.getFrameAtTime(frame*1000) ,  320 , 
180 , false);

Item.setImageBitmap(mBitmap);//1280 x 720
mHandler.postDelayed(buffering, 5);
The quality drops radically  which is NOT good,


As it is I'm reloading into the same variable mBitmap the same size each 
time just basically a different set of pixels
What is the best way to setup the mBitmap variable that I keep using the 
same variable and the same memory  ?
I feel that this is deleting the old bitmap from memory then loading the 
new one.

So like a accordion   add,delete,add,delete,add,delete


Is there a way to expand the memory that this application  can use ?  
obviously there is going to be a limit (other apps running and the total 
memory found on the tablet)


Thanks  again to all

On 11/16/2011 11:04 AM, Kristopher Micinski wrote:

Those are garbage collections, you can't just ask the vm to quit
garbage collecting.  This usually implies that you are doing something
that takes a lot of memory (fire up the barcode scanner and turn on
logcat).

So basically, what type of app are you writing?

Short answer: no.

Longer answer: this probably means that your app isn't written well
enough (or you just need a lot of memory..)

kris

On Wed, Nov 16, 2011 at 10:48 AM, New Developer  wrote:

Hi all,

I have a runnable thread which is called  every  5 ms
mHandler.postDelayed(buffering, 5);

Yet from the LogCat it is taking much longer.

11-16 10:32:14.110: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free
23172K/27463K, paused 25ms
11-16 10:32:14.420: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free
23172K/27463K, paused 25ms
11-16 10:32:14.720: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free
23172K/27463K, paused 24ms
11-16 10:32:15.030: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free
23172K/27463K, paused 25ms
11-16 10:32:15.330: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free
23172K/27463K, paused 25ms

Is there a method to speed up this call and reduce the paused 25ms  time ?


Thanks in advance

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


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

[android-developers] My camera preview height is smaller than the pictures height

2011-11-16 Thread saex
When i am showing the camera preview i can see a height,  and when i
make the photo, the photo shows more height than the preview. I mean
that i can see objects than i can't see on the preview.

How can i solve it?

THese are the parameters of my camera:

public void surfaceChanged(SurfaceHolder holder, int format, int
w, int h) {
if (mPreviewRunning) { //stopPreview() will crash if 
preview is not
running
camera.stopPreview();
}
Camera.Parameters p = camera.getParameters();
p.setPreviewSize(w, h);
p.setPictureSize(1024, 768);
camera.setParameters(p);
try {
camera.setPreviewDisplay(holder);
} catch (IOException e) {e.printStackTrace();}
camera.startPreview();
mPreviewRunning = 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


Re: [android-developers] Speed up dalvikvm calls

2011-11-16 Thread Kristopher Micinski
Those are garbage collections, you can't just ask the vm to quit
garbage collecting.  This usually implies that you are doing something
that takes a lot of memory (fire up the barcode scanner and turn on
logcat).

So basically, what type of app are you writing?

Short answer: no.

Longer answer: this probably means that your app isn't written well
enough (or you just need a lot of memory..)

kris

On Wed, Nov 16, 2011 at 10:48 AM, New Developer  wrote:
> Hi all,
>
> I have a runnable thread which is called  every  5 ms
>    mHandler.postDelayed(buffering, 5);
>
> Yet from the LogCat it is taking much longer.
>
> 11-16 10:32:14.110: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free
> 23172K/27463K, paused 25ms
> 11-16 10:32:14.420: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free
> 23172K/27463K, paused 25ms
> 11-16 10:32:14.720: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free
> 23172K/27463K, paused 24ms
> 11-16 10:32:15.030: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free
> 23172K/27463K, paused 25ms
> 11-16 10:32:15.330: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free
> 23172K/27463K, paused 25ms
>
> Is there a method to speed up this call and reduce the paused 25ms  time ?
>
>
> Thanks in advance
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Speed up dalvikvm calls

2011-11-16 Thread Daniel Drozdzewski
On 16 November 2011 15:48, New Developer  wrote:
> Hi all,
>
> I have a runnable thread which is called  every  5 ms
>    mHandler.postDelayed(buffering, 5);
>
> Yet from the LogCat it is taking much longer.
>
> 11-16 10:32:14.110: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free
> 23172K/27463K, paused 25ms
> 11-16 10:32:14.420: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free
> 23172K/27463K, paused 25ms
> 11-16 10:32:14.720: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free
> 23172K/27463K, paused 24ms
> 11-16 10:32:15.030: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free
> 23172K/27463K, paused 25ms
> 11-16 10:32:15.330: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free
> 23172K/27463K, paused 25ms
>
> Is there a method to speed up this call and reduce the paused 25ms  time ?
>


There should be a TURBO option in the phone somewhere.

But honestly you creating 1.8MB of garbage (dereferenced objects) 3
times within each second, so your GC runs like crazy.

Things to look at:

 - Avoid repeated string concatenation
 - Pre-size your collection data structures
 - Keep caches of frequently-used values rather
   than reallocating them
 - Eliminate references to objects promptly when
   you no longer need them.

-- 
Daniel Drozdzewski

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


[android-developers] Speed up dalvikvm calls

2011-11-16 Thread New Developer

Hi all,

I have a runnable thread which is called  every  5 ms
   mHandler.postDelayed(buffering, 5);

Yet from the LogCat it is taking much longer.

11-16 10:32:14.110: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free 
23172K/27463K, paused 25ms
11-16 10:32:14.420: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free 
23172K/27463K, paused 25ms
11-16 10:32:14.720: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free 
23172K/27463K, paused 24ms
11-16 10:32:15.030: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free 
23172K/27463K, paused 25ms
11-16 10:32:15.330: D/dalvikvm(1945): GC_FOR_ALLOC freed 1801K, 16% free 
23172K/27463K, paused 25ms


Is there a method to speed up this call and reduce the paused 25ms  time ?


Thanks in advance

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

[android-developers] localization bloats my app - is there an alternative approach?

2011-11-16 Thread mot12
My app was about 1.5M, after adding 12 languages I am now looking at
3M because of the multiple string.xml files in the resources. Yes,
they are big but it only became a problem after adding all these
languages. And I want to add more languages...

Does anybody have an idea of how to localize with more awareness to
bloat?

These are the strategies I can think of. They all require some serious
work to put into practice:

1) Split the apk
- Create several language apks to reduce bloat.
- Make the existing apk people paid for just a license apk.
- The individual language apks are free in the market but will not
work without installation of the main apk.
Contra: one has to maintain several apk files

2) Download additional resources
- The apk contains only enough translations to instruct users to
download full language packages of their choice.
- The language packages downloaded onto the SD card (simple xml files)
- The app loads the xml file and creates its own table of resource
strings which is used instead of R.string.
Contra: This adds to the load time of the app if the string.xml is
really big.

Any other ideas?

Thanks for your input,
Martin

mobitobi
Gentle Alarm
SleepNow

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


[android-developers] Tab with in Expandable List

2011-11-16 Thread Siva Prakash
Anybody can help me on how to put a Tabe View inside Expandable List ?
Appreciate if someone pass me an example or tutorial ?

- 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: After adding JAR file , getting error "Conversion to Dalvik format failed with error 1"

2011-11-16 Thread Ashish Tiwari
Hey sorry ,
I was using all those java files in package also , rather that using JAR .
Problem solved ...
;-)

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

[android-developers] Re: After adding JAR file , getting error "Conversion to Dalvik format failed with error 1"

2011-11-16 Thread Ashish Tiwari
Hey I'm sorry,
I was using all those file in packages.
Problem solved ..

;-)

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

Re: [android-developers] Sensor events are received, but not working.

2011-11-16 Thread Raghav Sood
Thanks Mark! I'll work on updating the orientation code. Do you have any
idea why the if statement for the accelerometer doesn't kick in, even
though I am getting a couple of thousand sensor events for type 1?

Thanks

On Wed, Nov 16, 2011 at 7:22 PM, Mark Murphy wrote:

> FWIW, the orientation sensor is deprecated. While I yanked the sensor
> coverage from my books (the third-generation sensor API makes my head
> hurt), I do have some samples that might help:
>
> https://github.com/commonsguy/cw-advandroid/tree/master/Sensor
>
> On Wed, Nov 16, 2011 at 8:46 AM, Raghav Sood
>  wrote:
> > Having a little problem here. I am making an app that uses the GPS,
> > accelerometer and compass. GPS works fine. The problem comes with the
> other
> > two. According to the Log.d s splattered all over my code, the following
> > code receives the sensor events for the sensor with the int code 1, which
> > according to the docs is the accelerometer.
> >
> > public void onSensorChanged(SensorEvent evt)
> >
> >   {
> >
> >   float vals[] = evt.values;
> >
> >   //Log.d("PAAR", "Sensor triggered.");
> >
> >   if(evt.sensor.getType() == Sensor.TYPE_MAGNETIC_FIELD ||
> > evt.sensor.getType() == Sensor.TYPE_ORIENTATION)
> >
> >   {
> >
> > float rawDirection = vals[0];
> >
> > Log.d("PAAR", "compass Sensor triggered.");
> >
> > direction =(float) ((rawDirection * kFilteringFactor) +
> >
> > (direction * (1.0 - kFilteringFactor)));
> >
> >   inclination =
> >
> > (float) ((vals[2] * kFilteringFactor) +
> >
> > (inclination * (1.0 - kFilteringFactor)));
> >
> >
> >
> >   if(aboveOrBelow > 0)
> >
> >   {
> >
> > inclination = inclination * -1;
> >
> >   }
> >
> >
> >
> > if(evt.sensor.getType() == Sensor.TYPE_ACCELEROMETER)
> >
> > {
> >
> > aboveOrBelow =
> >
> >   (float) ((vals[2] * kFilteringFactor) + (aboveOrBelow *
> (1.0 -
> > kFilteringFactor)));
> >
> > Log.d("PAAR", "Accelerometer ");
> >
> > }
> >
> >   }
> >
> >   }
> >
> > Yet the if statement for the accelerometer doesn't kick in. Also why am I
> > not receiving the compass events? My device has a compass, I am 100%
> sure of
> > that. I register the sensors as follows:
> >
> > sensorManager =
> > (SensorManager)this.getSystemService(Context.SENSOR_SERVICE);
> >
> >   sensorManager.registerListener(listener,
> > sensorManager.getDefaultSensor( SensorManager.SENSOR_ORIENTATION),
> > SensorManager.SENSOR_DELAY_FASTEST);
> >
> >   sensorManager.registerListener(listener,
> > sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),
> > SensorManager.SENSOR_DELAY_FASTEST);
> >
> > Ideas/solutions, anyone?
> >
> > Thanks
> >
> > --
> > Raghav Sood
> > http://www.androidactivist.org/ - Author
> > http://www.appaholics.in/ - Founder
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training...At Your Office: http://commonsware.com/training
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Raghav Sood
http://www.androidactivist.org/ - Author
http://www.appaholics.in/ - Founder

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

Re: [android-developers] After adding JAR file , getting error "Conversion to Dalvik format failed with error 1"

2011-11-16 Thread Kristopher Micinski
(Or at least gives you a breaking build saying you've defined a class
twice, which you then have to go and fix, but have a more informative
error to work off of :-)

kris

On Wed, Nov 16, 2011 at 9:13 AM, Kristopher Micinski
 wrote:
> Try rebuilding your project, do a "clean" in eclipse or "ant clean" at
> the terminal.  This usually fixes it.
>
> kris
>
> On Wed, Nov 16, 2011 at 9:06 AM, Ashish Tiwari  wrote:
>> When I'm adding JAR( include 3 java files ) into my project it throws
>> following error .
>>
>> "[2011-11-16 08:51:42 - crumbin-app-prototype] Conversion to Dalvik format
>> failed with error 1"
>>
>> How can i fix this problem ?
>>
>> [2011-11-16 06:34:18 - JSONtest] Unable to resolve target 'Google
>> Inc.:Google APIs:7'
>> [2011-11-16 06:34:18 - HomeActivity] Unable to resolve target 'Google
>> Inc.:Google APIs:13'
>> [2011-11-16 06:35:38 - SDK Manager] Created AVD 'Ice-cream' based on Android
>> 4.0, ARM (armeabi-v7a) processor,
>> [2011-11-16 06:35:38 - SDK Manager] with the following hardware config:
>> [2011-11-16 06:35:38 - SDK Manager] hw.lcd.density=160
>> [2011-11-16 06:35:38 - SDK Manager] vm.heapSize=24
>> [2011-11-16 06:35:38 - SDK Manager] hw.ramSize=256
>> [2011-11-16 06:42:55 - crumbin-app-prototype] --
>> [2011-11-16 06:42:55 - crumbin-app-prototype] Android Launch!
>> [2011-11-16 06:42:55 - crumbin-app-prototype] adb is running normally.
>> [2011-11-16 06:42:55 - crumbin-app-prototype] Performing
>> com.crumbin.main.CrumbinMainActivity activity launch
>> [2011-11-16 06:42:55 - crumbin-app-prototype] Automatic Target Mode:
>> launching new emulator with compatible AVD 'Ice-cream'
>> [2011-11-16 06:42:55 - crumbin-app-prototype] Launching a new emulator with
>> Virtual Device 'Ice-cream'
>> [2011-11-16 06:42:56 - crumbin-app-prototype] New emulator found:
>> emulator-5554
>> [2011-11-16 06:42:56 - crumbin-app-prototype] Waiting for HOME
>> ('android.process.acore') to be launched...
>> [2011-11-16 06:43:35 - crumbin-app-prototype] HOME is up on device
>> 'emulator-5554'
>> [2011-11-16 06:43:35 - crumbin-app-prototype] Uploading
>> crumbin-app-prototype.apk onto device 'emulator-5554'
>> [2011-11-16 06:43:35 - crumbin-app-prototype] Installing
>> crumbin-app-prototype.apk...
>> [2011-11-16 06:44:03 - crumbin-app-prototype] Success!
>> [2011-11-16 06:44:03 - crumbin-app-prototype] Starting activity
>> com.crumbin.main.CrumbinMainActivity on device emulator-5554
>> [2011-11-16 06:44:04 - crumbin-app-prototype] ActivityManager: Starting:
>> Intent { act=android.intent.action.MAIN
>> cat=[android.intent.category.LAUNCHER]
>> cmp=com.crumbin.main/.CrumbinMainActivity }
>> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx
>> UNEXPECTED TOP-LEVEL EXCEPTION:
>> java.lang.IllegalArgumentException: already added:
>> Lcom/crumbs/util/CrumbsHttpRequestImpl;
>> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
>> com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
>> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
>> com.android.dx.dex.file.DexFile.add(DexFile.java:163)
>> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
>> com.android.dx.command.dexer.Main.processClass(Main.java:486)
>> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
>> com.android.dx.command.dexer.Main.processFileBytes(Main.java:455)
>> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
>> com.android.dx.command.dexer.Main.access$400(Main.java:67)
>> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
>> com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:394)
>> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
>> com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
>> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
>> com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
>> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
>> com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
>> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
>> com.android.dx.command.dexer.Main.processOne(Main.java:418)
>> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
>> com.android.dx.command.dexer.Main.processAllFiles(Main.java:329)
>> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
>> com.android.dx.command.dexer.Main.run(Main.java:206)
>> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
>> java.lang.reflect.Method.invoke(Method.java:616)
>> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
>> com.android.ide.eclipse.adt.i

Re: [android-developers] After adding JAR file , getting error "Conversion to Dalvik format failed with error 1"

2011-11-16 Thread Kristopher Micinski
Try rebuilding your project, do a "clean" in eclipse or "ant clean" at
the terminal.  This usually fixes it.

kris

On Wed, Nov 16, 2011 at 9:06 AM, Ashish Tiwari  wrote:
> When I'm adding JAR( include 3 java files ) into my project it throws
> following error .
>
> "[2011-11-16 08:51:42 - crumbin-app-prototype] Conversion to Dalvik format
> failed with error 1"
>
> How can i fix this problem ?
>
> [2011-11-16 06:34:18 - JSONtest] Unable to resolve target 'Google
> Inc.:Google APIs:7'
> [2011-11-16 06:34:18 - HomeActivity] Unable to resolve target 'Google
> Inc.:Google APIs:13'
> [2011-11-16 06:35:38 - SDK Manager] Created AVD 'Ice-cream' based on Android
> 4.0, ARM (armeabi-v7a) processor,
> [2011-11-16 06:35:38 - SDK Manager] with the following hardware config:
> [2011-11-16 06:35:38 - SDK Manager] hw.lcd.density=160
> [2011-11-16 06:35:38 - SDK Manager] vm.heapSize=24
> [2011-11-16 06:35:38 - SDK Manager] hw.ramSize=256
> [2011-11-16 06:42:55 - crumbin-app-prototype] --
> [2011-11-16 06:42:55 - crumbin-app-prototype] Android Launch!
> [2011-11-16 06:42:55 - crumbin-app-prototype] adb is running normally.
> [2011-11-16 06:42:55 - crumbin-app-prototype] Performing
> com.crumbin.main.CrumbinMainActivity activity launch
> [2011-11-16 06:42:55 - crumbin-app-prototype] Automatic Target Mode:
> launching new emulator with compatible AVD 'Ice-cream'
> [2011-11-16 06:42:55 - crumbin-app-prototype] Launching a new emulator with
> Virtual Device 'Ice-cream'
> [2011-11-16 06:42:56 - crumbin-app-prototype] New emulator found:
> emulator-5554
> [2011-11-16 06:42:56 - crumbin-app-prototype] Waiting for HOME
> ('android.process.acore') to be launched...
> [2011-11-16 06:43:35 - crumbin-app-prototype] HOME is up on device
> 'emulator-5554'
> [2011-11-16 06:43:35 - crumbin-app-prototype] Uploading
> crumbin-app-prototype.apk onto device 'emulator-5554'
> [2011-11-16 06:43:35 - crumbin-app-prototype] Installing
> crumbin-app-prototype.apk...
> [2011-11-16 06:44:03 - crumbin-app-prototype] Success!
> [2011-11-16 06:44:03 - crumbin-app-prototype] Starting activity
> com.crumbin.main.CrumbinMainActivity on device emulator-5554
> [2011-11-16 06:44:04 - crumbin-app-prototype] ActivityManager: Starting:
> Intent { act=android.intent.action.MAIN
> cat=[android.intent.category.LAUNCHER]
> cmp=com.crumbin.main/.CrumbinMainActivity }
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx
> UNEXPECTED TOP-LEVEL EXCEPTION:
> java.lang.IllegalArgumentException: already added:
> Lcom/crumbs/util/CrumbsHttpRequestImpl;
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
> com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
> com.android.dx.dex.file.DexFile.add(DexFile.java:163)
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
> com.android.dx.command.dexer.Main.processClass(Main.java:486)
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
> com.android.dx.command.dexer.Main.processFileBytes(Main.java:455)
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
> com.android.dx.command.dexer.Main.access$400(Main.java:67)
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
> com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:394)
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
> com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
> com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
> com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
> com.android.dx.command.dexer.Main.processOne(Main.java:418)
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
> com.android.dx.command.dexer.Main.processAllFiles(Main.java:329)
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
> com.android.dx.command.dexer.Main.run(Main.java:206)
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
> java.lang.reflect.Method.invoke(Method.java:616)
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
> com.android.ide.eclipse.adt.internal.build.DexWrapper.run(DexWrapper.java:179)
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
> com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(BuildHelper.java:729)
> [2011-11-16 08:51:42 - crumbin-app-prototype] Dx     at
> com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuil

[android-developers] keywords

2011-11-16 Thread bob
Here is my top-secret business strategy:

Look at my top-performing apps in Android Market.

See what keywords they use.

Create more stuff with those keywords.

However, I can't find the keywords for my apps.  Are there no explicit
keywords for Android Market?

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


[android-developers] After adding JAR file , getting error "Conversion to Dalvik format failed with error 1"

2011-11-16 Thread Ashish Tiwari
When I'm adding JAR( include 3 java files ) into my project it throws 
following error .

"*[2011-11-16 08:51:42 - crumbin-app-prototype] Conversion to Dalvik format 
failed with error 1*"

How can i fix this problem ?

[2011-11-16 06:34:18 - JSONtest] Unable to resolve target 'Google 
Inc.:Google APIs:7'
[2011-11-16 06:34:18 - HomeActivity] Unable to resolve target 'Google 
Inc.:Google APIs:13'
[2011-11-16 06:35:38 - SDK Manager] Created AVD 'Ice-cream' based on 
Android 4.0, ARM (armeabi-v7a) processor,
[2011-11-16 06:35:38 - SDK Manager] with the following hardware config:
[2011-11-16 06:35:38 - SDK Manager] hw.lcd.density=160
[2011-11-16 06:35:38 - SDK Manager] vm.heapSize=24
[2011-11-16 06:35:38 - SDK Manager] hw.ramSize=256
[2011-11-16 06:42:55 - crumbin-app-prototype] --
[2011-11-16 06:42:55 - crumbin-app-prototype] Android Launch!
[2011-11-16 06:42:55 - crumbin-app-prototype] adb is running normally.
[2011-11-16 06:42:55 - crumbin-app-prototype] Performing 
com.crumbin.main.CrumbinMainActivity activity launch
[2011-11-16 06:42:55 - crumbin-app-prototype] Automatic Target Mode: 
launching new emulator with compatible AVD 'Ice-cream'
[2011-11-16 06:42:55 - crumbin-app-prototype] Launching a new emulator with 
Virtual Device 'Ice-cream'
[2011-11-16 06:42:56 - crumbin-app-prototype] New emulator found: 
emulator-5554
[2011-11-16 06:42:56 - crumbin-app-prototype] Waiting for HOME 
('android.process.acore') to be launched...
[2011-11-16 06:43:35 - crumbin-app-prototype] HOME is up on device 
'emulator-5554'
[2011-11-16 06:43:35 - crumbin-app-prototype] Uploading 
crumbin-app-prototype.apk onto device 'emulator-5554'
[2011-11-16 06:43:35 - crumbin-app-prototype] Installing 
crumbin-app-prototype.apk...
[2011-11-16 06:44:03 - crumbin-app-prototype] Success!
[2011-11-16 06:44:03 - crumbin-app-prototype] Starting activity 
com.crumbin.main.CrumbinMainActivity on device emulator-5554
[2011-11-16 06:44:04 - crumbin-app-prototype] ActivityManager: Starting: 
Intent { act=android.intent.action.MAIN 
cat=[android.intent.category.LAUNCHER] 
cmp=com.crumbin.main/.CrumbinMainActivity }
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx 
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: 
Lcom/crumbs/util/CrumbsHttpRequestImpl;
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
com.android.dx.dex.file.DexFile.add(DexFile.java:163)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
com.android.dx.command.dexer.Main.processClass(Main.java:486)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
com.android.dx.command.dexer.Main.processFileBytes(Main.java:455)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
com.android.dx.command.dexer.Main.access$400(Main.java:67)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:394)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
com.android.dx.command.dexer.Main.processOne(Main.java:418)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
com.android.dx.command.dexer.Main.processAllFiles(Main.java:329)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
com.android.dx.command.dexer.Main.run(Main.java:206)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
java.lang.reflect.Method.invoke(Method.java:616)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
com.android.ide.eclipse.adt.internal.build.DexWrapper.run(DexWrapper.java:179)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(BuildHelper.java:729)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.build(PostCompilerBuilder.java:602)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
[2011-11-16 08:51:42 - crumbin-app-prototype] Dx at 
org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
[2011-11-16

  1   2   >