[android-developers] Re: Problem with Android Emulator

2011-11-16 Thread Bishan
ok. i fixed the issue. deleted current one and created a new one. :)

On Wed, Nov 16, 2011 at 1:16 PM, Bishan tvbis...@gmail.com wrote:

 When i start the emulator, it show on taskbar. but it is not comes to my
 pc screen. i tried to get it on my pc screen using task manager by
 selecting Bring to Front command. but it is not comes to infront of my
 screen.

 how could i fix this issue ?


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

2011-11-16 Thread skink


Ketan wrote:
 Can I access bytecode of some file/function from dex file 

 On Nov 12, 12:58 am, Mark Murphy mmur...@commonsware.com wrote:
  On Fri, Nov 11, 2011 at 6:47 AM, Ketan ket@gmail.com wrote:
   I want to acess class file from bin folder in android.
   I was doing it using
   File f = new File(/bin/filename.class);
 
   Its working fine in java but in android giving path doesnt work,,, so
   please suggest me other way to access class file of any java file.
 
  This is not possible. For starters, there is no .class file in an Android 
  APK.
 
  --
  Mark Murphy (a Commons 
  Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
 
  Android Training in NYC:http://marakana.com/training/android/

see: www.dalvikvm.com/#Dex-File-Format

pskink

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
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 saex
I tryed it but your function haves some kind of problem

I'm displaying a square with a colored textue similar to the old icon
of windows paint software paintbrust. And when i store the opengl
capture into a bitmap (bmp or png), the colours of the texture are
changed :S for example, yellow colours are saved as blue colours.
¿why?

On Nov 15, 10:26 pm, Streets Of Boston flyingdutc...@gmail.com
wrote:
 Just try it out!
 Use (x,y) and (w,h) to render only a portion of your screen into a bitmap.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Remove Log Statements

2011-11-16 Thread Android Developer
Hi All,

Im getting this exception.

Proguard returned with error code 1.

See console Unexpected error while performing partial evaluation:
Class = [org/restlet/engine/local/ZipClientHelper]
Method =
[handlePut(Lorg/restlet/Request;Lorg/restlet/Response;Ljava/io/File;Ljava/lang/String;)V]
Exception = [java.lang.NullPointerException] (null)
java.lang.NullPointerException

I did all configurations.

Default.properties file

proguard.config=proguard.cfg
external.libs.dir=lib

proguard.cfg

-libraryjars /lib/
-dontwarn org.restlet.**

but i got the above exception

I did not use any ant build i am generate through eclipse.


Thanks
Mani.

On Wed, Nov 16, 2011 at 12:12 PM, Android Developer c2dmdevelo...@gmail.com
 wrote:

 Hi All,

 Before pushing application to market we need to remove Log statements.
 if application contains more java files then its hard to remove one by
 one.

 is Proguard is the best solution for this scenario? if its that it
 giving some problem while optimizing external jar files especially
 restlet jar it throughs nullPointerException.

 How do i solve this?


 Thanks
 Mani.

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

2011-11-16 Thread Ali Chousein
What exactly is the problem you are facing? You shouldn't do anything
manually with the created shared preferences XML file. Why do you
think there is a problem with it? If you didn't touch it, it should be
just fine.

-
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] Re: More traditional Android menu

2011-11-16 Thread Ali Chousein
Alex, a friendly suggesstion to you. If you believe you created
something useful, write and maintain a blog about it (Blogger it's
just a great platform www.blogger.com). In the blog you can explain
what are the limitation of the current menus and what improvements you
made to alleviate those limitations. You can even put some
screenshots, because a picture is worth thousand words. In my humble
opinion, with that approach you have better chance convincing people
to use your solution. Becoming angry in this discussion thread is not
going to take you anywhere.

-
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] Re: Why is the activity being destroyed/recreated (NOT a configuration change)?

2011-11-16 Thread Ali Chousein
I'm not sure if the Android framework makes any commitments that the
behavior you expect will be so 100% of the times. My humble suggestion
is, code accordingly without making assumptions that you'll see the
behavior you expect 100% of the times.

-
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] Re: Help need on face book integration

2011-11-16 Thread Ali Chousein
Study Facebook Android SDK:
https://github.com/facebook/facebook-android-sdk
Study Facebook graph API:
https://developers.facebook.com/docs/reference/api/

-
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


Re: [android-developers] SharedPreferences question

2011-11-16 Thread Kostya Vasilyev
Are you trying to let the user change the value with a preference activity,
and still get access to the value from code?

If so, make sure that the shared prefs storage is the same in both cases:

Option 1:

 - In your code snippet, call
PreferenceManager.getDefaultSharedPreferences() rather than
getSharedPreferences(settings), to get the same shared prefs storage as
used by the preference activity.

Option 2, opposite of option 1:

 - In your PreferenceActivity subclass, call
getPreferenceManager().setSharedPreferencesName(settings) telling the
prefs activity to use the same shared prefs storage as used in your snippet.

-- Kostya

2011/11/16 Larry/MavrickProductions ohiooutofdo...@gmail.com

 I have a need to store a single value - the year - so that it can be
 called from any activity in my app. Shared Preferences seems to be the
 easiest but I've got myself coded into a wall and could use a spot of
 advice.

 I think the problem is in my XML, but I'm not sure. Here's the
 pertinent snip of the java. It should be calling the setyear
 variable from the settings.xml file:

 SharedPreferences myPrefs = getSharedPreferences(settings,
 MODE_PRIVATE);
final SharedPreferences.Editor prefsEditor =
 myPrefs.edit();

int checkme = myPrefs.getInt(setyear, 0);
if (checkme  2011)
{
prefsEditor.putInt(setyear, 2011);
prefsEditor.commit();
}

 and the XML:

 ?xml version=1.0 encoding=utf-8?
 PreferenceScreen
  xmlns:android=http://schemas.android.com/apk/res/android;
  
EditTextPreference
android:key=setyear
android:defaultValue=2011
/EditTextPreference
EditTextPreference
android:key=currlist
android:defaultValue=99
/EditTextPreference
 /PreferenceScreen

 Suggestions? Did I totally hose myself?

 Best, -Larry

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Fatal error while repo init

2011-11-16 Thread flintman
I get the below when i repo init -u 
https://android.googlesource.com/platform/manifest.

fatal: unable to start /x//xx/.repo/repo/main.py
fatal: [Errno 13] Permission denied

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

2011-11-16 Thread pmurdoch
Hi All
New to the group so bear with me. 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? You can do this using App Inventor but it is so limited. Want
to see code that I can use in Eclipse :-)
Any help would be much appreciated.
Kind regards
Paul

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Help needed with dynamic layout change [UI Rearrange]

2011-11-16 Thread Kostya Vasilyev
This should work automagically. Do you have configChanges in the manifest
for the first activity?

2011/11/16 androidCrazy venky...@gmail.com

 I have two activities.

 The first activity has buttons arranged as per layoutfirst.xml in protrait
 mode and layoutfirst.xml in landscape mode, placed in layouts-land folder.
 The second activity is a text view.

 The navigation first view - button click - second view
 Change orientation to landscape in second view - click on back - comes
 to first view with deformed layoutfirst.xml of the portrait orientation. I
 want that to be changed to layoutfirst.xml in the layouts-land folder. To
 achieve this, in onStart() method of the first view, called
 setContentView(R.layout.layoutfirst);, the layout was changed accordingly
 but the screen freezes.

 Is there anything I'm missing or any other way to achieve this. Any help
 is greatly appreciated. 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] Best way to change android repository versions efficiently once downloaded using repo/git

2011-11-16 Thread bchoward
I've got a situation where I need to build a set of static copies of
Android source code of different release versions.

Simply doing an repo init -b $version; repo sync will take forever
(init requires interaction, and the syncs will be wasteful of my
bandwidth across versions).

My current setup is to download one base version (say 1.6_r1), copy it
to a new folder (android-1.6_r2) and then rerun init and sync (repo
init -b android-1.6_r2; repo sync). The sync fails sometimes though,
with errors like:

  ndk/build/platforms/android-3/arch-arm/usr/incl
Aborting Syncing work tree: 100% (153/153), done.

error: development/: platform/development checkout
caf83cb2b0ffde1a4cfb7cb258cbe012e283d9e1 Repo sync returned FAIL on
android-2.1_r2.1s

I've found some posts with similar errors that indicate this might be
caused by repo being out of sync with changed files in the
filesystem, but I'm wondering if my errors are caused by changing
versions under repo's nose.

Is this the right way to go about changing repository versions? More
generally, is there a time/bandwidth efficient way to turn an
android-1.6_r1 repository into an android-1.6_r2?

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


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

2011-11-16 Thread Joseph Irvine
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] MediaFrameworkTest media content

2011-11-16 Thread Kam

I am looking for the media content referenced in the file
MediaNames.Java.

I can find no trace of these files in the android source tree.

Any help with locating these files will greatly be appreciated.

thanks


kam

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: How to read data off a website into an Android app

2011-11-16 Thread Paco Abato
Can't you use Apache POI?
http://poi.apache.org/

On Wed, Nov 16, 2011 at 01:23, mellery451 mellery...@gmail.com wrote:
 well, you're not going to be able to (easily) read Excel files on
 android (xls, or whatever they are called these days), but csv will
 probably work - perhaps that's what you were thinking of anyhow. Have
 a look at 
 http://groups.google.com/group/android-developers/browse_thread/thread/cec5eb668e3293fe
 for discussion about loading csv. Once you've fetched the file using
 the http client, opencsv should be able to parse/load it.

 -Mike

 On Nov 15, 3:50 pm, Jungle Jim jjjungle...@gmail.com wrote:

 One more question: I also want to be able to put some data (perhaps in
 Excel spreadsheet format, but not restricted to that) somewhere on the
 web and have my app read that data. This way I can periodically revise
 the data that shows on the apps that my customers have installed on
 their phones.

 Any ideas on the best way to do that?

 On Nov 15, 3:44 pm, mellery451 mellery...@gmail.com wrote:





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


[android-developers] Webkit CSS flip image

2011-11-16 Thread u4yk
Before I begin, let me state that I know about issue 12451 
(code.google.com/p/android/issues/detail?id=12451).  Now, what I'm trying 
to do is create a image that can become a mirror of itself in realtime.  
What I need is a way to do this IN JAVASCRIPT or CSS.  In other words, 
PHOTOSHOP IS NOT A SOLUTION.  Is there a way to have an image flip in JS 
within a Webview on Android 2.x?  Please tell me that this can be done; 
otherwise, let Larry and Sergei develop Testicular Cancer and live long and 
agonizing painful lives.

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

[android-developers] Re: git.kernel.org : Fatal: unable to connect a socket (Connection refused)

2011-11-16 Thread Sasha Nikolic
Had the same issue. Download new repo binary.
Sasha

On Nov 15, 7:33 am, Kristopher Micinski krismicin...@gmail.com
wrote:
 The source moved:

 android.googlesource.com

 You can find more information:

 source.google.com



 On Tue, Nov 15, 2011 at 1:15 AM, s.rawat imsaurabhra...@gmail.com wrote:
  I am getting this error on issuing the git
  init -u git://android.git.kernel.org/platform/manifest.git -b
  android-2.3.2_r1
  android.git.kernel.org[0: 149.20.4.77]: errno=Connection refused
  fatal: unable to connect a socket (Connection refused)

  I tried grepping for android.git.kernel.org in the  defaul xml file
  configuration inside ../bin/.repo , but couldnt find.How can this be
  fixed.Plz assist.

  Same is for repo sync
  Rgds,
  Saurabh

  ..pain is temporary.quitting lasts forever..

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

2011-11-16 Thread Royston
I am building an application and attempting to follow guidelines and
use the ActionBar on Honeycomb versions. In testing I note that unless
running in an XLarge emulator, the ActionBar does not show the menu
overflow icon. Is this as intended and if so what is the purpose of
the ActionBar on such a device? Would I be better served to make the
application device sensitive and not show the ActionBar unless on an
XLarge device?

Yours in anticipation

Roy

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 ERROR/libagl(739): copybit failed

2011-11-16 Thread vane chang
when I put data into the MatrixCursor ,I get the log:android ERROR/
libagl(739): copybit failed.
I don't know what's the matter? please help me

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


[android-developers] AbstractWindowedCursor

2011-11-16 Thread vane chang
how can I extends extends ?
I want getting data from files instead of the data from
sqliteDatabase.
I'm newbie ,please help me.Thank you!

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


[android-developers] How to monitor soft keyboard state?

2011-11-16 Thread p tang
Whats the solution to get soft keyboard open/close state?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 button unactive on search mode

2011-11-16 Thread gordon
Hi,

When I trigger search interface in my app calling
onSearchRequested() the search panel appear but I can't show option
panel. onOptionsItemSelected() is not called and no option menu is
shown. When I'm not in search mode, the menu appear without any
problems.

Surprisingly, on the default search application delivered with the
simulator, pressing menu button work when the search panel is there.

Anyone know how to do it?

Thanks!

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


[android-developers] Re: Is it possible that LINK/CALL a class in another package as a library or plug-in?

2011-11-16 Thread chripo
it's possible with the use of  the classloader.

add this method to your Activity

request the plugin information by an custom broadcast.
the plugin have to response and submit

   pluginapk = plugin_context.getPackageCodePath()
   canonnicalCalssName = plugin1.class.getCanonicalName()

use this Strings as loadPlugin args

private Class? loadPlugin(String pluginapk, String
canonnicalCalssName) throws ClassNotFoundException {
pluginapk += :/data/app/+this.getPackageCodePath(); // append 
your
own apk to the class path
// get the lib path if you use jni
String ldpath = /data/data/ + canonnicalCalssName.substring(0,
canonnicalCalssName.lastIndexOf(.)) + /lib;

PathClassLoader cl = new PathClassLoader(pluginapk,
ldpath.toString(), ClassLoader.getSystemClassLoader());
return Class.forName(canonnicalCalssName, true, cl);
}

initialize the plugin class and make the best of it.

christoph polcin
http://www.christoph-polcin.com/

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


[android-developers] User relevance feedback Android app

2011-11-16 Thread surbhi
Hi,

I have an image database and their extracted feature vectors.I have to
design an Android app where image retrieval is done on user
feedback.User will select few images out of the shown data set on the
screen and send those selected images back to the database which will
return a new refined data set using a R tree algorithm.

Can anyone please help me on how to start a base for this project?

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


[android-developers] Porting iPhone app and running into snag

2011-11-16 Thread Daniel Kramer
I am porting my game SkyWords which is a scrabble like game.  All the
game tiles are children of one game board view.  As the user re-
arranges the tiles I want to set the z-order of the tiles so they draw
correctly.  In my game tiles can be stacked on other tiles and the
order is always changing.

I see the bringToFront but ideally I want to set an explicit order for
each tile based on what spot it's in on the board and where it is in
the tile stack on the spot it's on.. Searching around I don't see a
way to control odering to that level

any pointers?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] device in sleep mode, service still working ?

2011-11-16 Thread Kostya Vasilyev
Depends on your definition of working.

It's not terminated, but the entire device may go to sleep, unless
something wakes it up.

If you have an open network connection (WiFi or mobile, not sure about
Bluetooth) and a packet comes in, the device will wake up for a short time.
Keeping it awake for a duration you might need to process that data is up
to you. Look up PowerManager.

-- Kostya

2011/11/16 SL@maxis ecp_...@my-rialto.com


 Assume I write a service (no interface) that communicates with a PC when
 an event occurs via WiFi or Bluetooth.

 When the phone goes into sleep mode, is the service still working ? Thanks.


 --
 Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to 
 android-developers@**googlegroups.comandroid-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+**unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/**group/android-developers?hl=enhttp://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 swebb99
Thanks for the reply again Mark, very useful information. The in-app
purchasing maybe the way for me to go so I'll have a read around that
subject. In theory I could create the structure of the app with
several modules which could be purchased as add on's. I could put in
the app store a version of the app several times but with one module
each to start with. The customer could purchase the version that suits
their needs to start with and then add other modules as they go. Maybe
also a version with all modules installed as well.

Anyway I'll have a good read about everything you mentioned and work
it all out.

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: Webkit CSS flip image

2011-11-16 Thread Dusk Jockeys Android Apps
Allow me to be the first to say that you are an idiot and I hope
nobody helps you.
Simply appalling.

On Nov 16, 2:05 am, u4yk unsok.ringori...@gmail.com wrote:
 Before I begin, let me state that I know about issue 12451
 (code.google.com/p/android/issues/detail?id=12451).  Now, what I'm trying
 to do is create a image that can become a mirror of itself in realtime.
 What I need is a way to do this IN JAVASCRIPT or CSS.  In other words,
 PHOTOSHOP IS NOT A SOLUTION.  Is there a way to have an image flip in JS
 within a Webview on Android 2.x?  Please tell me that this can be done;
 otherwise, let Larry and Sergei develop Testicular Cancer and live long and
 agonizing painful lives.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] OpenGL Samsung Galaxy S2 S II Problem With Rotation

2011-11-16 Thread Marcin Mikosik
I've finally got access to Samsung Galaxy s2 GT-i9100 android ver: 2.3.3 (I
also update it to 2.3.5 but problem remained) so can share what I've found:

In my code I draw textures using openg 1.0 in two ways:
- using one glDrawArrays(GL_TRIANGLE_FAN, ...) call for each texture that
is rotated
- using one glDrawTexfOES(...) call for each textures that is not rotated

Experiments showed that usecase that causes problems is when:
* glDrawArrays is used between call to glDrawTexfOES and next call to
eglSwapBuffers(). Such glDrawArrays() call instead of rendering texture
will render rectangle using one color/alpha which will be taken from corner
of texture. If you have texture that has transcluent border (alpha = 0)
then whole rectangle will be invisible, if texture is opaque then rendered
rectangle will be visible and will be drawn using exactly one color.

Digging into details showed that call to glDrawTexfOES() corrupts texture
coordinates array (I set it using glTexCoordPointer() once for the whole
life of opengl context). I use the same texture coordinates for all
textures so there's no need to change once it is set. If I add call
to glTexCoordPointer() before each call to glDrawArrays then everything is
drawn correctly.

Possible workarounds - use cases that work correctly (everything is
rendered properly)
* use only glDrawArrays for rendering textures
* between calls to eglSwapBuffers() sort your calls so all glDrawArrays()
goes first, and glDrawTexfOES() later
* call glTexCoordPointer() before each call to glDrawArrays() that
succeeds glDrawTexfOES()

I'm not opengl expert but it looks like bug in this opengl implementation.
Let me know if I'm wrong.

marcin

On Fri, Sep 9, 2011 at 4:31 PM, Marcin Mikosik marcin.miko...@gmail.comwrote:

 Hi,
 I have the same problem reported by one user of my game (for Galaxy S2).
 Textures that are rotated are either completely invisible or rendered
 incorrectly.

 I use opengl 1.0, without VBO and without mipmapping.
 As I do not have access to galaxy S2 I would be grateful if you post your
 solution once you find it.

 thanks
 marcin

 On Tue, Sep 6, 2011 at 1:03 AM, emanuele padula e.pad...@gmail.comwrote:

 Thank you Christopher. I'll do some test regarding the mipmapping, but
 i'm not sure that it will work. Thank you for you suggestion.


 2011/9/5 Christopher Van Kirk christopher.vank...@gmail.com

 I'm seeing a similar problem on that device, but I haven't spent any
 time looking for an answer yet. I see that you're using VBOs...I've read
 somewhere that some devices have trouble with them but I don't know if it's
 true or which devices might be affected. I also know that in my case I'm
 also using VBOs, but I'm not rotating the texture, I'm stretching it
 without a mipmap, and it's a JPEG.

 Sorry couldn't be more help.


 On 9/5/2011 10:15 PM, pad wrote:

 Hi,
 I have a huge problem ONLY with SAMSUNG GALAXY S2 and i cannot figure
 out if the problem is my code or of this device!!

 ON ALL OTHER PHONES IT WORKS GREAT!!

 I'm Using ONLY OpenGL 1.0.

 The problem is that with the code below my game cannot draw the object
 that need rotation (the objects are not visualized on the screen).
 Objects with no rotation (angle = 0.0) are drawn perfectly.

 ONLY on samsung galaxy s2 the rotated images are not visualized on the
 screen. There is some bug in SG2 that i have to take in cosideration
 or some specific initialization?

 Can you help me???

 Thank you in advance

 public static void drawBitmap(final GL10 gl, final float x, final
 float y,
  final float rotate_x, final float rotate_y, final MyImage m,
 final float angle) {

   // Draw using verts or VBO verts.
   gl.glPushMatrix();
   // gl.glLoadIdentity();

   final int indexPerTile = TextureManager.INDEX_PER_TILE;
   final int indexRow = m.fx.row * TextureManager.INDEX_PER_TILE
 * TextureManager.TILE_PER_ROW;

   if (angle == 0.0f) {

gl.glTranslatef(x, y, 0f);
gl.glScalef(m.scaleWidth, m.scaleHeight, 1);
m.fx.grid.drawStrip(gl, true, indexRow,
 indexPerTile);// the
 code of this method is below

 if (m.alpha != 1 || m.red != 1 || m.blue != 1
 || m.green != 1) {
gl.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
 }

   } else {

  final float xt = rotate_x;
  final float yt = rotate_y;
  gl.glTranslatef(xt, yt, 0f);
  gl.glRotatef(-angle, 0f, 0f, 1.0f);
  gl.glTranslatef(-xt + x, -yt + y, 0f);
  gl.glScalef(m.scaleWidth, m.scaleHeight, 1);

  m.fx.grid.drawStrip(gl, true, indexRow, indexPerTile); // the
 code of this method is below

  if (m.alpha != 1 || m.red != 1 || m.blue != 1 || m.green !=
 1) {
 gl.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
  }
   }

   gl.glPopMatrix();
}


public void drawStrip(final GL10 gl, final boolean 

Re: [android-developers] Remove Log Statements

2011-11-16 Thread Android Developer
Hi All,

Any ideas,

I dont have any luck to get this.



Thanks
Manikandan

On Wed, Nov 16, 2011 at 1:54 PM, Android Developer
c2dmdevelo...@gmail.comwrote:

 Hi All,

 Im getting this exception.

 Proguard returned with error code 1.

 See console Unexpected error while performing partial evaluation:
 Class = [org/restlet/engine/local/ZipClientHelper]
 Method =
 [handlePut(Lorg/restlet/Request;Lorg/restlet/Response;Ljava/io/File;Ljava/lang/String;)V]
 Exception = [java.lang.NullPointerException] (null)
 java.lang.NullPointerException

 I did all configurations.

 Default.properties file

 proguard.config=proguard.cfg
 external.libs.dir=lib

 proguard.cfg

 -libraryjars /lib/
 -dontwarn org.restlet.**

 but i got the above exception

 I did not use any ant build i am generate through eclipse.


 Thanks
 Mani.


 On Wed, Nov 16, 2011 at 12:12 PM, Android Developer 
 c2dmdevelo...@gmail.com wrote:

 Hi All,

 Before pushing application to market we need to remove Log statements.
 if application contains more java files then its hard to remove one by
 one.

 is Proguard is the best solution for this scenario? if its that it
 giving some problem while optimizing external jar files especially
 restlet jar it throughs nullPointerException.

 How do i solve this?


 Thanks
 Mani.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Device is attached with usb or not

2011-11-16 Thread Naveen
Hello All,

I want to create a app,  i am  creating naveen folder in sdcard , i
want  when user attached with USB cable and dragging file in Root
sdcard then that moment i want to read device is connected with usb .
means i want to create a service in app that look for usb attachment
check , if attached and drag a file in sdcard then auto move in /
sdcard/naveen  .

How to handle usb is connected or not android code


regards ,

Nav

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 apply preference style in user-defined theme

2011-11-16 Thread Bacon021
I defined a theme with an item named android:preferenceStyle, how
ever when I apply this theme to some activity, the related preference
items' style are still not what I defined.
The following is my style I defined and the usage.

frameworks\base\core\res\res\values\themes.xml:

style name=CustomActivityTheme
item name=android:windowBackground@drawable/bg_color/
item
item name=android:preferenceStyle@android:style/MyPreference/
item
item name=android:windowTitleSize54dip/item
/style

frameworks\base\core\res\res\values\styles.xml:

style name=MyPreference
item name=android:layout@android:layout/my_preference_layout/
item
/style

in CustomActivityTheme, the windowBackground has effect I can change
the color what I need, but MyPreference won't work, that means the
layout does't work.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 show Date Picker in AlertDialog

2011-11-16 Thread Gulfam
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? If yes then How we can show?

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


[android-developers] GPU usage

2011-11-16 Thread Bacon021
as for Issue 6914, we can see that the UI lag is a very important
problem, and as I know most chipsets provide the GPU, such MTK 6573,I
wonder whether has a way for us to use the GPU for our UI? especially
after ICS.

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

2011-11-16 Thread Mark Murphy
Hardware acceleration for widget-based UIs is on by default with Ice
Cream Sandwich. You can opt into it for Honeycomb via the
android:hardwareAcceleration attribute in your manifest.

On Wed, Nov 16, 2011 at 6:59 AM, Bacon021 wei.pg...@gmail.com wrote:
 as for Issue 6914, we can see that the UI lag is a very important
 problem, and as I know most chipsets provide the GPU, such MTK 6573,I
 wonder whether has a way for us to use the GPU for our UI? especially
 after ICS.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 Mark Murphy
On Wed, Nov 16, 2011 at 6:59 AM, Gulfam gulfa...@gmail.com wrote:
 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.

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


Re: [android-developers] Best way to change android repository versions efficiently once downloaded using repo/git

2011-11-16 Thread Mark Murphy
Step #1: Visit http://source.android.com

Step #2: Click on the Community tab

Step #3: Find a Google Group of relevance to your question, as this
group is for developing apps with the Android SDK

Step #4: Ask your question there

On Tue, Nov 15, 2011 at 7:33 PM, bchoward bchow...@gmail.com wrote:
 I've got a situation where I need to build a set of static copies of
 Android source code of different release versions.

 Simply doing an repo init -b $version; repo sync will take forever
 (init requires interaction, and the syncs will be wasteful of my
 bandwidth across versions).

 My current setup is to download one base version (say 1.6_r1), copy it
 to a new folder (android-1.6_r2) and then rerun init and sync (repo
 init -b android-1.6_r2; repo sync). The sync fails sometimes though,
 with errors like:

  ndk/build/platforms/android-3/arch-arm/usr/incl
 Aborting Syncing work tree: 100% (153/153), done.

 error: development/: platform/development checkout
 caf83cb2b0ffde1a4cfb7cb258cbe012e283d9e1 Repo sync returned FAIL on
 android-2.1_r2.1s

 I've found some posts with similar errors that indicate this might be
 caused by repo being out of sync with changed files in the
 filesystem, but I'm wondering if my errors are caused by changing
 versions under repo's nose.

 Is this the right way to go about changing repository versions? More
 generally, is there a time/bandwidth efficient way to turn an
 android-1.6_r1 repository into an android-1.6_r2?

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

2011-11-16 Thread Mark Murphy
On Wed, Nov 16, 2011 at 4:15 AM, Royston roystonpcar...@gmail.com wrote:
 I am building an application and attempting to follow guidelines and
 use the ActionBar on Honeycomb versions. In testing I note that unless
 running in an XLarge emulator, the ActionBar does not show the menu
 overflow icon.

Honeycomb is only for -large and -xlarge devices.

-- 
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] Set the Height and Width of GLSurfaceView

2011-11-16 Thread bhavani sankari
Hi All,

I know it is possible to get height and Width of GLSurfaceView.Can we
set the height and width of GLSurfaceView?

Thanks,
Bhavani

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


[android-developers] Set the Height and Width of GLSurfaceView

2011-11-16 Thread bhavani sankari
Hi All,

I know it is possible to get height and Width of GLSurfaceView.Can we
set the height and width of GLSurfaceView?

Thanks,
Bhavani

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


[android-developers] Re: Device is attached with usb or not

2011-11-16 Thread skink


On Nov 16, 12:35 pm, Naveen kumarnaveen.si...@gmail.com wrote:
 Hello All,

 I want to create a app,  i am  creating naveen folder in sdcard , i
 want  when user attached with USB cable and dragging file in Root
 sdcard then that moment i want to read device is connected with usb .
 means i want to create a service in app that look for usb attachment
 check , if attached and drag a file in sdcard then auto move in /
 sdcard/naveen  .

 How to handle usb is connected or not android code

 regards ,

 Nav

what's wrong with UsbManager?

i sent you UsbManager doc's url yesterday, did you read it?

pskink

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Device is attached with usb or not

2011-11-16 Thread Kristopher Micinski
On Wed, Nov 16, 2011 at 6:35 AM, Naveen kumarnaveen.si...@gmail.com wrote:
 Hello All,

 I want to create a app,  i am  creating naveen folder in sdcard , i
 want  when user attached with USB cable and dragging file in Root
 sdcard then that moment i want to read device is connected with usb .
 means i want to create a service in app that look for usb attachment
 check , if attached and drag a file in sdcard then auto move in /
 sdcard/naveen  .


I assume that you're saying that you want the user to be able to
transfer files between their computer and the device using your app?

This isn't going to work, first of all you don't have that kind of
access to the hardware, and second of all, it already exists: it's
called mounting the drive...

 How to handle usb is connected or not android code

The windows / linux / mac / ... side?

kris

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


[android-developers] Re: device in sleep mode, service still working ?

2011-11-16 Thread SL@maxis



Depends on your definition of working.

It's not terminated, but the entire device may go to sleep, unless
something wakes it up.

If you have an open network connection (WiFi or mobile, not sure about
Bluetooth) and a packet comes in, the device will wake up for a short  
time.

Keeping it awake for a duration you might need to process that data is up
to you. Look up PowerManager.

-- Kostya



Thanks. I don't have a smartphone yet.



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Device is attached with usb or not

2011-11-16 Thread NaveenShrivastva
Thanks all i resolved this issue,

On Wed, Nov 16, 2011 at 6:34 PM, Kristopher Micinski
krismicin...@gmail.com wrote:
 On Wed, Nov 16, 2011 at 6:35 AM, Naveen kumarnaveen.si...@gmail.com wrote:
 Hello All,

 I want to create a app,  i am  creating naveen folder in sdcard , i
 want  when user attached with USB cable and dragging file in Root
 sdcard then that moment i want to read device is connected with usb .
 means i want to create a service in app that look for usb attachment
 check , if attached and drag a file in sdcard then auto move in /
 sdcard/naveen  .


 I assume that you're saying that you want the user to be able to
 transfer files between their computer and the device using your app?

 This isn't going to work, first of all you don't have that kind of
 access to the hardware, and second of all, it already exists: it's
 called mounting the drive...

 How to handle usb is connected or not android code

 The windows / linux / mac / ... side?

 kris

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Open Accessory Protocol

2011-11-16 Thread SL@maxis


1.
Has anyobe has come across implementation of Open Accessory Protocol on  
windows XP ?


2. (Not too sure after reading its web pages)
Is it feasible to buy a Arduino board and plug it onto a pc running  
windows xp ?


3.
Can I use MicroUSB2-to-ethernet adapter to plug into a pc ?

If I am not wrong there are boards that implement Open Accessory Protocol.  
With this I can plug an android to a pc, without having to implement the  
protocol myself.



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

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


[android-developers] Handster

2011-11-16 Thread bob
Anyone have any experience listing their app in Handster?  Is this
worthwhile?

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


[android-developers] Re: Fatal error while repo init

2011-11-16 Thread Oli Wright
Been a lot of these sort of questions recently.  Do a search and you'll 
realise that you're on the wrong list.  Hell, don't even search, just look 
at some of the most recent items.

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

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

2011-11-16 Thread Raghav Sood
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

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

2011-11-16 Thread Mark Murphy
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
raghavs...@androidactivist.org 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


Re: [android-developers] Re: obtain information from My Profile

2011-11-16 Thread TreKing
On Wed, Nov 16, 2011 at 1:52 AM, jose sharecosts...@gmail.com wrote:

 I want to get alias or name the owner of the mobile


Search this group - from what I recall seeing on this topic, this is not
possible.

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

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

[android-developers] 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 

[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


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 ashish...@gmail.com 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.PostCompilerBuilder.build(PostCompilerBuilder.java:602)
 [2011-11-16 08:51:42 - 

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
krismicin...@gmail.com 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 ashish...@gmail.com 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
 

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 mmur...@commonsware.comwrote:

 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
 raghavs...@androidactivist.org 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

[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

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

Re: [android-developers] Speed up dalvikvm calls

2011-11-16 Thread Daniel Drozdzewski
On 16 November 2011 15:48, New Developer secur...@isscp.com 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


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 secur...@isscp.com 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 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 Developersecur...@isscp.com  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] 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 kmans...@gmail.com 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


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


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 martin.hu...@gmail.com 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


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
raghavs...@androidactivist.org 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 mmur...@commonsware.com
 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
 raghavs...@androidactivist.org 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 Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 mmur...@commonsware.comwrote:

 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
 raghavs...@androidactivist.org 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 mmur...@commonsware.com
  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
  raghavs...@androidactivist.org 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 

Re: [android-developers] Speed up dalvikvm calls

2011-11-16 Thread Daniel Drozdzewski
On 16 November 2011 16:45, New Developer secur...@isscp.com 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


[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 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 Developersecur...@isscp.com  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] 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


[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] 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] 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=guestjobid=27524SiteId=1PostingSeq=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] 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] 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: 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 mmur...@commonsware.com wrote:
 On Wed, Nov 16, 2011 at 9:49 AM, mot12 martin.hu...@gmail.com 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] 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: 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 radu...@gmail.com 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] 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] 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] 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 j...@jacknorth.com wrote:
 HTML over HTTP

 On Nov 16, 9:52 am, raduq radu...@gmail.com 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] 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


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

2011-11-16 Thread Mark Murphy
On Wed, Nov 16, 2011 at 1:38 PM, Doug Gordon gordo...@gmail.com 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


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
ke...@teslacoilsw.com 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


[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


[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,
ArrayListNameValuePair 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);
ArrayListNameValuePair postParameters = new
ArrayListNameValuePair();
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] 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] 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] 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

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 mmur...@commonsware.comwrote:

 On Wed, Nov 16, 2011 at 2:18 PM, Kevin TeslaCoil Software
 ke...@teslacoilsw.com 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

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 hack...@android.com 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


[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


  1   2   >