Re: [android-developers] ERROR IN C:\Users\lenovo\Desktop\android-sdk_r06-windows\android-sdk-windowsSDK Setup.exe

2010-08-13 Thread Fatih Ulas
Thanks for your care, I want to install android SDK but  I couldn't install,
I think because of URL.
I am using win vista.

On Thu, Aug 12, 2010 at 3:25 PM, Kevin Duffey andjar...@gmail.com wrote:

  What is the problem? The subject line is a bit vague.. need more
 details...


 On 8/12/2010 2:01 PM, izzet.ulas wrote:

 Hi everybody, I need solution my big problem, please tell me advices..


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


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

[android-developers] Changing the Menu Selector?

2010-08-13 Thread Amit
Hi All,

Is it possible to change the selector of standard Menu? If yes please
let me know how?

Thanks  Best Regards
Amit

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


[android-developers] Re: Chilling news: Oracle sues Google over Android

2010-08-13 Thread JP

On Aug 12, 8:07 pm, Shane Isbell shane.isb...@gmail.com wrote:
 If there were no lawsuits, then I would worry. This is an encouraging sign
 that Android is starting to rattle more cages due to its expected
 profitability and competitiveness.

Nah, just a move to see if they can find some cheap way to balance the
books.
Let's see... Larry will need to find some pocket money to go sailing.
Then there's that looming litigation for stiffing the GSA out of
discounts they were entitled to.

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

2010-08-13 Thread Miguel Morales
What have you tried?

On Thu, Aug 12, 2010 at 10:45 PM, cindy ypu01...@yahoo.com wrote:
 My application needs to send data to server while recording the audio
 data?

 Does anyone know how to do that?

 Thanks!

 April

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



-- 
http://developingthedream.blogspot.com/,
http://diastrofunk.com,
http://www.youtube.com/user/revoltingx, ~Isaiah 55:8-9

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


[android-developers] Activity getting killed and automatically starting again on screen off button press

2010-08-13 Thread Shashidhar
Hi,
  We are experiencing this strange problem. If I press screen off button
When my activity is running, its again starting a new activity. If I press
the screen off button again and unlock the phone, it again starts a new
activity. So in total there are 2 new activities getting created for one
screen off and on.  Any specific reason for this ? Please help me.


Thanks,
Shashidhar

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

[android-developers] Re: Changing button text color in various states (down, disabled etc)

2010-08-13 Thread Nik Bhattacharya
Thanks.  ColorStateList did the trick!






  I would like to vary the text color of a custom button that I am
  making depending on which state it is in (enabled, disabled, state
  pressed).  I know how to use an XML file to describe the different
  drawables that I need for the different states like so:

  
  In the drawables folder I create this custom_button.xml file
  ---
  ?xml version=1.0 encoding=utf-8?
  selector xmlns:android=http://schemas.android.com/apk/res/android;
          item
                  android:drawable=@drawable/button_enabled
                  android:state_pressed=false /
          item
                  android:drawable=@drawable/button_tap
                  android:state_pressed=true /
          item
                  android:drawable=@drawable/button_inactive
                  android:state_enabled=false /
  /selector

  However, adding android:textColor to each item totally makes the
  button style invalid.  Even if I create a style in the themes.xml
  file, I only get a single android:textColor like so:

  -
  themes.xml
  -
  ?xml version=1.0 encoding=utf-8?
  resources
          style name=CustomButton parent=@android:style/Widget.Button
          item name=android:gravitycenter_vertical|
  center_horizontal/item
          item name=android:textColor#FFff/item
          item name=android:textSize14sp/item
          item name=android:textStylebold/item
          item name=android:background@drawable/custom_button/item
          item name=android:focusabletrue/item
          item name=android:clickabletrue/item
      /style
  /resources

  How do I style the textColor when pressed and textColor when disabled
  states without resorting to a subclass of a Button?

 use ColorStateList

 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] FrameLayout in webview

2010-08-13 Thread Shrenik Vikam
Is it possible to add FrameLayout in webview ?

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] Re: How do you create a custom Preference which needs to invoke a activity for result like RingtonePreference?

2010-08-13 Thread Kostya Vasilyev

 Pino,

You can always implement your own subclass of Preference.

The same thing can be done differently inside Android and in regular 
applications, that's Ok.


Subclassing Preference is actually quite nice, since the base class 
handles the drawing of title and subtitle strings, so your own 
preference will automatically have the right look.


Override onClick() and do whatever it is you want to do.

-- Kostya

13.08.2010 8:19, Pino Silvaggio пишет:

Yes PreferenceActivity is an Activity.

But that not my problem.

The issue is how do I create a custom preference like
RingtonePreference
if what I need is in PreferenceManager and is hidden by package level?

example:

registerOnActivityResultListener

which is needed if I want to call
preferenceManager.getActivity().startActivityForResult()

which getActivity() is also hidden.

This makes no sense.

On Aug 12, 11:13 pm, TreKingtreking...@gmail.com  wrote:

On Thu, Aug 12, 2010 at 4:19 PM, Pino Silvaggiopino.silvag...@gmail.comwrote:


How should I proceed?

Hint: PreferenceActivity is an Activity like any other ...

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



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

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


[android-developers] Bluetooth headset connection establishment

2010-08-13 Thread Anzi
Hi,

I am using Bluetooth APIs to establish the connection. I using the
Bluetooth chat application as a reference to communicate with the
Bluetooth headset.

When I try to connect with Bluetooth headset I am getting IOException
with the reason Connection refused.

Can any one tell me the reason for this exception if possible give me
the solution if you already resolved the same.

Here is the code which i am using to establish the communication with
the Bluetooth. And i also added the Bluetooth and Blutooth_Admin
permissions to my manifest file.

BluetoothSocket sock =
remoteDevice.createRfcommSocketToServiceRecord(UUID.fromString(1108--1000-8000-00805F9B34FB));

mBtAdapter.cancelDiscovery();

try {
   sock.connect();
 } catch (IOException e) {
   sock.close();
}


Regards
Anzi.

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


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

2010-08-13 Thread Scott Herbert


Thaks all for your helpful tips.

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

2010-08-13 Thread Kevin Duffey



I'm not going to pull any numbers as to why I say that most people
think java sucks, maybe it's just some.  I've gathered this from
workplaces, forum/irc chats, etc.  A lot of java applications are
hated upon due to being slow (Eclipse, Azureus, Tomcat?). Java browser
apps are generally slower than their javascript or even flash
counterparts.  (They're also regarded as outdated)


Actually, I don't agree with your use of slow with the apps you 
mentioned. Eclipse is very snappy... I've not seen any difference in it 
over any other native IDE. Netbeans on the other hand I have found 
sluggish at times, but is usually snappy. Azureus is built on the same 
underpinnings that Eclipse is built on, which if you don't know, IBM 
built their own GUI toolkit because  they felt Swing/AWT was too slow. 
Those are good examples of perhaps the two most popular Java client 
applications out there, and both are very solid. I've seen many native 
apps more sluggish and crash than either of those apps, so they weren't 
good examples. Tomcat.. it's a server app.. I am not sure what it slow 
about it?


There are no doubt MANY slow java apps, and yes, for the most part you 
have to know how to develop a smooth running GUI app (Swing in this 
case). The truth is, the majority of developers that are tasked with 
such apps have no clue what they are doing and learn while doing.. 
usually releasing a not so great application. I will admit, I was one of 
those... I was learning Swing while working on an application. I didn't 
know a lot about the Swing event thread, threads in general, and it 
could be seen in my app. I eventually adopted a plugin model that I 
built from the ground up and got things working a lot smoother, but it 
took a while to really learn the tricks of Swing, class loading, and 
threading within a Swing app.


As for server side... well, I dare say that Java is more performant than 
any other language/platform out there. I think most people know this, or 
I would guess that by now, the majority of major corporations would have 
long since switched to .net or something else. I would also say that the 
majority of java developers fall into the JEE camp of development. I had 
hopes for Swing.. I still feel that there is no GUI kit on any platform 
as good.. overall. By that I mean, the ability to literally develop a 
full GUI app that runs on every platform out there with little.. and in 
most cases, no changes, is amazing. I had my app running on windows (all 
flavors), Mac, Linux, Unix, and a few others, with no changes. If you've 
ever tried to do a cross platform application in any other language, 
especially one with a GUI where each platform's native GUI toolkit is 
different than others, well.. I'd say that most developers would be 
willing to forgo the sometimes slowness over the incredible flexibility 
and time savings, let alone an app that looks/feels/works the same on 
every platform.


I am not so sure about Java FX tho. It seemed like a good idea.. but I 
still haven't seen where it's catching on in a big way yet. I am 
learning about JSF and such now and it's a pretty nice technology stack 
for doing web development with.




This is why google had to make its own vm to optimize it, plus you
have to go through some pains to avoid the GC where as in regular Java
apps objects are allocated all the time.  This causes them to lag
badly when objects are constantly being allocated and freed.
In a server app this really isn't a problem, and the JVM is pretty
good to work with.  (ie with scala, groovy, etc)
I don't believe this is why google made their own VM. From what I 
understood, they made it to reduce the footprint and Jave ME wasn't good 
enough. A little fact.. until Froyo... Android OS was slower than Jave 
ME on older hardware. It's only with Froyo and the JIT they include with 
it that apps are really starting to become speedy. That's not to say 
Android 2.0/2.1 wasn't good... for a phone, or even a tablet, most apps 
are plenty fast enough without a JIT. I think the JIT will help in some 
genres, especially games that aren't completely done in the NDK.



Java is very popular for day to day  and general programming, because
it's the main language at most universities.  However, I haven't seen
any truly innovative snappy or fast performing apps either client or
server side.  (Maybe even the corporate there's a lot of reliable and
fast code.) There is a taboo, where it's regarded that programmers who
only know java aren't very good.


I think programmers that only know java are far less than those that 
learned Java from another language, usually C/C++ or VBasic.. I myself 
came over from Delphi which was more like Java than Pascal in my 
opinion. As for it being as popular because it's taught at 
universities.. don't agree at all. Pascal and C were taught for a lot 
longer than Java has been, and Java has far surpassed it in choice in 
the industry right now. Android is only going to add 

Re: [android-developers] Hi, really need help with Android Camera

2010-08-13 Thread Pedro Teixeira
Just don't know anymore where to do the stopPreviews and releases...  
just before the Intent onClick ?!

That order is not working for me..

On Aug 11, 2010, at 5:32 PM, Mark Murphy wrote:


You are getting Method called after release() triggered by a call to
stopPreview() from your surfaceDestroyed(). Call stopPreview() before
release()-ing the Camera.

On Wed, Aug 11, 2010 at 12:24 PM, Pedro Teixeira
pedroteixeir...@gmail.com wrote:
I've tried stop the cam preview and release it before calling the  
intent..
it actually goes to the other activity now. but gives an error 1  
second

after  This is the errors on the logcat:
08-11 17:22:06.943: ERROR/MediaPlayer(542): Unable to to create  
media player
08-11 17:22:06.953: ERROR/CameraService(542): Failed to load  
CameraService

sounds.
08-11 17:22:06.953: ERROR/MediaPlayer(542): Unable to to create  
media player
08-11 17:22:06.953: ERROR/CameraService(542): Failed to load  
CameraService

sounds.
08-11 17:22:09.593: ERROR/MediaPlayer(542): Unable to to create  
media player
08-11 17:22:09.593: ERROR/CameraService(542): Failed to load  
CameraService

sounds.
08-11 17:22:09.603: ERROR/MediaPlayer(542): Unable to to create  
media player
08-11 17:22:09.603: ERROR/CameraService(542): Failed to load  
CameraService

sounds.
08-11 17:23:08.543: ERROR/AndroidRuntime(720): Uncaught handler:  
thread main

exiting due to uncaught exception
08-11 17:23:08.733: ERROR/AndroidRuntime(720):  
java.lang.RuntimeException:

Method called after release()
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.hardware.Camera.stopPreview(Native Method)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
com.pedroteixeira.thennnow.cameraView.surfaceDestroyed 
(cameraView.java:130)

08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.SurfaceView.reportSurfaceDestroyed(SurfaceView.java:426)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.SurfaceView.updateWindow(SurfaceView.java:351)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java: 
182)

08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.View.dispatchDetachedFromWindow(View.java:5580)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java: 
1072)

08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java: 
1072)

08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java: 
1072)

08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java: 
1072)

08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.ViewRoot.dispatchDetachedFromWindow(ViewRoot.java:1553)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.ViewRoot.die(ViewRoot.java:2510)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.WindowManagerImpl.removeViewImmediate 
(WindowManagerImpl.java:218)

08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.Window$LocalWindowManager.removeViewImmediate 
(Window.java:421)

08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.app.ActivityThread.handleDestroyActivity 
(ActivityThread.java:3393)

08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.app.ActivityThread.access$2700(ActivityThread.java:116)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1826)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.os.Looper.loop(Looper.java:123)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.app.ActivityThread.main(ActivityThread.java:4203)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
java.lang.reflect.Method.invokeNative(Native Method)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
java.lang.reflect.Method.invoke(Method.java:521)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run 
(ZygoteInit.java:791)

08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
dalvik.system.NativeStart.main(Native Method)
:S


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

Android 2.2 Programming Books: http://commonsware.com/books

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit 

Re: [android-developers] Activity getting killed and automatically starting again on screen off button press

2010-08-13 Thread Farjad Habib
see if ur activity is persistent or is it getting modified by the phone
state...

On Fri, Aug 13, 2010 at 11:56 AM, Shashidhar shashi.zep...@gmail.comwrote:

 Hi,
   We are experiencing this strange problem. If I press screen off button
 When my activity is running, its again starting a new activity. If I press
 the screen off button again and unlock the phone, it again starts a new
 activity. So in total there are 2 new activities getting created for one
 screen off and on.  Any specific reason for this ? Please help me.


 Thanks,
 Shashidhar

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




-- 
Farjad Habib
Software Engineer and Developer
BS(Hons) 2011
LUMS

+92-331-4944-354

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Is android 2.2 emulator support any flash or flash lite?

2010-08-13 Thread Raju Bitter
The interesting thing is that the AIR for Android 2.5 emulator runs
Flash content in the emulator without any problems, but the emulation
is very slow compared to the device.

On Mon, Aug 9, 2010 at 8:16 PM, jeff.rinker jeff.rinke...@gmail.com wrote:
 How About Now?
 it's now a month later than the original post...
 does anyone know if they plan on releasing an emulator that WILL run
 flash content?

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

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


Re: [android-developers] Chilling news: Oracle sues Google over Android

2010-08-13 Thread Miguel Morales
 Actually, I don't agree with your use of slow with the apps you mentioned.
 Eclipse is very snappy... I've not seen any difference in it over any other
 native IDE. Netbeans on the other hand I have found sluggish at times, but
 is usually snappy. Azureus is built on the same underpinnings that Eclipse
 is built on, which if you don't know, IBM built their own GUI toolkit
 because  they felt Swing/AWT was too slow. Those are good examples of
 perhaps the two most popular Java client applications out there, and both
 are very solid. I've seen many native apps more sluggish and crash than
 either of those apps, so they weren't good examples. Tomcat.. it's a server
 app.. I am not sure what it slow about it?


Eclipse is not snappy, at all.  Not even close.  KDevelop is snappy.
XCode is snappy enough.
Azureus is slow too, you have to really tune the settings to get some
decent performance, same with Eclipse.
Never used Tomcat?  It can slow a server to a crawl with just a few processes.
Not all of us can afford top of the line computers in order to run
some software that runs fast in other programming languages.

 There are no doubt MANY slow java apps, and yes, for the most part you have
 to know how to develop a smooth running GUI app (Swing in this case). The
 truth is, the majority of developers that are tasked with such apps have no
 clue what they are doing and learn while doing.. usually releasing a not so
 great application. I will admit, I was one of those... I was learning Swing
 while working on an application. I didn't know a lot about the Swing event
 thread, threads in general, and it could be seen in my app. I eventually
 adopted a plugin model that I built from the ground up and got things
 working a lot smoother, but it took a while to really learn the tricks of
 Swing, class loading, and threading within a Swing app.


Yes, the java JVM works nicely in a server environment.
Again, for your standard server applications.
Subtle things in the GC process (as previously explained) make it too
slow optimal performance.
Then again, I use erlang so I'm spoiled.  Nothing like being able to
seamlessly interconnect vms.
The GUI case, it's a myth, at least it's not as nice as it sounds.
For once, the java GUIs are ugly and don't conform to the OSs standard
look and feel.
Not only does it look ugly, but it's slow.  I'd rather have a few
macros and use C++ with wxWidgets or QT and have a fast app, with a
native look and feel.
The IBM widget kit isn't significantly faster or efficient than the Swig one.

 I don't believe this is why google made their own VM. From what I
 understood, they made it to reduce the footprint and Jave ME wasn't good
 enough. A little fact.. until Froyo... Android OS was slower than Jave ME on
 older hardware. It's only with Froyo and the JIT they include with it that
 apps are really starting to become speedy. That's not to say Android 2.0/2.1
 wasn't good... for a phone, or even a tablet, most apps are plenty fast
 enough without a JIT. I think the JIT will help in some genres, especially
 games that aren't completely done in the NDK.

There's many reasons they made the dalvik vm.  I'm sure in raw
performance ME has good code.  (old code tends to be fast)
Not sure how you're measuring performance though, the android GUI is
pretty heavy considering.

 I think programmers that only know java are far less than those that learned
 Java from another language, usually C/C++ or VBasic.. I myself came over
 from Delphi which was more like Java than Pascal in my opinion. As for it
 being as popular because it's taught at universities.. don't agree at all.
 Pascal and C were taught for a lot longer than Java has been, and Java has
 far surpassed it in choice the industry right now. Android is only going
 to add to the popularity of Java, and thanks to Apple's ridiculous
 requirements and rules, it's also helping many developers leave Apple and
 come to Android.  I don't believe in taboos... if I have to I can pick up
 other languages as needed. Thus far, there hasn't been anything I can't do
 with Java. I don't write native/platform games, or system drivers, most
 other apps I can use Java for.


That's why java is good for your standard apps, which is what it's great for.
It doesn't push the standard in speed the way C does.
It doesn't push the standard with expressiveness the way many other
languages do.
It doesn't push the standard with multicore programming beside standard threads.

Also, Java is not C.  It's slower, but easier to learn and use.
That's why it became more popular than C.  Not sure what happened to Pascal.
Last time I used Pascal I was in the 8th grade.
The thing with java is that its become one of those code monkey/slave
languages like php.

I'm sure java will live on for a long time, it just won't be talked about.
At least it wouldn't if people wouldn't be improving it.

-- 
http://developingthedream.blogspot.com/,
http://diastrofunk.com,

Re: [android-developers] Re: How to install package without asking user just like market app?

2010-08-13 Thread Alex Xin
Sorry for my poor English. I'm from China, speaking English is always
a difficult task for me.
I mean, if I try to use Intent to install a package, an install activity
will activate and ask user if it could install that app, but market will ask
user only once, no that install activity shown up. Can I implement a same
feature?

Thanks and BRs,

Alex

On Fri, Aug 13, 2010 at 9:25 AM, Indicator Veritatis mej1...@yahoo.comwrote:

 That is possible, but the OP really needs to state more clearly what
 problem he is trying to solve. Until he does, responding to him is a
 waste of time and bandwidth.

 On Aug 12, 11:29 am, TreKing treking...@gmail.com wrote:
  On Thu, Aug 12, 2010 at 9:04 AM, Alex Xin xinxi...@gmail.com wrote:
   How to install package without asking user just like market app?
 
  You can't. Well, maybe if you build your own firmware.
 
  On Thu, Aug 12, 2010 at 12:13 PM, Frank Weiss fewe...@gmail.com wrote:
   Where do you see Market app installing packages without asking user?
 
  I'm assuming he means how the Market App auto-updates itself.
 
 
 -
  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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


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

[android-developers] Application Lock

2010-08-13 Thread perumal316
Hi All,

I came across an Application in Android Market which locks the use of
application. Meaning after locking an application can only unlock it
using password.

My question is, can this be done for hardware?

E.g. Password protect camera for example, so only can unlock it using
the same password. While locked, all applications using camera cannot
access the camera hardware.

Thanks In Advance,
Perumal

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 install package without asking user just like market app?

2010-08-13 Thread Dianne Hackborn
Sorry you can't do that without being built into the system image.

On Fri, Aug 13, 2010 at 1:19 AM, Alex Xin xinxi...@gmail.com wrote:

 Sorry for my poor English. I'm from China, speaking English is always
 a difficult task for me.
 I mean, if I try to use Intent to install a package, an install activity
 will activate and ask user if it could install that app, but market will ask
 user only once, no that install activity shown up. Can I implement a same
 feature?

 Thanks and BRs,

 Alex

 On Fri, Aug 13, 2010 at 9:25 AM, Indicator Veritatis mej1...@yahoo.comwrote:

 That is possible, but the OP really needs to state more clearly what
 problem he is trying to solve. Until he does, responding to him is a
 waste of time and bandwidth.

 On Aug 12, 11:29 am, TreKing treking...@gmail.com wrote:
  On Thu, Aug 12, 2010 at 9:04 AM, Alex Xin xinxi...@gmail.com wrote:
   How to install package without asking user just like market app?
 
  You can't. Well, maybe if you build your own firmware.
 
  On Thu, Aug 12, 2010 at 12:13 PM, Frank Weiss fewe...@gmail.com
 wrote:
   Where do you see Market app installing packages without asking user?
 
  I'm assuming he means how the Market App auto-updates itself.
 
 
 -
  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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] Chilling news: Oracle sues Google over Android

2010-08-13 Thread Ralf Schneider
 sucks? Do you back this up in some way? Java is a very good language. I am
 curious what you find so bad, what languages you think are vastly superior?

...

 it sucks. Anyway.. I am not opposed to other languages.. NDK.. as soon as
 it allows for direct audio and video access.. will be the language of choice
 for most of android development anyway (aka.. C).

If Java is so great, why will the NDK(C/C++) become the language of
choice - as soon as google provides a useable API?

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

2010-08-13 Thread sachin.ravi
I think this can be done. 

In settings application, we need to add privacy lock features to lock
the defferent applications.

So suppose camera is selected for lock, then this entry has to be
maintained in DB.

From camera hardware side, 

1st function to open the camera is Camera.open(). This function should
check for DB entry 1st and then depending on the lock/unlock, return
camera handle and error to application who is calling this method.

 

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-develop...@googlegroups.com] On Behalf Of perumal316
Sent: Friday, August 13, 2010 1:55 PM
To: Android Developers
Subject: [android-developers] Application Lock

Hi All,

I came across an Application in Android Market which locks the use of
application. Meaning after locking an application can only unlock it
using password.

My question is, can this be done for hardware?

E.g. Password protect camera for example, so only can unlock it using
the same password. While locked, all applications using camera cannot
access the camera hardware.

Thanks In Advance,
Perumal

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

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


Re: [android-developers] Chilling news: Oracle sues Google over Android

2010-08-13 Thread Dianne Hackborn
On Fri, Aug 13, 2010 at 1:34 AM, Ralf Schneider li...@gestaltgeber.comwrote:

 If Java is so great, why will the NDK(C/C++) become the language of
 choice - as soon as google provides a useable API?


The language of choice for what?  Not most app developers.  Except for
certain apps, Java is going to be a far better choice for ease of
implementation, maintenance, and debugging.

-- 
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] Chilling news: Oracle sues Google over Android

2010-08-13 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/13/10 10:18 , Miguel Morales wrote:

 Eclipse is not snappy, at all.  Not even close.  KDevelop is
 snappy. XCode is snappy enough. Azureus is slow too, you have to
 really tune the settings to get some decent performance, same with
 Eclipse. Never used Tomcat?  It can slow a server to a crawl with
 just a few processes. Not all of us can afford top of the line
 computers in order to run some software that runs fast in other
 programming languages.
Do you know that most of the web sites, services and whatever on the
internet are powered by Java and by a good percentage by Tomcat? Java
= slow is bullishit at least since five years, so please don't spread
FUD any longer.
 Yes, the java JVM works nicely in a server environment. Again, for
 your standard server applications. Subtle things in the GC process
 (as previously explained) make it too slow optimal performance.
Other FUD. GC is no more a problem, unless a programmer is really
ham-handed, since several years.

 That's why java is good for your standard apps, which is what it's
 great for. It doesn't push the standard in speed the way C does.
This is meaningless given some context. There are plenty of benchmarks
around that demonstrates than Java or C are faster. The JIT
technology, BTW, allows for higher optimization than C, since it can
only optimize statically. Of course, single benchmarks aren't
meaningful, since in a real world project one have to do some
trade-offs. There are many real-world examples that can be done, just
the first one that is public and comes to my mind has been recently
presented at Jazoon. See
http://jazoon.com/Conference/Thursday/OMullane, slide #40, which I'm
copying:

Is Java fast enough..
? On some processors with highly tuned C compilers  the C can be
faster than java (max factor 2)
?You can play cat and mouse for ever with any specific  piece of code ..
? On most Intel?s Java is as fast or faster than C ?JIT(JustIn Time)
Compiler  with Hotspot remarkable!
? Just one example from Gaia
?Relativity C code running in simulator 10 years on super  computer
?The orginal Author rewrote it in java
?Its is ~10 times faster in JAVA !



- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxlB7MACgkQeDweFqgUGxeVOgCgnbD37bXfa+50WQe9ohcf3Dwq
G8AAoIDPZ97nFoICkc9Wdi+r6q61LM1c
=qduP
-END PGP SIGNATURE-

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 ES 2.0 available on the updated HTC Hero? (Android 2.1)

2010-08-13 Thread { Devdroid }
On 12 August 2010 21:52, Johan Gardell gar...@gmail.com wrote:

 I'm trying to run some of the hello-gl2 code on my HTC Hero updated to
 Android 2.1 but i keep getting the error
 java.lang.IllegalArgumentException: No configs match configSpec,
 which is in GL2JNIView.java on line 168.

get glInfo app from Market and launch on your device - it will list all
GL related information, incl. version and available extensions

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Activity getting killed and automatically starting again on screen off button press

2010-08-13 Thread Shashidhar
Thanks for the reply habib. But my programs is doing none of the 2 things
you have mentioned...

On Fri, Aug 13, 2010 at 1:30 PM, Farjad Habib habib.far...@gmail.comwrote:

 see if ur activity is persistent or is it getting modified by the phone
 state...

 On Fri, Aug 13, 2010 at 11:56 AM, Shashidhar shashi.zep...@gmail.comwrote:

 Hi,
   We are experiencing this strange problem. If I press screen off button
 When my activity is running, its again starting a new activity. If I press
 the screen off button again and unlock the phone, it again starts a new
 activity. So in total there are 2 new activities getting created for one
 screen off and on.  Any specific reason for this ? Please help me.


 Thanks,
 Shashidhar

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




 --
 Farjad Habib
 Software Engineer and Developer
 BS(Hons) 2011
 LUMS

 +92-331-4944-354

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

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

Re: [android-developers] Chilling news: Oracle sues Google over Android

2010-08-13 Thread Miguel Morales
 Do you know that most of the web sites, services and whatever on the
 internet are powered by Java and by a good percentage by Tomcat? Java
 = slow is bullishit at least since five years, so please don't spread
 FUD any longer.

Yes, I know.  I used to be a sysadmin for a few datacenters.  I know
how tomcat applications behave.
Like I said, in server environments the jvm is really good.  I use it
myself.  It's fast enough, but by itself, doesn't scale very well.
What popular website runs on pure java code?
The VM as-is doesn't do well in slower/older hardware.  The amount of
ram required for each instance is ridiculous.
Run a decent amount instances of your app and your server is toast.
Or if your app scales in one vm instance, it's still not worth it.
You're stuck with the usual perils of multi-threaded programming,
without any gains in efficiency or grace of scalability.
Locked hashmaps are cool, so are queues, but for anything real world
you'd most likely connect to a network database.  At that point you
might as well code your app in a scripting language and increase your
productivity maintaining a relative performance.

Then, what about scaling your app server wise? You're again network
bound over communicating between the instances.
Might as well skip all those optimizations and use something more
expressive and code faster.

 This is meaningless given some context. There are plenty of benchmarks
 around that demonstrates than Java or C are faster. The JIT
 technology, BTW, allows for higher optimization than C, since it can
 only optimize statically. Of course, single benchmarks aren't
 meaningful, since in a real world project one have to do some
 trade-offs. There are many real-world examples that can be done, just
 the first one that is public and comes to my mind has been recently
 presented at Jazoon. See
 http://jazoon.com/Conference/Thursday/OMullane, slide #40, which I'm
 copying:

I don't know of any popular fast java applications, despite all these features.
Again, Java is ok, great for what it does.  But

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

2010-08-13 Thread Ralf Schneider
I was just pointing out a logical flaw in another post: The poster was
defending Java and in the last part he suddenly told: C will rule
Android development as soon as there is video and audio access via the
NDK

Actually I agree. For: implementation, maintenance, and debugging ...
Java is far better than C or C++.

But, performance matters, too! Not for most Apps, but for many of the
interesting ones (Games, AR-Apps, Image recoginition, ...).

Anyway these kind of discussions most time lead to nowhere. There is
already too much (programming) religion involved. So it's easier to
just troll around.

My personal opinion is this:
I would prefer a complete and stable C API. = Android should be a set
of stable C-APIs
Java/Dalvik/.net/whatever can run on top of them.

So, everybody can be happy. The Java coders, the Python coders, The
C-hardcore-coders...

2010/8/13 Dianne Hackborn hack...@android.com:
 On Fri, Aug 13, 2010 at 1:34 AM, Ralf Schneider li...@gestaltgeber.com
 wrote:

 If Java is so great, why will the NDK(C/C++) become the language of
 choice - as soon as google provides a useable API?

 The language of choice for what?  Not most app developers.  Except for
 certain apps, Java is going to be a far better choice for ease of
 implementation, maintenance, and debugging.
 --
 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

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


[android-developers] Re: Invoking A Web Service Through A Button

2010-08-13 Thread Bob Kerns
Look at AsyncTask.

The key thing is that you should never do anything that blocks or
takes a long time on the main (UI) thread. That especially includes
anything related to the network -- IO, opening/closing connections, or
even resolving hostnames.

A service by itself does not solve that, as it also runs on the main
thread.

The key idea is that you start an AsyncTask, and it runs the slow part
on another thread, and then arranges to run something when that
finishes.

So your button will start the AsyncTask, which will call its
onPostExecute() method to do whatever your really want the button to
do when the JSON data comes back.


On Aug 11, 12:19 pm, Daniel Favela dfav...@gmail.com wrote:
 Greetings.

 I'm trying to make an app where a button will invoke a web service's API
 call (it'll be my own web service; the call/functionality is not relevant).
 I know how to make a new listener that invokes an activity, but that is
 insufficient here since I'll still need to make a call out to a web service
 through it.

 What is it I'm doing here?  Is this a service that I'm looking at?  A
 content provider that I'll be invoking that somehow gets data from a web
 service?

 If the protocol is important, let's assume I'm using JSON.

 Thank you for any help!

 -Danny

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

2010-08-13 Thread Ralf Schneider
I forget! There is hope: NaCl is doing it right (IMHO)!
May be Android will one day get fast apps via PNaCl (
nativeclient.googlecode.com/svn/data/site/pnacl.pdf)

2010/8/13 Ralf Schneider li...@gestaltgeber.com:
 I was just pointing out a logical flaw in another post: The poster was
 defending Java and in the last part he suddenly told: C will rule
 Android development as soon as there is video and audio access via the
 NDK

 Actually I agree. For: implementation, maintenance, and debugging ...
 Java is far better than C or C++.

 But, performance matters, too! Not for most Apps, but for many of the
 interesting ones (Games, AR-Apps, Image recoginition, ...).

 Anyway these kind of discussions most time lead to nowhere. There is
 already too much (programming) religion involved. So it's easier to
 just troll around.

 My personal opinion is this:
 I would prefer a complete and stable C API. = Android should be a set
 of stable C-APIs
 Java/Dalvik/.net/whatever can run on top of them.

 So, everybody can be happy. The Java coders, the Python coders, The
 C-hardcore-coders...

 2010/8/13 Dianne Hackborn hack...@android.com:
 On Fri, Aug 13, 2010 at 1:34 AM, Ralf Schneider li...@gestaltgeber.com
 wrote:

 If Java is so great, why will the NDK(C/C++) become the language of
 choice - as soon as google provides a useable API?

 The language of choice for what?  Not most app developers.  Except for
 certain apps, Java is going to be a far better choice for ease of
 implementation, maintenance, and debugging.
 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


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

[android-developers] Re: Chilling news: Oracle sues Google over Android

2010-08-13 Thread François Masurel
What about the Google App Engine for Java platform ?

It's powered by Jetty though, not Tomcat.

François

On 13 août, 11:28, Miguel Morales therevolti...@gmail.com wrote:
  Do you know that most of the web sites, services and whatever on the
  internet are powered by Java and by a good percentage by Tomcat? Java
  = slow is bullishit at least since five years, so please don't spread
  FUD any longer.

 Yes, I know.  I used to be a sysadmin for a few datacenters.  I know
 how tomcat applications behave.
 Like I said, in server environments the jvm is really good.  I use it
 myself.  It's fast enough, but by itself, doesn't scale very well.
 What popular website runs on pure java code?
 The VM as-is doesn't do well in slower/older hardware.  The amount of
 ram required for each instance is ridiculous.
 Run a decent amount instances of your app and your server is toast.
 Or if your app scales in one vm instance, it's still not worth it.
 You're stuck with the usual perils of multi-threaded programming,
 without any gains in efficiency or grace of scalability.
 Locked hashmaps are cool, so are queues, but for anything real world
 you'd most likely connect to a network database.  At that point you
 might as well code your app in a scripting language and increase your
 productivity maintaining a relative performance.

 Then, what about scaling your app server wise? You're again network
 bound over communicating between the instances.
 Might as well skip all those optimizations and use something more
 expressive and code faster.

  This is meaningless given some context. There are plenty of benchmarks
  around that demonstrates than Java or C are faster. The JIT
  technology, BTW, allows for higher optimization than C, since it can
  only optimize statically. Of course, single benchmarks aren't
  meaningful, since in a real world project one have to do some
  trade-offs. There are many real-world examples that can be done, just
  the first one that is public and comes to my mind has been recently
  presented at Jazoon. See
 http://jazoon.com/Conference/Thursday/OMullane, slide #40, which I'm
  copying:

 I don't know of any popular fast java applications, despite all these 
 features.
 Again, Java is ok, great for what it does.  But

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

2010-08-13 Thread Miguel Morales
 I don't know of any popular fast java applications, despite all these 
 features.
 Again, Java is ok, great for what it does.  But

just not as good as its alternatives.
It's great for android because it's popular.  It's stable, there's
tons of libraries, it's fast/efficient enough.  You can optimize the
hell out of it.  That's why I said it's ok to good.  When was the last
time you heard of java in the news or in anything interesting until
recently with android?
Like I said, Oracle should be grateful google chose to use java.

-- 
http://developingthedream.blogspot.com/,
http://diastrofunk.com,
http://www.youtube.com/user/revoltingx, ~Isaiah 55:8-9

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

2010-08-13 Thread Miguel Morales
I'm sure not all of us have the cash to pay for the amount of servers
the app engine requires.
Also, they pretty much use jetty for the frontend, they use an rpc
system to communicate with whatever their backend is coded in.
(at least from briefly scanning the the gae docs)

2010/8/13 François Masurel fm2...@mably.com:
 What about the Google App Engine for Java platform ?

 It's powered by Jetty though, not Tomcat.

 François

 On 13 août, 11:28, Miguel Morales therevolti...@gmail.com wrote:
  Do you know that most of the web sites, services and whatever on the
  internet are powered by Java and by a good percentage by Tomcat? Java
  = slow is bullishit at least since five years, so please don't spread
  FUD any longer.

 Yes, I know.  I used to be a sysadmin for a few datacenters.  I know
 how tomcat applications behave.
 Like I said, in server environments the jvm is really good.  I use it
 myself.  It's fast enough, but by itself, doesn't scale very well.
 What popular website runs on pure java code?
 The VM as-is doesn't do well in slower/older hardware.  The amount of
 ram required for each instance is ridiculous.
 Run a decent amount instances of your app and your server is toast.
 Or if your app scales in one vm instance, it's still not worth it.
 You're stuck with the usual perils of multi-threaded programming,
 without any gains in efficiency or grace of scalability.
 Locked hashmaps are cool, so are queues, but for anything real world
 you'd most likely connect to a network database.  At that point you
 might as well code your app in a scripting language and increase your
 productivity maintaining a relative performance.

 Then, what about scaling your app server wise? You're again network
 bound over communicating between the instances.
 Might as well skip all those optimizations and use something more
 expressive and code faster.

  This is meaningless given some context. There are plenty of benchmarks
  around that demonstrates than Java or C are faster. The JIT
  technology, BTW, allows for higher optimization than C, since it can
  only optimize statically. Of course, single benchmarks aren't
  meaningful, since in a real world project one have to do some
  trade-offs. There are many real-world examples that can be done, just
  the first one that is public and comes to my mind has been recently
  presented at Jazoon. See
 http://jazoon.com/Conference/Thursday/OMullane, slide #40, which I'm
  copying:

 I don't know of any popular fast java applications, despite all these 
 features.
 Again, Java is ok, great for what it does.  But

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



-- 
http://developingthedream.blogspot.com/,
http://diastrofunk.com,
http://www.youtube.com/user/revoltingx, ~Isaiah 55:8-9

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


[android-developers] Re: Bind the pushpin on image

2010-08-13 Thread Beena
@Frank Weiss
I suppose you need to scroll the pushpin as well.

I cant scroll the pushpin.

@Farjad Habib
use map layout...

I am not using any map api. This is image of building which shows
rooms/shop, where I can plot the small images on the main image of
building.

Hope you can understand.

Any suggestion?

On Aug 12, 11:23 am, Farjad Habib habib.far...@gmail.com wrote:
 use map layout...

 I hope it can help...



 On Thu, Aug 12, 2010 at 11:20 AM, Beena swdeveloper2...@gmail.com wrote:
  hi
  Is there any one who can guide?

  On Aug 6, 11:04 am, Beena swdeveloper2...@gmail.com wrote:
   Hi all,
   I have an image of 600x600. Which is scrollable horizontally and
   vertically.
   And then I have to add the pushpin at particular point.
   I can plot the pushpin on it, but as I scroll horizontally then the
   images are not stay at their position.
   How can i bind pushpin at the particular pixel of the image?
   Like google map, where images are clickable.

   Any suggestion will help full.

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

 --
 Farjad Habib
 Software Engineer and Developer
 BS 2011
 LUMS

 +92-331-4944-354

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

2010-08-13 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/13/10 11:39 , Miguel Morales wrote:
 I don't know of any popular fast java applications, despite all
 these features. Again, Java is ok, great for what it does.  But

 just not as good as its alternatives. It's great for android
 because it's popular.  It's stable, there's tons of libraries, it's
 fast/efficient enough.  You can optimize the hell out of it.
 That's why I said it's ok to good.  When was the last time you
 heard of java in the news or in anything interesting until recently
 with android? Like I said, Oracle should be grateful google chose
 to use java.

Java on customer desktop applications has been limited by a number of
things that you previously cited: it's hard (but not impossible) to
get a native look and feel, and for many years in the past it was even
difficult to get a decent look and feel, and for many years there have
been hard times in deploying it easily (there are still some residual
problems). These are important things if you have to reach the end
customers. In the industrial world, where both issues are less
important, Java is widespread. Just have a look at
http://platform.netbeans.org/screenshots.html and
http://eclipse.org/community/rcp.php. You'll find tons of applications
made even by large corporates and for basically all the industrial
segments, running on the desktop. These are only the subset of Java
applications using the NetBeans Platform and Eclipse RCP technologies
- - there are many others. And these are only those that the makers were
available to speak on; for instance, I've been consulting for years
also on Java on the desktop and have customers running large and
business applications which are 100% Java, also on the desktop, but
aren't interested in publicly talking about them. Also, industrial
applications don't make easily through common news as customer
applications do, and this explain why Java is not well known to the
large public.

Yes, Java needs more memory in comparison with C. So, what's the
point? It's a matter of cost / benefit ratio and memory is cheap
enough to wholly compensate the increment in productivity that one has
by working with the whole Java ecosystem (which include tools heavily
based on bytecode manipulation, such as profilers, AOP, coverage
reporting tools, etc...) that aren't in the domain of C because it
compiles to native code.

For what comes to Android, I'd like to recall that up to 2.1 we didn't
have any JIT, that has been introduced with 2.2. I'd be curious to
know whether people who has experienced some performance troubles with
Dalvik has tried his app on Froyo.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxlFnYACgkQeDweFqgUGxempQCdEzt80ZrbqIWWdVB8WP7gsHMA
82YAoIgv2TyivL70dfjQNtpbk+SqHovH
=R0Su
-END PGP SIGNATURE-

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


[android-developers] Re: Application state when Home pressed

2010-08-13 Thread viktor
On 12 Сер, 20:26, Frank Weiss fewe...@gmail.com wrote:
 There are two levels of foreground/background, onPause/onResume and
 onStart/onStop. Please read the Activity documentation. Then explain
 what you issue is.


OK, I write more clear my issue.

I have parent activity, other activities extends that.

I want to know when app goes to foreground and after that update some
information in parent Activity.

If I catch this state with onResume() it is OK for (HW_HOME button),
but if I goes back from child onResume() is appear again.


I fully read the Activity documentation, life cycle is good when you
are using single Activity.

Any other ideas?

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

2010-08-13 Thread Anurag Singh
LibTiff is the right place.

http://www.libtiff.org/

- Anurag Singh

On Thu, Aug 12, 2010 at 2:37 PM, Reddy devireddy@gmail.com wrote:

 Hi,

 I am not sure whether it is the right place to ask this question.

 Has any one implemented the codec for Tiff formated image? If any one
 is having any idea please share the info where i can get the source
 code for the same.

 Help is hightly appreciated.

 /Reddy

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

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

[android-developers] Re: LVL buy now button.

2010-08-13 Thread sblantipodi
excellent answer indicator.
at the moment I really can't understand why they used http:// instead
of market://

On Aug 13, 2:24 am, Indicator Veritatis mej1...@yahoo.com wrote:
 You are misusing the principle behind the old saying, to err is
 human, to forgive, divine. Sure, they writers are only human, but the
 pattern of errors, the number of errors, and the age of them -- they
 leave so many unfixed -- says something more: it says that Google
 doesn't really care about quality documentation.

 This is not good for the future of Android.

 On Aug 12, 12:27 pm, String sterling.ud...@googlemail.com wrote:

   it's unbelivable that the official documentation produce bad
   behaviours...

  It's perfectly believable. The documentation writers are only human.

  On the doc page you linked to, it also says that you can send send
  this intent direct to the Market app. This would make sense as a way
  to avoid the receiver-selection dialog. Have you tried it?

  String



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


[android-developers] Oracle sues Google over Android and Java

2010-08-13 Thread sblantipodi
Link
http://news.cnet.com/8301-30684_3-20013546-265.html

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


[android-developers] Re: Google browser certificate issue

2010-08-13 Thread Zsolt Vasvari
Yes, you are probably right.  This happens to me all the time in
Singapore, or at least used to.  I don't remember seeing it for the
past month or so.

On Aug 12, 11:44 pm, MB manoj.bi...@gmail.com wrote:
 My guess is that the date/time on Mathew's device is wrong.  Digital
 certificates have an expiry date that the browser will validate
 against the time on the device.

 On Aug 12, 8:05 pm, TreKing treking...@gmail.com wrote:



  On Wed, Aug 11, 2010 at 2:41 AM, Mathew mathewandma...@gmail.com wrote:
   What to do?

  I'm sure you've tried clearing the cache and cookies, right?

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

 - Show quoted text -

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


[android-developers] Re: Record audio problem on the LG Ally

2010-08-13 Thread skooter500
Jeff

I did some benchmarking first. I have versions of my algorithms in
both C++ and Java. I sample at 22KHz for 12 seconds and perform an
SFTF on 2048 sample frames with a 75% overlap in order to transcribe
what the user has played on their instrument. I do some other stuff on
the spectrum to figure out the F0 and I have a mechanism for filtering
out some of the transcribed notes that I've described in my papers:

http://www.comp.dit.ie/bduggan/research.php

C++ code to do this on the iPhone 3G takes about 12 seconds to do the
DSP. This is about 50% faster on an iPhone 4G
100% Java code to do the identical task on a 1Ghz HTC Desire takes
minutes (running Android 2.1). I dont have the exact numbers, but
basically not practical. The same code running on WIndows 7, JDK takes
a few seconds.
The identical C++ implementation I use on the iPhone I call on Android
using the Android NDK and it only takes a few secomds

Conclusion - Android Java on 2.1 is slow for maths intensive code. DSP
in Java on Android 2.1 or less is not practical. It has to be done in
native code. Thats why Im a bit reluctant to consider a Win Phone 7
version of my app - no native code.

Hope that helps!

Bryan

On Aug 12, 4:04 pm, Jeff Knaggs jeffakna...@gmail.com wrote:
 I'm curious, you do a copy with C++; did you do this because you
 assumed/thought you needed the extra speed boost?  I.e., not because
 you're then going to use a bunch of other (already written ;-) C++ to
 process the data).  If the answer is YES -- for speed, did you do
 any benchmarking to see if this was truly an issue? And, if YES, would
 you be willing to share the benchmarking data?

 On another note, would you mind if I emailed you directly on some
 question related to audio but unrelated to this thread?  If you decide
 that topic is worthy of being posted/shared in this group, we can move
 it over.

 thanks
 jeff knaggs

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


[android-developers] Read from sdcard problem (version 1.6)

2010-08-13 Thread John-Z80
Hello I'm trying to make a photo calling the CAMERA Intent an after
returning to my application read the file, but altough I get a File
like /sdcard/DCIM/camera/.jpg if I try to open the file, it exist
and can be read (check with File.exist or File.canread BUT the length
of the file is always 0...

More or less my code is:
call the camera intent like:
Uri imageUri =
getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
values);
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri);
intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1);
startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE)

in the onActivityResult I do this:

get the File from the Uri, something like (cutpaste from internet):
Cursor cursor = null;
try {
String [] proj={MediaStore.Images.Media.DATA,
MediaStore.Images.Media._ID,
MediaStore.Images.ImageColumns.ORIENTATION};
cursor = activity.managedQuery( imageUri, proj, null, null,
null);
int file_ColumnIndex =
cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
int orientation_ColumnIndex =
cursor.getColumnIndexOrThrow(MediaStore.Images.ImageColumns.ORIENTATION);
if (cursor.moveToFirst()) {
String orientation =
cursor.getString(orientation_ColumnIndex);
return new File(cursor.getString(file_ColumnIndex));
}
return null;
} finally {
if (cursor != null) {
cursor.close();
}
}

So I get a File like /sdcard/DCIM/Camera/X.jpg
So if I do:
file.exists()  -- true
file.canRead() -- true
file.length()  -- 0 !!!
So I cant read the file from sdcard (if I try to ignore the size and
simply open a FileInputStream and read it reads of course 0 bytes...


So where is the problem?
I'm stuck on this...

Best regards.

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


[android-developers] String Array

2010-08-13 Thread Ajay
Hi,
   I have defined a string array in the resource and access it using:

   String arrStrings[] =
getResources().getStringArray(R.array.arrayname);

   But, how can I get the size of this array?

Thank you,
AJ

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

2010-08-13 Thread Farjad Habib
it ll have all the functions/variables that an array has...

simply use arrStrings.length;

On Fri, Aug 13, 2010 at 3:58 PM, Ajay aja...@gmail.com wrote:

 Hi,
   I have defined a string array in the resource and access it using:

   String arrStrings[] =
 getResources().getStringArray(R.array.arrayname);

   But, how can I get the size of this array?

 Thank you,
 AJ

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




-- 
Farjad Habib
Software Engineer and Developer
BS(Hons) 2011
LUMS

+92-331-4944-354

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

2010-08-13 Thread Filip Havlicek
Hi Ajay,

shouldn't it be more like:

String[] arrStrings ... ?

Then of course use the usual arrStrings.length

2010/8/13 Ajay aja...@gmail.com

 Hi,
   I have defined a string array in the resource and access it using:

   String arrStrings[] =
 getResources().getStringArray(R.array.arrayname);

   But, how can I get the size of this array?

 Thank you,
 AJ

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

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

Re: [android-developers] String Array

2010-08-13 Thread Farjad Habib
@Filip

it doesn't matter both String[] arrStrings and String arrStrings[] are legal
in java...

On Fri, Aug 13, 2010 at 4:01 PM, Filip Havlicek havlicek.fi...@gmail.comwrote:

 Hi Ajay,

 shouldn't it be more like:

 String[] arrStrings ... ?

 Then of course use the usual arrStrings.length

 2010/8/13 Ajay aja...@gmail.com

 Hi,
   I have defined a string array in the resource and access it using:

   String arrStrings[] =
 getResources().getStringArray(R.array.arrayname);

   But, how can I get the size of this array?

 Thank you,
 AJ

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


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




-- 
Farjad Habib
Software Engineer and Developer
BS(Hons) 2011
LUMS

+92-331-4944-354

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

[android-developers] Re: String Array

2010-08-13 Thread Ajay
Yes both the syntax are allowed...Thanks for the replies!!

On Aug 13, 4:05 pm, Farjad Habib habib.far...@gmail.com wrote:
 @Filip

 it doesn't matter both String[] arrStrings and String arrStrings[] are legal
 in java...

 On Fri, Aug 13, 2010 at 4:01 PM, Filip Havlicek 
 havlicek.fi...@gmail.comwrote:



  Hi Ajay,

  shouldn't it be more like:

  String[] arrStrings ... ?

  Then of course use the usual arrStrings.length

  2010/8/13 Ajay aja...@gmail.com

  Hi,
    I have defined a string array in the resource and access it using:

    String arrStrings[] =
  getResources().getStringArray(R.array.arrayname);

    But, how can I get the size of this array?

  Thank you,
  AJ

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

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

 --
 Farjad Habib
 Software Engineer and Developer
 BS(Hons) 2011
 LUMS

 +92-331-4944-354

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


[android-developers] Re: ERROR IN C:\Users\lenovo\Desktop\android-sdk_r06-windows\android-sdk-windowsSDK Setup.exe

2010-08-13 Thread Bob Kerns
Can you access the URL from your web browser?

https://dl-ssl.google.com/android/repository/repository.xml

If not, you have some sort of network, firewall, or similar problem.
You should be able to view that URL above in your browser.

Also check:

http://dl-ssl.google.com/android/repository/repository.xml

They should both work in the browser. I suspect the https doesn't work
for people due to some certificate issue with Java, but both work for
me from a browser.

In neither case, should they result in a connection timeout. If you
can connect via a browser, but not via the setup program, than I would
check your antivirus/firewall software and make sure it's not blocking
it.

On Aug 9, 12:27 pm, izzet.ulas izzet.u...@gmail.com wrote:
 I've been taking Failed to fetch 
 URLhttps://dl-ssl.google.com/android/repository/repository.xml,
 reason: Connection timed out: connect error for 2 weeks. I am getting
 crazy.. =(( What shoul I do? Please help...

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


[android-developers] Re: LVL buy now button.

2010-08-13 Thread String
I can't believe I keep letting myself get sucked back into this
discussion...

On Aug 13, 11:30 am, sblantipodi perini.dav...@dpsoftware.org wrote:

 at the moment I really can't understand why they used http:// instead
 of market://

LET IT GO. Both protocols work, if somewhat differently. Use whichever
one you'd prefer, and which you can test on the systems you have, and
just accept that the documentation could be better.

OK, I'm done.

String

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

2010-08-13 Thread Filip Havlicek
Yes it should be, although when I just tried it in Eclipse, the arrStrings[]
didn't give me arrStrings.length in the context menu (don't know why), so I
thought Ajay might be experiencing the same problem and thus asking the
question.

2010/8/13 Farjad Habib habib.far...@gmail.com

 @Filip

 it doesn't matter both String[] arrStrings and String arrStrings[] are
 legal in java...

 On Fri, Aug 13, 2010 at 4:01 PM, Filip Havlicek 
 havlicek.fi...@gmail.comwrote:

 Hi Ajay,

 shouldn't it be more like:

 String[] arrStrings ... ?

 Then of course use the usual arrStrings.length

 2010/8/13 Ajay aja...@gmail.com

 Hi,
   I have defined a string array in the resource and access it using:

   String arrStrings[] =
 getResources().getStringArray(R.array.arrayname);

   But, how can I get the size of this array?

 Thank you,
 AJ

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


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




 --
 Farjad Habib
 Software Engineer and Developer
 BS(Hons) 2011
 LUMS

 +92-331-4944-354

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


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

[android-developers] Re: LVL buy now button.

2010-08-13 Thread sblantipodi
You told us that http:// works well only if the user understood that
it should click on Details.
As far as I'm understood using the HTTP:// the user will be prompted
with a list of possible software that can manage
that URL, so the default browser, Opera Mini for example, other
browsers and than Market.

Now if the users choose a browser he see 404 error.
So how can you tell us that Both protocols work???

This is a working way for you?


On Aug 13, 1:11 pm, String sterling.ud...@googlemail.com wrote:
 I can't believe I keep letting myself get sucked back into this
 discussion...

 On Aug 13, 11:30 am, sblantipodi perini.dav...@dpsoftware.org wrote:

  at the moment I really can't understand why they used http:// instead
  of market://

 LET IT GO. Both protocols work, if somewhat differently. Use whichever
 one you'd prefer, and which you can test on the systems you have, and
 just accept that the documentation could be better.

 OK, I'm done.

 String

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


[android-developers] Re: Saving SMS to SENT messages

2010-08-13 Thread Suzann
Is there a way to check if such content exists?
If yes the message will get stored, else it will not. - This will at
least prevent app from crashing once the sms content is not available
anymore.

Thx,

Suzann

On Aug 12, 10:31 pm, Mark Murphy mmur...@commonsware.com wrote:
 Bear in mind that your technique will break on devices where they do
 not have the Messaging application and may break on future versions of
 Android.

 http://android-developers.blogspot.com/2010/05/be-careful-with-conten...

 On Tue, Aug 10, 2010 at 10:05 PM, Suzann suzim...@gmail.com wrote:
  Hi,

  Sorry for late reply I was on vacation.
  I did manage to save it to default database - (on my Android 2.1)

  In order to do so I used the function below:
          private void storeMessage(String mobNo, String msg) {
         ContentValues values = new ContentValues();
         values.put(address, mobNo);
         values.put(body, msg);
         getContentResolver().insert(Uri.parse(content://sms/sent), values);
        }

  I had to add READ_SMS and WRITE_SMS permission to my manifest.

 --
 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] Re: Read from sdcard problem (version 1.6)

2010-08-13 Thread John-Z80
One interesting detail, the code (and some variants tryint to use
Bitmap and BitmapFactory...) did not work in a 1.6 android Tattoo
mobile, BUT I've just tried in a magic (1.6 version too) and another
Android mobile (2.1 version) and the above code WORKED.
Tried in another Tattoo from another frined with another mobile
operator and did not work.

So, perhaps there is some problem with sdcard files in Tattoo?
Or there is another way to do the job that perhaps will work in
Tattoo???

Best regards.

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


[android-developers] Re: String Array

2010-08-13 Thread DanH
Yeah, String[] arrStrings makes more sense, since the full type
description is in one unit, separate from the name.  But C/C++ syntax
is String arrStrings[] (with the prior order being illegal) so some
people prefer that order.

You may use either, but the first is probably slightly preferred.

On Aug 13, 6:05 am, Farjad Habib habib.far...@gmail.com wrote:
 @Filip

 it doesn't matter both String[] arrStrings and String arrStrings[] are legal
 in java...

 On Fri, Aug 13, 2010 at 4:01 PM, Filip Havlicek 
 havlicek.fi...@gmail.comwrote:



  Hi Ajay,

  shouldn't it be more like:

  String[] arrStrings ... ?

  Then of course use the usual arrStrings.length

  2010/8/13 Ajay aja...@gmail.com

  Hi,
    I have defined a string array in the resource and access it using:

    String arrStrings[] =
  getResources().getStringArray(R.array.arrayname);

    But, how can I get the size of this array?

  Thank you,
  AJ

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

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

 --
 Farjad Habib
 Software Engineer and Developer
 BS(Hons) 2011
 LUMS

 +92-331-4944-354

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


[android-developers] Re: Chilling news: Oracle sues Google over Android

2010-08-13 Thread DanH
Acually, SUN has one of the worst JVMs available, and that's probably
a big part of what's got Oracle upset about Android.  (That and the
money, of course.)

I would assume that Google got one of the standard development
licenses from Sun, where they could do pretty much whatever they
wanted -- it just had to pass the JCK tests if they used the name
Java.  I'm assuming that Android Java passes the JCK somehow.

On Aug 13, 12:54 am, Miguel Morales therevolti...@gmail.com wrote:
 I used to hate Java, I think that it's ok to good now.  (Even better
 with the framework google provided to make apps)
 The thread handling is pretty good, and tons of library is even better.

 I'm not going to pull any numbers as to why I say that most people
 think java sucks, maybe it's just some.  I've gathered this from
 workplaces, forum/irc chats, etc.  A lot of java applications are
 hated upon due to being slow (Eclipse, Azureus, Tomcat?). Java browser
 apps are generally slower than their javascript or even flash
 counterparts.  (They're also regarded as outdated)

 This is why google had to make its own vm to optimize it, plus you
 have to go through some pains to avoid the GC where as in regular Java
 apps objects are allocated all the time.  This causes them to lag
 badly when objects are constantly being allocated and freed.
 In a server app this really isn't a problem, and the JVM is pretty
 good to work with.  (ie with scala, groovy, etc)
 Java is very popular for day to day  and general programming, because
 it's the main language at most universities.  However, I haven't seen
 any truly innovative snappy or fast performing apps either client or
 server side.  (Maybe even the corporate there's a lot of reliable and
 fast code.) There is a taboo, where it's regarded that programmers who
 only know java aren't very good.

 I mean, who thinks of java as the future?  If it wasn't for people
 innovating it, like google and groovy and scala are, it'd be dying a
 slow death.  (or like perl, living nicely in the corporate world, but
 be in danger into falling into a niche language in the next
 generation)



 On Thu, Aug 12, 2010 at 10:04 PM, Kevin Duffey andjar...@gmail.com wrote:
   Interesting point of view Miguel... most developers think the language
  sucks? Do you back this up in some way? Java is a very good language. I am
  curious what you find so bad, what languages you think are vastly superior?
  I think all languages have their faults, but given the overwhelming
  popularity of Java in many facets of software development, it's got a looong
  life ahead of it. I have found that most people that say this about Java,
  know very little about the language and usually fall into the camp of those
  that hate java until you ask them why and the usual response is because
  it sucks. Anyway.. I am not opposed to other languages.. NDK.. as soon as
  it allows for direct audio and video access.. will be the language of choice
  for most of android development anyway (aka.. C).

  On 8/12/2010 9:52 PM, Miguel Morales wrote:

  Well I think this has to be because of the use of Java in Android.

  If this is the case, I'd say that Oracle should be grateful that
  Android chose Java when there are better options out there.  I
  personally wouldn't have touched the language if it wasn't for
  Android.  Most developers think it sucks.

  It might also be because you can use 3rd party java libraries in
  android.  In either case, java was given a breath of life by google,
  Oracle should be kissing their butt.

  On Thu, Aug 12, 2010 at 8:07 PM, Shane Isbellshane.isb...@gmail.com
   wrote:

  If there were no lawsuits, then I would worry. This is an encouraging
  sign
  that Android is starting to rattle more cages due to its expected
  profitability and competitiveness.

  On Thu, Aug 12, 2010 at 7:27 PM, Dianne Hackbornhack...@android.com
  wrote:

  Oh gee, another patent lawsuit. :p
  I certainly wouldn't lose any sleep over this as a third party
  developer.
  :}

  On Thu, Aug 12, 2010 at 5:52 PM, Frank Weissfewe...@gmail.com  wrote:

  It hit the press today. Rumored that Google refused to settle. I have
  no idea where this is headed, but I'll continue to develop for
  Android.

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

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

[android-developers] Re: Chilling news: Oracle sues Google over Android

2010-08-13 Thread DanH
User side Java has been limited mostly by the lack of a decent UI.

On Aug 13, 4:55 am, Fabrizio Giudici fabrizio.giud...@tidalwave.it
wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 8/13/10 11:39 , Miguel Morales wrote: I don't know of any popular fast 
 java applications, despite all
  these features. Again, Java is ok, great for what it does.  But

  just not as good as its alternatives. It's great for android
  because it's popular.  It's stable, there's tons of libraries, it's
  fast/efficient enough.  You can optimize the hell out of it.
  That's why I said it's ok to good.  When was the last time you
  heard of java in the news or in anything interesting until recently
  with android? Like I said, Oracle should be grateful google chose
  to use java.

 Java on customer desktop applications has been limited by a number of
 things that you previously cited: it's hard (but not impossible) to
 get a native look and feel, and for many years in the past it was even
 difficult to get a decent look and feel, and for many years there have
 been hard times in deploying it easily (there are still some residual
 problems). These are important things if you have to reach the end
 customers. In the industrial world, where both issues are less
 important, Java is widespread. Just have a look 
 athttp://platform.netbeans.org/screenshots.htmlandhttp://eclipse.org/community/rcp.php.
  You'll find tons of applications
 made even by large corporates and for basically all the industrial
 segments, running on the desktop. These are only the subset of Java
 applications using the NetBeans Platform and Eclipse RCP technologies
 - - there are many others. And these are only those that the makers were
 available to speak on; for instance, I've been consulting for years
 also on Java on the desktop and have customers running large and
 business applications which are 100% Java, also on the desktop, but
 aren't interested in publicly talking about them. Also, industrial
 applications don't make easily through common news as customer
 applications do, and this explain why Java is not well known to the
 large public.

 Yes, Java needs more memory in comparison with C. So, what's the
 point? It's a matter of cost / benefit ratio and memory is cheap
 enough to wholly compensate the increment in productivity that one has
 by working with the whole Java ecosystem (which include tools heavily
 based on bytecode manipulation, such as profilers, AOP, coverage
 reporting tools, etc...) that aren't in the domain of C because it
 compiles to native code.

 For what comes to Android, I'd like to recall that up to 2.1 we didn't
 have any JIT, that has been introduced with 2.2. I'd be curious to
 know whether people who has experienced some performance troubles with
 Dalvik has tried his app on Froyo.

 - --
 Fabrizio Giudici - Java Architect, Project Manager
 Tidalwave s.a.s. - We make Java work. Everywhere.
 java.net/blog/fabriziogiudici -www.tidalwave.it/people
 fabrizio.giud...@tidalwave.it
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
 Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

 iEYEARECAAYFAkxlFnYACgkQeDweFqgUGxempQCdEzt80ZrbqIWWdVB8WP7gsHMA
 82YAoIgv2TyivL70dfjQNtpbk+SqHovH
 =R0Su
 -END PGP SIGNATURE-

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


[android-developers] Re: Application state when Home pressed

2010-08-13 Thread RichardC
You should not assume that your parent activity exists when your child
activity is being displayed.  Try what I wrote above and see what
happens.

It is permissible (although very unlikely that) your parent activity
is killed (by the OS) while you are using your child activity.


On Aug 13, 11:04 am, viktor victor.scherb...@gmail.com wrote:
 On 12 Сер, 20:26, Frank Weiss fewe...@gmail.com wrote:

  There are two levels of foreground/background, onPause/onResume and
  onStart/onStop. Please read the Activity documentation. Then explain
  what you issue is.

 OK, I write more clear my issue.

 I have parent activity, other activities extends that.

 I want to know when app goes to foreground and after that update some
 information in parent Activity.

 If I catch this state with onResume() it is OK for (HW_HOME button),
 but if I goes back from child onResume() is appear again.

 I fully read the Activity documentation, life cycle is good when you
 are using single Activity.

 Any other ideas?

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


[android-developers] Re: Getting Object from ContentProvider

2010-08-13 Thread Natanael Arndt

Am 12.08.2010 16:17, schrieb Kostya Vasilyev:


The serialization can be any kind you want or are able to implement.

It can be Java Serialization, sure. But doesn't have to be.

I am not at all familiar with Jena, so this is sort of generally
speaking

...for relatively simple objects with few references to others, which
also belong to one of a few known classes, you could serialize by hand
to your own format. Perhaps even a string (you'd then be able to use
string methods in ContentValues / Cursor).

...if these objects are large, can belong to a whole lot of different
subclasses, and are only useful when connected to a whole bunch of
others (forming an in-memory graph), then you might have to rethink your
approach, so you don't have to shuffle a lot of data around.

Perhaps define a higher-level interface that supports the operations
you'd be doing on a Statement / Resource if you had one of them.
Implement it using a Binder or Intents, or a ContentProvider (URI
matching is very flexible). That'll keep the in-memory object graph
inside one process, with others querying just for the needed operations.


Thank you,
so I think the last approach is the best one for this case.

Natanael


Just my RUB 0,02.

-- Kostya

12.08.2010 17:47, Natanael Arndt пишет:

Thank you,
it should be Jena-Statements and Resources, which I want to provide.

Do the Objects need to implement Serializable for your first way?

Natanael

Am 12.08.2010 13:42, schrieb Kostya Vasilyev:

Natanael,

It just really depends on what this data structure is, how big it is,
and how it's used.

One of the primitive types supposed by Cursor is Blob, so you have:

byte[] getBlob(int columnIndex)

And a matching method in ContentValues:

void put(String key, byte[] value)

To convert between your data structure and a byte array you can use Java
serialization, or any other format.

Another way is to break down your data structure into individual pieces
and store and retrieve them individually. Define various ContentProvider
URIs to access different parts of the data structure.

-- Kostya

12.08.2010 15:12, Natanael Arndt пишет:

Hello,
I have a custom class, which represents my data-structure. This custom
class is in a normal Java-library, which is included in both projects.
I have one Project with a ContentProvider which provides this data to
Activities of other Projects.
And an other Project with an Activity, where I want to handle this
data in objects of this custom class.

How can I get this data to the Activity? The Cursor [1] only supports
primitive Types.

[1] http://developer.android.com/reference/android/database/Cursor.html













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


Re: [android-developers] Re: Chilling news: Oracle sues Google over Android

2010-08-13 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/13/10 14:05 , DanH wrote:
 Acually, SUN has one of the worst JVMs available, and that's probably
 a big part of what's got Oracle upset about Android.  (That and the
 money, of course.)

 I would assume that Google got one of the standard development
 licenses from Sun, where they could do pretty much whatever they
 wanted -- it just had to pass the JCK tests if they used the name
 Java.  I'm assuming that Android Java passes the JCK somehow.
You're assuming wrong. Google took the runtime from Harmony, which is
a willing-to-be-Java implementation made by the Apache Software
Foundation and that never got the permission by Sun to be tested
against the JCK (thus it can't be named as Java). It's a well known
debate between Sun and the Apache that has been going for years. When
we use the Android SDK we're using the Java compiler from Sun/Oracle,
we're having an intermediate passage through Sun/Oracle bytecode, but
we end with bytecode made by Google and with a runtime that has
nothing to do with Java. I've read previously discussions about the
topic that seemed to miss completely this fact.

Google has never claimed that it's compatible with Java(TM) and I
think there's not a single bit of Sun code in Android - in fact,
Oracle filed the sue not about a license violation concerning its own
SDK, but mentioning more general patents, as you can read here:
http://www.scribd.com/doc/35815632/Oracle-Google-Complaint

?Protection Domains To Provide Security In A Computer System?
?Controlling Access To A Resource
?Method And Apparatus For Preprocessing And Packaging Class Files?
?System And Method For Dynamic Preloading Of Classes Through Memory
Space Cloning Of A Master Runtime System Process?
?Method And Apparatus For Resolving Data References In Generate Code?
?Interpreting Functions Utilizing A Hybrid Of Virtual And Native
Machine Instructions?
?Method And System for Performing Static Initialization?



In other words, this is the classic patent-based war that often occurs
among large corporates and that, thanks to the currently flawed patent
bills, allows every corporate to sue any other one.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxlO3IACgkQeDweFqgUGxeVLQCfbMoRpUswnloeo/EpCI86/7Ye
lVYAoJGlV2fHi8BXHzNymsaJpFjQ+olZ
=p/8D
-END PGP SIGNATURE-

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


[android-developers] Re: how many versions of an image should I make for the different device screen sizes?

2010-08-13 Thread Michael A.
The biggest problem I, I find, is with the use of background images.
There you not only require l/m/h dpi images, but also portrait and
landscape (if you allow these). Haven't really found a good solution
to this other than either ignoring the problem (which doesn't look as
good) or generating a bunch of images.


On Aug 12, 7:07 pm, RichardC richard.crit...@googlemail.com wrote:
 I usually make 3 versions of each images; 1 for each of ldpi, mdpi and
 hdpi.  This is to avoid auto scalling, which is fine when testing but
 does not look professional in the final release version.

 I don't create image versions for the different screen sizes (small,
 medium and large), using Nine-Patch images can help but look at a more
 flexible layout first.

 On Aug 12, 5:48 pm, Anil anil.r...@gmail.com wrote:

  With the many devices available, each with different screen density
  and resolution, I am wondering - how many versions of an image should
  I make for the different device screen sizes?
  Is it 3? small, medium, large... or just 1.



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


[android-developers] htc aria not showing up as a device in eclipse

2010-08-13 Thread mhuman1
Hi,
My HTC aria shows up when I run adb devices. It even shows the
correct serial number. However, I can't find it as a target in
eclipse. I am clicking on Run/Run Configurations. It brings up my
project and a target tab. The emulator is the only thing listed, not
my HTC aria.

Is there another step in setup that I have to do?

Thanks,
mhuman1

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


[android-developers] Re: Chilling news: Oracle sues Google over Android

2010-08-13 Thread JP


On Aug 13, 5:05 am, DanH danhi...@ieee.org wrote:

 Oracle upset about Android.  

Take it from me, the people who drive these lawsuits are the types who
give a ratsass about anything that we think matters. Plenty of those
hired at other firms up and down the 101 as well, of course.

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


Re: [android-developers] Chilling news: Oracle sues Google over Android

2010-08-13 Thread Kwan Cheng
You would think java sucks until you try objective c.  Imo c#.net is the
best language out of the bunch.

On Aug 13, 2010 1:54 AM, Miguel Morales therevolti...@gmail.com wrote:
 I used to hate Java, I think that it's ok to good now. (Even better
 with the framework google provided to make apps)
 The thread handling is pretty good, and tons of library is even better.

 I'm not going to pull any numbers as to why I say that most people
 think java sucks, maybe it's just some. I've gathered this from
 workplaces, forum/irc chats, etc. A lot of java applications are
 hated upon due to being slow (Eclipse, Azureus, Tomcat?). Java browser
 apps are generally slower than their javascript or even flash
 counterparts. (They're also regarded as outdated)

 This is why google had to make its own vm to optimize it, plus you
 have to go through some pains to avoid the GC where as in regular Java
 apps objects are allocated all the time. This causes them to lag
 badly when objects are constantly being allocated and freed.
 In a server app this really isn't a problem, and the JVM is pretty
 good to work with. (ie with scala, groovy, etc)
 Java is very popular for day to day and general programming, because
 it's the main language at most universities. However, I haven't seen
 any truly innovative snappy or fast performing apps either client or
 server side. (Maybe even the corporate there's a lot of reliable and
 fast code.) There is a taboo, where it's regarded that programmers who
 only know java aren't very good.

 I mean, who thinks of java as the future? If it wasn't for people
 innovating it, like google and groovy and scala are, it'd be dying a
 slow death. (or like perl, living nicely in the corporate world, but
 be in danger into falling into a niche language in the next
 generation)


 On Thu, Aug 12, 2010 at 10:04 PM, Kevin Duffey andjar...@gmail.com
wrote:
  Interesting point of view Miguel... most developers think the language
 sucks? Do you back this up in some way? Java is a very good language. I
am
 curious what you find so bad, what languages you think are vastly
superior?
 I think all languages have their faults, but given the overwhelming
 popularity of Java in many facets of software development, it's got a
looong
 life ahead of it. I have found that most people that say this about Java,
 know very little about the language and usually fall into the camp of
those
 that hate java until you ask them why and the usual response is
because
 it sucks. Anyway.. I am not opposed to other languages.. NDK.. as soon
as
 it allows for direct audio and video access.. will be the language of
choice
 for most of android development anyway (aka.. C).

 On 8/12/2010 9:52 PM, Miguel Morales wrote:

 Well I think this has to be because of the use of Java in Android.

 If this is the case, I'd say that Oracle should be grateful that
 Android chose Java when there are better options out there.  I
 personally wouldn't have touched the language if it wasn't for
 Android.  Most developers think it sucks.

 It might also be because you can use 3rd party java libraries in
 android.  In either case, java was given a breath of life by google,
 Oracle should be kissing their butt.

 On Thu, Aug 12, 2010 at 8:07 PM, Shane Isbellshane.isb...@gmail.com
  wrote:

 If there were no lawsuits, then I would worry. This is an encouraging
 sign
 that Android is starting to rattle more cages due to its expected
 profitability and competitiveness.

 On Thu, Aug 12, 2010 at 7:27 PM, Dianne Hackbornhack...@android.com
 wrote:

 Oh gee, another patent lawsuit. :p
 I certainly wouldn't lose any sleep over this as a third party
 developer.
 :}

 On Thu, Aug 12, 2010 at 5:52 PM, Frank Weissfewe...@gmail.com
 wrote:

 It hit the press today. Rumored that Google refused to settle. I have
 no idea where this is headed, but I'll continue to develop for
 Android.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 

[android-developers] Re: Image Capture resolution on HTC EVO

2010-08-13 Thread cesar
hi! I have the same problem with a Legend.
Did you get full resolution at the end?
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] Add Images to Jar files

2010-08-13 Thread RamaMohan
HI all,

I am creating a jar file which will return  a view to any application
in which jar file is added.
I am creating all the coding without any resources files.But my
problem is i want to add images to the jar file like i want to add my
logo .

I want to add some image files to the jar and i have to use that in my
project.

How to perform this thing,I goggled for a while but i didn't find a
solution for this.
If anyone knows ,please let me know.

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] Hi, really need help with Android Camera

2010-08-13 Thread Pedro Teixeira

Hello .. can someone help me with this?
I'm really frustrated... I've try releasing the camera and changing  
the code but im always getting the same error.. 3 days of this.. how  
annoying :/


PS: the new activity is a cam activity also with the same code.. at  
least for now


code:

ThenNnowMode.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
mCamera.stopPreview();
mCamera.release();  
Intent TNNIntent = new Intent(mContext, 
thenNnowMode.class);
Bundle f = new Bundle();
String activityName = cameraView;
	  			f.putString(activity, activityName);			  			 
f.putParcelable(bitmap, findPicture);

f.putString(id, picId);
	  			f.putString(date, picDate);				  			f.putString 
(keywords, picKeywords);

f.putString(comments, picComments);
TNNIntent.putExtras(f); 
startActivity(TNNIntent);
finish();   
  }
  });

On Aug 11, 2010, at 5:32 PM, Mark Murphy wrote:


You are getting Method called after release() triggered by a call to
stopPreview() from your surfaceDestroyed(). Call stopPreview() before
release()-ing the Camera.

On Wed, Aug 11, 2010 at 12:24 PM, Pedro Teixeira
pedroteixeir...@gmail.com wrote:
I've tried stop the cam preview and release it before calling the  
intent..
it actually goes to the other activity now. but gives an error 1  
second

after  This is the errors on the logcat:
08-11 17:22:06.943: ERROR/MediaPlayer(542): Unable to to create  
media player
08-11 17:22:06.953: ERROR/CameraService(542): Failed to load  
CameraService

sounds.
08-11 17:22:06.953: ERROR/MediaPlayer(542): Unable to to create  
media player
08-11 17:22:06.953: ERROR/CameraService(542): Failed to load  
CameraService

sounds.
08-11 17:22:09.593: ERROR/MediaPlayer(542): Unable to to create  
media player
08-11 17:22:09.593: ERROR/CameraService(542): Failed to load  
CameraService

sounds.
08-11 17:22:09.603: ERROR/MediaPlayer(542): Unable to to create  
media player
08-11 17:22:09.603: ERROR/CameraService(542): Failed to load  
CameraService

sounds.
08-11 17:23:08.543: ERROR/AndroidRuntime(720): Uncaught handler:  
thread main

exiting due to uncaught exception
08-11 17:23:08.733: ERROR/AndroidRuntime(720):  
java.lang.RuntimeException:

Method called after release()
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.hardware.Camera.stopPreview(Native Method)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
com.pedroteixeira.thennnow.cameraView.surfaceDestroyed 
(cameraView.java:130)

08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.SurfaceView.reportSurfaceDestroyed(SurfaceView.java:426)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.SurfaceView.updateWindow(SurfaceView.java:351)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java: 
182)

08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.View.dispatchDetachedFromWindow(View.java:5580)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java: 
1072)

08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java: 
1072)

08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java: 
1072)

08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java: 
1072)

08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.ViewRoot.dispatchDetachedFromWindow(ViewRoot.java:1553)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.ViewRoot.die(ViewRoot.java:2510)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.WindowManagerImpl.removeViewImmediate 
(WindowManagerImpl.java:218)

08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.view.Window$LocalWindowManager.removeViewImmediate 
(Window.java:421)

08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.app.ActivityThread.handleDestroyActivity 
(ActivityThread.java:3393)

08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.app.ActivityThread.access$2700(ActivityThread.java:116)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1826)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-11 17:23:08.733: ERROR/AndroidRuntime(720): at
android.os.Looper.loop(Looper.java:123)
08-11 17:23:08.733: 

[android-developers] Re: Error in an XML file eclipse

2010-08-13 Thread Peter Webb
I have exactly the same problem.

Whever I open string.xml and some other xml files I also get a Java
Null Pointer error. Typing even a single character triggers it.

I can look at them fine as xml, but Resources view is broken - the
left hand pane has the thin lines that should connect the elements in
the tree structure, but no elements listed. Saving the file also
creates null pointer errors.

You can use editors that don't have a graphical view in the left hand
window - for example the xml editor works fine. Unfortunately the more
useful editors all show heirarchies and don't work.

It is true even for the default files created by new - android
project.

As I say, the xml itself looks fine; its related to how the
information is shown in the left hand window; if it uses a tree
representation of the data, it throws a Null Pointer exception..

Whatever it is, its a PITA. I would completely remove and re-install
the whole devel environment if I was sure it would fix it.

Peter Webb



On Jul 1, 2:42 pm, Bob Kerns r...@acm.org wrote:
 There are several possible editors to use to edit these files. I'd
 suggest trying a different one.

 First, close the editor that's giving you problems.

 Right click on thefilein the Project Explorer, and choose Open
 With...   Try Android Resource Editor first, as that's probably the
 one you really want to be using, and there's nothing in the stacktrace
 that suggests that's what you're actually using. I'm not sure it's NOT
 using it, but it's worth trying the right one first.

 If that doesn't work, try another one. Text Editor is likely to work.
 System Editor/ and In Place Editor will depend on what's installed on
 your system, and since you're on a Mac, I won't make any predictions
 there, but might be good choices. System Editor will launch a separate
 window, which is a drawback.

 I have OxygenXML installed, and that providesEclipsewith an
 additionalXMLeditor as well, with the Oxygen toolset and editing
 style available.

 Even if the Android tool is broken, explore and I think you'll
 probably find something that works acceptably for you.

 (It's still a bug, even if you are using the wrong editor. A side
 benefit of exploring is you'll identify the culprit and canfilethe
 suitable bug report!)

 On Jun 29, 9:46 pm, Gorman Ho gorman...@gmail.com wrote:



  I am also experiencing this issue. When I edit strings.xmldirectly, I
  get 1 NullPointerException for each string in thefileeach time I
  type a letter. I eventually did something to make it go away, but I'm
  not sure what. However, I'm able to reproduce the behavior by creating
  a new Android project.

  I'm running Leopard,EclipseHelios, Android SDK r06, Android Platform
  2.2, ADT 0.9.7.

  I pasted the requested logfilebelow. I had 2 strings in strings.xml,
  so there were 2 NullPointerExeptions generated when I typed a letter
  in strings.xml.

  Hope that helps
  Gorman

  !ENTRY org.eclipse.jface 4 2 2010-06-29 22:43:12.696
  !MESSAGE Problems occurred when invoking code from plug-in:
  org.eclipse.jface.
  !STACK 0
  java.lang.NullPointerException
          at
  org.eclipse.wst.xml.core.internal.document.ElementImpl.getDefaultValue(Elem 
  entImpl.java:
  259)
          at
  org.eclipse.wst.xml.core.internal.document.ElementImpl.getAttributeNS(Eleme 
  ntImpl.java:
  329)
          at
  com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode.getShort 
  Description(Unknown
  Source)
          at
  com.android.ide.eclipse.adt.internal.editors.ui.tree.UiModelTreeLabelProvid 
  er.getText(Unknown
  Source)
          at
  org.eclipse.jface.viewers.WrappedViewerLabelProvider.getText(WrappedViewerL 
  abelProvider.java:
  108)
          at
  org.eclipse.jface.viewers.WrappedViewerLabelProvider.update(WrappedViewerLa 
  belProvider.java:
  164)
          at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:
  152)
          at
  org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewe 
  r.java:
  934)
          at org.eclipse.jface.viewers.AbstractTreeViewer
  $UpdateItemSafeRunnable.run(AbstractTreeViewer.java:102)
          at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
          at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
          at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
          at
  org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewe 
  r.java:
  1014)
          at org.eclipse.jface.viewers.StructuredViewer
  $UpdateItemSafeRunnable.run(StructuredViewer.java:481)
          at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
          at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
          at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
          at
  org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java 
  :
  2141)
          at
  org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeVie 
  

Re: [android-developers] Re: How do you create a custom Preference which needs to invoke a activity for result like RingtonePreference?

2010-08-13 Thread TreKing
On Thu, Aug 12, 2010 at 11:19 PM, Pino Silvaggio
pino.silvag...@gmail.comwrote:

 Yes PreferenceActivity is an Activity.

 But that not my problem.


No, it's your solution.

From PreferenceActivity you can get the list of all preferences defined in
your Preferences, set click listeners for any of them, and call
startActivityForResult() from the PreferenceActivity to do whatever you
need. What's the problem with this?


 The issue is how do I create a custom preference like RingtonePreference


Extend Preference, just like it does?


 if what I need is in PreferenceManager and is hidden by package level?


I don't see what you *need* this.


 example:

 registerOnActivityResultListener

 which is needed if I want to call
 preferenceManager.getActivity().startActivityForResult()

 which getActivity() is also hidden.

 This makes no sense.


What makes no sense is why you feel you need to go through the
PreferenceManager functions when these two facilities are available to you
in PreferenceActivity.

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

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

[android-developers] Re: Enable usb debugging (under settings/applications/development) programatically from within app

2010-08-13 Thread Mathias Lin
Thanks for the info. It's clear now.

enable adb by hand: I don't want to deliver the device with adb
enabled, because I don't want the end-user to be able to do anything
with adb.

Scenario is that my client (very non-technical) does the data sync
between PC application and Android device (using adb in the
background), so all he needs to do is plug in the device and sync from
within the Android application. In fact, he cannot even leave the
application.
So everything should be handled from the application, incl. enabling
adb end disabling adb when the data sync is completed.

This non-technical client will hand/rent out the device to other
people for daily usage. I don't want those people to be mess around
with adb in any way.



On Aug 12, 7:03 pm, Kostya Vasilyev kmans...@gmail.com wrote:
   Ordinary applications can't change Secure settings.

 The built-in settings application can change secure settings because it
 has a special key that the firmware knows about. Unless you create your
 own firmware, you can't give your application the same functionality.

 Now, any reason why you couldn't enable adb by hand, before handing
 over the device with the application to the customer?

 - Kostya

 12.08.2010 5:37, Mathias Lin :



  Thanks for the info. But as I understand it, the settings are read
  only:

  Secure system settings, containing system preferences that
  applications can read but are not allowed to write. These are for
  preferences that the user must explicitly modify through the system UI
  or specialized APIs for those values, not modified directly by
  applications.

  .. or could you please tell me about the special key - couldn't find
  any information about where to get or register such key. With
  'platform knows about' you mean the key needs to be registered with
  the device first outside the app?
  (Since I'm in full control of the devices and bundle the app together
  with a device for distribution, that would be doable).

  On Aug 12, 4:49 am, Kostya Vasilyevkmans...@gmail.com  wrote:
  ... but that is a Secure setting and, as such, can only be manipulated by
  applications signed with a special key (that the platform knows about).

  --
  Kostya Vasilyev --http://kmansoft.wordpress.com

  12.08.2010 0:26 QRqro...@gmail.com   :

  usb debugging is another name for the Android Debug Bridge (ADB). The
  item you're looking for is 
  here:http://developer.android.com/reference/android/provider/Settings.Secu...

  On Aug 11, 5:39 am, Mathias Linm...@mathiaslin.com  wrote:  Is it 
  possible to enable usb debuggi...
  I was looking at Permission.WRITE_SETTINGS andhttp://
  developer.android.com/reference/android/provider/Settings.Syst...

  but couldn't find any appropriate setting there.
  --
  You received this message because you are su...

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

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


Re: [android-developers] Re: Enable usb debugging (under settings/applications/development) programatically from within app

2010-08-13 Thread Kostya Vasilyev
 If that's the case, nothing's preventing those other people from doing 
unspeakably terrible things to the device.


Like uninstalling your application altogether.

Nothing - short of building your own firmware, that is.

-- Kostya

13.08.2010 18:41, Mathias Lin пишет:

This non-technical client will hand/rent out the device to other
people for daily usage. I don't want those people to be mess around
with adb in any way.


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

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


[android-developers] Re: My app is not visible for some (potential) users

2010-08-13 Thread Lance Nanek
The supports-screens line in your app's badging information looks
suspicious:
aapt dump badging it.tidalwave.bluebill.mobile.android-1.apk
package: name='it.tidalwave.bluebill.mobile.android'
versionCode='1619' versionName='0.14'
sdkVersion:'3'
uses-permission:'android.permission.ACCESS_COARSE_LOCATION'
uses-permission:'android.permission.ACCESS_FINE_LOCATION'
uses-permission:'android.permission.INTERNET'
application: label='blueBill Mobile' icon='res/drawable-mdpi/
bluebill_android_logo.png'
launchable activity
name='it.tidalwave.bluebill.mobile.android.splash.SplashActivity'label=''
icon='
'
uses-feature:'android.hardware.location'
uses-feature:'android.hardware.location.gps'
uses-feature:'android.hardware.location.network'
uses-feature:'android.hardware.touchscreen'
main
other-activities
supports-screens: 'normal'
locales: '--_--' 'fr_FR' 'it_IT'
densities: '120' '160' '240'

It only says normal, not something like:
supports-screens: 'small' 'normal' 'large'

I'd make sure the supports-screens element is present in your
AndroidManifest.xml with android:smallScreens set to true, or that the
android:targetSdkVersion attribute is present on your uses-sdk element
and set high enough to make the smallScreens attribute default to true
on its own as per this page:
http://developer.android.com/guide/topics/manifest/supports-screens-element.html

On Aug 12, 3:48 pm, Fabrizio Giudici fabrizio.giud...@tidalwave.it
wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 I'm getting feedbacks from a few potential users that they can't see
 my application (blueBill Mobile) on the Market. I've checked it myself
 and for what I can see everything is fine. Today two persons reported
 the problem, one from UK and the other from Italy. They both have
 recent Android versions that are supported by my application. It
 sounds they are not doing any error in the search since they used the
 QRCode I've published on my website, that I'm able to confirm.

 What's happening? It's really annoying - one makes a new release,
 publishes the news, I can see more hits on my own webpage, and yet
 some users can't get the application. Should I fine an issue to the
 Android issue tracker?

 - --
 Fabrizio Giudici - Java Architect, Project Manager
 Tidalwave s.a.s. - We make Java work. Everywhere.
 java.net/blog/fabriziogiudici -www.tidalwave.it/people
 fabrizio.giud...@tidalwave.it
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
 Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

 iEYEARECAAYFAkxkUBcACgkQeDweFqgUGxcd/QCeL5x3WzjM5xMNeE2Gw0vl+I+O
 FIkAoK+GtjVmkgrhoohRcJltokNXKjfj
 =kBmq
 -END PGP SIGNATURE-

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


[android-developers] onRestoreInstanceState exception only on froyo for a simple textview

2010-08-13 Thread Cheryl Sedota
I have an application with an activity group, and it uses the local
activity manager class to start a subactivity and insert that
subactivity's view.  I do not have any custom onSaveInstanceState
logic written anywhere in my app.  I have a nested layout of relative
layout - textview within that subactivity's view, and the text view's
id is recent_apps_label.  I get this exception every time I rotate
the device to/from portrait/landscape orientation on froyo ONLY, never
saw this on eclair.

Please help - I have NO idea as to how the parcelable object getting
sent to onRestoreInstanceState would be for a list view.  I even
changed the id to something even more unique and it didn't fix the
problem.  I have a different layout file for the containing layout in
layout-land-mdpi, layout-port-mdpi, and layout-port-hdpi FYI.

Here is the exception:

E/AndroidRuntime( 1106): java.lang.IllegalArgumentException: Wrong
state class, expecting View State but received class
android.widget.AbsListView$SavedState instead. This usually happens
when two views of different type have the same id in the same
hierarchy. This view's id is id/recent_apps_label. Make sure other
views do not use the same id.
E/AndroidRuntime( 1106):at
android.view.View.onRestoreInstanceState(View.java:6162)
E/AndroidRuntime( 1106):at
android.widget.TextView.onRestoreInstanceState(TextView.java:2422)
E/AndroidRuntime( 1106):at
android.view.View.dispatchRestoreInstanceState(View.java:6138)
E/AndroidRuntime( 1106):at
android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
1209)
E/AndroidRuntime( 1106):at
android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
1209)
E/AndroidRuntime( 1106):at
android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
1209)
E/AndroidRuntime( 1106):at
android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
1209)
E/AndroidRuntime( 1106):at
android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
1209)
E/AndroidRuntime( 1106):at
android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
1209)
E/AndroidRuntime( 1106):at
android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
1209)
E/AndroidRuntime( 1106):at
android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
1209)
E/AndroidRuntime( 1106):at
android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
1209)
E/AndroidRuntime( 1106):at
android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
1209)
E/AndroidRuntime( 1106):at
android.view.View.restoreHierarchyState(View.java:6117)
E/AndroidRuntime( 1106):at
com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:
1530)
E/AndroidRuntime( 1106):at
android.app.Activity.onRestoreInstanceState(Activity.java:843)

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


[android-developers] Sqlite Delete doesn't delete

2010-08-13 Thread Wall-E
I have written a database adapter to implement database functions like
query(), delete(), update(), insert()etc.  So I have been able to
insert and query just fine but deleting a specific row is not working
at all.  I have tested deleting all the rows and that works fine even
though the return value is still 0 or false.  I have posted my
delete() method and my table:

Again, I have confirmed insert and query but not delete and after
sending this post I'm going to try the update to see if that works.
Also, the open() call just does the DBHelper.getWritableDatabase().
I'm concerned that it is the way my table is set up but I've tried all
the sql statements in a sqlite browser and that table is just fine.

db.execSQL( CREATE TABLE  + ECHOLIST_TABLE +  ( +
[PHONENUMBER_ID] NVARCHAR(15) PRIMARY 
KEY NOT NULL,  +
[PHONENUMBER] NVARCHAR(15) NOT NULL); 
);

public boolean deletePhoneNumber(String phonenumber)
{
open();
db.beginTransaction();

int rowsDeleted = db.delete(ECHOLIST_TABLE, PHONENUMBER_ID +
= + phonenumber, null);

//int rowsDeleted = db.delete(ECHOLIST_TABLE, null, null);

db.setTransactionSuccessful();
db.endTransaction();
close();

return (rowsDeleted  0);
}

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

2010-08-13 Thread Chris Stewart
I use db.execSQL to delete.

--
Chris Stewart
http://chriswstewart.com

Fantasy 
Footballhttp://chriswstewart.com/android-applications/fantasy-football/-
Android app for fantasy football fanatics and MFL owners
Social Updaterhttp://chriswstewart.com/android-applications/social-updater/-
An easy way to send your status blast to multiple social networks



On Fri, Aug 13, 2010 at 11:15 AM, Wall-E bashee...@gmail.com wrote:

 I have written a database adapter to implement database functions like
 query(), delete(), update(), insert()etc.  So I have been able to
 insert and query just fine but deleting a specific row is not working
 at all.  I have tested deleting all the rows and that works fine even
 though the return value is still 0 or false.  I have posted my
 delete() method and my table:

 Again, I have confirmed insert and query but not delete and after
 sending this post I'm going to try the update to see if that works.
 Also, the open() call just does the DBHelper.getWritableDatabase().
 I'm concerned that it is the way my table is set up but I've tried all
 the sql statements in a sqlite browser and that table is just fine.

 db.execSQL( CREATE TABLE  + ECHOLIST_TABLE +  ( +
[PHONENUMBER_ID] NVARCHAR(15)
 PRIMARY KEY NOT NULL,  +
[PHONENUMBER] NVARCHAR(15) NOT
 NULL); );

 public boolean deletePhoneNumber(String phonenumber)
{
open();
db.beginTransaction();

int rowsDeleted = db.delete(ECHOLIST_TABLE, PHONENUMBER_ID +
= + phonenumber, null);

//int rowsDeleted = db.delete(ECHOLIST_TABLE, null, null);

db.setTransactionSuccessful();
db.endTransaction();
close();

return (rowsDeleted  0);
}

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

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

Re: [android-developers] Sqlite Delete doesn't delete

2010-08-13 Thread Farjad Habib
give the phonenumber in single quoteslike below

PHONENUMBER_ID + =' + phonenumber +'
On Fri, Aug 13, 2010 at 8:15 PM, Wall-E bashee...@gmail.com wrote:

 I have written a database adapter to implement database functions like
 query(), delete(), update(), insert()etc.  So I have been able to
 insert and query just fine but deleting a specific row is not working
 at all.  I have tested deleting all the rows and that works fine even
 though the return value is still 0 or false.  I have posted my
 delete() method and my table:

 Again, I have confirmed insert and query but not delete and after
 sending this post I'm going to try the update to see if that works.
 Also, the open() call just does the DBHelper.getWritableDatabase().
 I'm concerned that it is the way my table is set up but I've tried all
 the sql statements in a sqlite browser and that table is just fine.

 db.execSQL( CREATE TABLE  + ECHOLIST_TABLE +  ( +
[PHONENUMBER_ID] NVARCHAR(15)
 PRIMARY KEY NOT NULL,  +
[PHONENUMBER] NVARCHAR(15) NOT
 NULL); );

 public boolean deletePhoneNumber(String phonenumber)
{
open();
db.beginTransaction();

int rowsDeleted = db.delete(ECHOLIST_TABLE, PHONENUMBER_ID +
= + phonenumber, null);

//int rowsDeleted = db.delete(ECHOLIST_TABLE, null, null);

db.setTransactionSuccessful();
db.endTransaction();
close();

return (rowsDeleted  0);
}

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




-- 
Farjad Habib
Software Engineer and Developer
BS(Hons) 2011
LUMS

+92-331-4944-354

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

2010-08-13 Thread TreKing
On Thu, Aug 12, 2010 at 10:15 PM, Tony Gonzalez
tonygonzalez...@gmail.comwrote:

 I hope that's sarcasm, because it would be a low blow just trying to learn
 man.


The part about the amazing new technology? Yes.
The part about using Google for simple queries like where is thing on the
internet? No.

A fantastic way to learn is to lose yourself in internet searches on
whatever you're trying to learn about. Try it. =)

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

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

[android-developers] Re: Sqlite Delete doesn't delete

2010-08-13 Thread RichardC
Try putting quotes around the phonenumber string

On Aug 13, 4:15 pm, Wall-E bashee...@gmail.com wrote:
 I have written a database adapter to implement database functions like
 query(), delete(), update(), insert()etc.  So I have been able to
 insert and query just fine but deleting a specific row is not working
 at all.  I have tested deleting all the rows and that works fine even
 though the return value is still 0 or false.  I have posted my
 delete() method and my table:

 Again, I have confirmed insert and query but not delete and after
 sending this post I'm going to try the update to see if that works.
 Also, the open() call just does the DBHelper.getWritableDatabase().
 I'm concerned that it is the way my table is set up but I've tried all
 the sql statements in a sqlite browser and that table is just fine.

 db.execSQL( CREATE TABLE  + ECHOLIST_TABLE +  ( +
                                         [PHONENUMBER_ID] NVARCHAR(15) 
 PRIMARY KEY NOT NULL,  +
                                         [PHONENUMBER] NVARCHAR(15) NOT 
 NULL); );

 public boolean deletePhoneNumber(String phonenumber)
     {
         open();
         db.beginTransaction();

         int rowsDeleted = db.delete(ECHOLIST_TABLE, PHONENUMBER_ID +
                         = + phonenumber, null);

         //int rowsDeleted = db.delete(ECHOLIST_TABLE, null, null);

         db.setTransactionSuccessful();
         db.endTransaction();
                 close();

                 return (rowsDeleted  0);
     }

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

2010-08-13 Thread Chris Stewart
Off topic...

I've found that losing myself in searching on specific Android topics *is* a
great way to learn.  Sometimes you'll run across completely outdated
information but often the trail to your answer is exceptionally valuable.
 So while you are working to learn the Android platform, I would consider
that to be sound advice.

--
Chris Stewart
http://chriswstewart.com

Fantasy 
Footballhttp://chriswstewart.com/android-applications/fantasy-football/-
Android app for fantasy football fanatics and MFL owners
Social Updaterhttp://chriswstewart.com/android-applications/social-updater/-
An easy way to send your status blast to multiple social networks



On Fri, Aug 13, 2010 at 11:20 AM, TreKing treking...@gmail.com wrote:

 On Thu, Aug 12, 2010 at 10:15 PM, Tony Gonzalez tonygonzalez...@gmail.com
  wrote:

 I hope that's sarcasm, because it would be a low blow just trying to learn
 man.


 The part about the amazing new technology? Yes.
 The part about using Google for simple queries like where is thing on the
 internet? No.

 A fantastic way to learn is to lose yourself in internet searches on
 whatever you're trying to learn about. Try it. =)


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


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

Re: [android-developers] Re: My app is not visible for some (potential) users

2010-08-13 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/13/10 17:14 , Lance Nanek wrote:

 I'd make sure the supports-screens element is present in your
 AndroidManifest.xml with android:smallScreens set to true, or that
 the android:targetSdkVersion attribute is present on your uses-sdk
 element and set high enough to make the smallScreens attribute
 default to true on its own as per this page:
 http://developer.android.com/guide/topics/manifest/supports-screens-element.html

Thanks

for trying it. But isn't that supposed to hold for Android 1.6
and upper? I'm targetting 1.5 and this should automatically make the
app compatible with every screen, right?. After all, otherwise I
shouldn't ever see the app from my Droid that has got a 'large' screen...

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxlZH8ACgkQeDweFqgUGxeymwCfYCggnDvvTqwCKmQ/S2wqp4fS
ZPoAnjf20e2b5H/Yx56UnOt2tHJ3sq13
=GyJ4
-END PGP SIGNATURE-

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


[android-developers] Re: onRestoreInstanceState exception only on froyo for a simple textview

2010-08-13 Thread Cheryl Sedota
I subclasses TextView for this one control and logged calls to
onSaveInstanceState and onRestoreInstanceState - I never return an
AbsListView.SavedState in onSaveInstanceState but I am seeing it get
sent to my onRestoreInstanceState method:

I/TestTextView( 1739): In onSaveInstanceState with
android.view.abssavedstat...@400bae90
I/TestTextView( 1739): In onSaveInstanceState with
android.view.abssavedstat...@400bae90
I/TestTextView( 1739): In onSaveInstanceState with
android.view.abssavedstat...@400bae90
I/TestTextView( 1739): In onRestoreInstanceState with
android.view.abssavedstat...@400bae90
I/TestTextView( 1739): In onSaveInstanceState with
android.view.abssavedstat...@400bae90
I/TestTextView( 1739): In onRestoreInstanceState with
AbsListView.SavedState{45128f10 selectedId=-9223372036854775808
firstId=1 viewTop=0 position=0 height=455 filter=null}

On Aug 13, 10:15 am, Cheryl Sedota cherylsed...@gmail.com wrote:
 I have an application with an activity group, and it uses the local
 activity manager class to start a subactivity and insert that
 subactivity's view.  I do not have any custom onSaveInstanceState
 logic written anywhere in my app.  I have a nested layout of relative
 layout - textview within that subactivity's view, and the text view's
 id is recent_apps_label.  I get this exception every time I rotate
 the device to/from portrait/landscape orientation on froyo ONLY, never
 saw this on eclair.

 Please help - I have NO idea as to how the parcelable object getting
 sent to onRestoreInstanceState would be for a list view.  I even
 changed the id to something even more unique and it didn't fix the
 problem.  I have a different layout file for the containing layout in
 layout-land-mdpi, layout-port-mdpi, and layout-port-hdpi FYI.

 Here is the exception:

 E/AndroidRuntime( 1106): java.lang.IllegalArgumentException: Wrong
 state class, expecting View State but received class
 android.widget.AbsListView$SavedState instead. This usually happens
 when two views of different type have the same id in the same
 hierarchy. This view's id is id/recent_apps_label. Make sure other
 views do not use the same id.
 E/AndroidRuntime( 1106):        at
 android.view.View.onRestoreInstanceState(View.java:6162)
 E/AndroidRuntime( 1106):        at
 android.widget.TextView.onRestoreInstanceState(TextView.java:2422)
 E/AndroidRuntime( 1106):        at
 android.view.View.dispatchRestoreInstanceState(View.java:6138)
 E/AndroidRuntime( 1106):        at
 android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
 1209)
 E/AndroidRuntime( 1106):        at
 android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
 1209)
 E/AndroidRuntime( 1106):        at
 android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
 1209)
 E/AndroidRuntime( 1106):        at
 android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
 1209)
 E/AndroidRuntime( 1106):        at
 android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
 1209)
 E/AndroidRuntime( 1106):        at
 android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
 1209)
 E/AndroidRuntime( 1106):        at
 android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
 1209)
 E/AndroidRuntime( 1106):        at
 android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
 1209)
 E/AndroidRuntime( 1106):        at
 android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
 1209)
 E/AndroidRuntime( 1106):        at
 android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:
 1209)
 E/AndroidRuntime( 1106):        at
 android.view.View.restoreHierarchyState(View.java:6117)
 E/AndroidRuntime( 1106):        at
 com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:
 1530)
 E/AndroidRuntime( 1106):        at
 android.app.Activity.onRestoreInstanceState(Activity.java:843)

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


[android-developers] Re: Thoughts on this LenientPolicy implementation of an LVL Policy?

2010-08-13 Thread mot12
Mark, would you be willing to share your updated code? I find your
policy more sensible during the toddler phase of LVL. Until maturity
of ServerManagedPolicy is proven, I need to play it safe for an
existing app with many users that I don't want to alienate.

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

2010-08-13 Thread Tony Gonzalez
Okay thanks for the advise, I'm doing that right now. Trying to download the
source code to get moving on with the learning process. On the android
source website is says you need to download git and repo, in addition it
states that windows is not supported. I'll be using windows as my
development computer. I've downloaded the SDK and Eclipse and have already
practice with the hello world script, and others' question for you. Do you
use windows to develop ?


thanks


Tony

Sent from my Android phone

On Aug 13, 2010 9:22 AM, TreKing treking...@gmail.com wrote:
 On Thu, Aug 12, 2010 at 10:15 PM, Tony Gonzalez
 tonygonzalez...@gmail.comwrote:

 I hope that's sarcasm, because it would be a low blow just trying to
learn
 man.


 The part about the amazing new technology? Yes.
 The part about using Google for simple queries like where is thing on the
 internet? No.

 A fantastic way to learn is to lose yourself in internet searches on
 whatever you're trying to learn about. Try it. =)


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

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

[android-developers] Android Market cropping uploaded screenshots

2010-08-13 Thread OldSkoolMark
Thought I'd inquire here where perhaps some other dev is having
similar problems currently.  I've done this before (months ago), and
as far as I can tell, I'm doing it the same way. My 480x854 24-bit PNG
screenshots are being scaled/cropped by Market. Same with 480x854
jpgs. It looks like they're being cropped to 480x800 but of course,
Market won't let me upload an image with those dimensions. Windows
explorer confirms that my PNG file is of the proscribed size and bit
depth.

The app is Metronome++ if you want to see what the problem looks like
on Market.

Do I really need to work around this by providing screenshots with
margins? As 480x854 is a standard screen size, I am assuming the
intent is for the screenshot to go edge to edge in both horizontal and
vertical directions. Perhaps mistakenly ...

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

2010-08-13 Thread Tony Gonzalez
Sounds like great advise, but their is a lot of information. As I just
mention it to TreKing I'm doing that right now, trying to get the source
code but have to figure out how to install and use git and repo.

thanks

Tony

On Fri, Aug 13, 2010 at 9:27 AM, Chris Stewart cstewart...@gmail.comwrote:

 Off topic...

 I've found that losing myself in searching on specific Android topics *is*a 
 great way to learn.  Sometimes you'll run across completely outdated
 information but often the trail to your answer is exceptionally valuable.
  So while you are working to learn the Android platform, I would consider
 that to be sound advice.

 --
 Chris Stewart
 http://chriswstewart.com

 Fantasy 
 Footballhttp://chriswstewart.com/android-applications/fantasy-football/- 
 Android app for fantasy football fanatics and MFL owners
 Social 
 Updaterhttp://chriswstewart.com/android-applications/social-updater/- An 
 easy way to send your status blast to multiple social networks



 On Fri, Aug 13, 2010 at 11:20 AM, TreKing treking...@gmail.com wrote:

 On Thu, Aug 12, 2010 at 10:15 PM, Tony Gonzalez 
 tonygonzalez...@gmail.com wrote:

 I hope that's sarcasm, because it would be a low blow just trying to
 learn man.


 The part about the amazing new technology? Yes.
 The part about using Google for simple queries like where is thing on the
 internet? No.

 A fantastic way to learn is to lose yourself in internet searches on
 whatever you're trying to learn about. Try it. =)


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


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


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

[android-developers] Re: My app is not visible for some (potential) users

2010-08-13 Thread Lance Nanek
Apps that do not support large screens are still available to large
screen devices. Apps that do not support small screens are not
available to small screen devices.

From the linked URL ( 
http://developer.android.com/guide/topics/manifest/supports-screens-element.html
):
 An application that does not support small screens will not be available for 
 small screen devices, because there is little the platform can do to make 
 such an application work on a smaller screen
...
 An application that does not support large screens will be placed as a 
 postage stamp on such a screen, so that it retains the dimensions it was 
 originally designed for.

On Aug 13, 11:27 am, Fabrizio Giudici fabrizio.giud...@tidalwave.it
wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 8/13/10 17:14 , Lance Nanek wrote:

  I'd make sure the supports-screens element is present in your
  AndroidManifest.xml with android:smallScreens set to true, or that
  the android:targetSdkVersion attribute is present on your uses-sdk
  element and set high enough to make the smallScreens attribute
  default to true on its own as per this page:
 http://developer.android.com/guide/topics/manifest/supports-screens-e...

 Thanks

 for trying it. But isn't that supposed to hold for Android 1.6
 and upper? I'm targetting 1.5 and this should automatically make the
 app compatible with every screen, right?. After all, otherwise I
 shouldn't ever see the app from my Droid that has got a 'large' screen...

 - --
 Fabrizio Giudici - Java Architect, Project Manager
 Tidalwave s.a.s. - We make Java work. Everywhere.
 java.net/blog/fabriziogiudici -www.tidalwave.it/people
 fabrizio.giud...@tidalwave.it
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
 Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

 iEYEARECAAYFAkxlZH8ACgkQeDweFqgUGxeymwCfYCggnDvvTqwCKmQ/S2wqp4fS
 ZPoAnjf20e2b5H/Yx56UnOt2tHJ3sq13
 =GyJ4
 -END PGP SIGNATURE-

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


[android-developers] Re: Mouse interaction on 3D object

2010-08-13 Thread souza
I have found the APIDemos example but I couldn't find the specific
code I guess. Is it this page you are referring to:

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/Animation2.html

If not can you tell me which is the code file containing the
corresponding source?

@ Kostya Vasilyev

I already started studying some basics but thanks for the advice. I'll
consider your suggestions. I'm also going to search for non-android
examples in this context. Is there a web source you can recommend?

On 12 Aug., 23:38, Kostya Vasilyev kmans...@gmail.com wrote:
 I'm sure there are a lot of samples for this, not necessary Android
 specific.

 But my first advice would be to understand the basic math involved in 3D
 graphics: model coordinates,  viewport, clipping planes, projection matrix.
 Armed with this knowledge, you will be able to actually understand the
 sample code you find, and make meaningful modifications.

 Without it, it's just copying and pasting while keeping your fingers
 crossed.

 --
 Kostya Vasilyev --http://kmansoft.wordpress.com

 13.08.2010 1:13 пользователь Indicator Veritatis mej1...@yahoo.com
 написал:

 Have you looked at the OpenGL samples in APIDemos?

 On Aug 12, 7:49 am, souza sadita...@gmx.net wrote:



  Hi,

  given a 3D cube I want it to move wh...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
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 do you create a custom Preference which needs to invoke a activity for result like RingtonePreference?

2010-08-13 Thread Pino Silvaggio
This is so simple.

If I use a PreferenceActivity to handle my CustomPreference onclick()
or any other state
of a Preference added to it then the CustomPreference is worthless and
is tied to a specific activity.

It's like RingtonePreference basically doesn't do anything and you
have to explicitly write code
in PreferenceActivity to make it work.

Just look at the android sources you'll understand what I mean.
RingtonePreference handles the
activity call to pick a ringtone and save it's state.

I want to create a CustomPreference that is self-contained like any
other android preferences.


On Aug 13, 10:39 am, TreKing treking...@gmail.com wrote:
 On Thu, Aug 12, 2010 at 11:19 PM, Pino Silvaggio
 pino.silvag...@gmail.comwrote:

  Yes PreferenceActivity is an Activity.

  But that not my problem.

 No, it's your solution.

 From PreferenceActivity you can get the list of all preferences defined in
 your Preferences, set click listeners for any of them, and call
 startActivityForResult() from the PreferenceActivity to do whatever you
 need. What's the problem with this?

  The issue is how do I create a custom preference like RingtonePreference

 Extend Preference, just like it does?

  if what I need is in PreferenceManager and is hidden by package level?

 I don't see what you *need* this.

  example:

  registerOnActivityResultListener

  which is needed if I want to call
  preferenceManager.getActivity().startActivityForResult()

  which getActivity() is also hidden.

  This makes no sense.

 What makes no sense is why you feel you need to go through the
 PreferenceManager functions when these two facilities are available to you
 in PreferenceActivity.

 -
 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


Re: [android-developers] source code

2010-08-13 Thread Frank Weiss
I wonder which source code the OP is getting and why.

On Aug 13, 2010 8:34 AM, Tony Gonzalez tonygonzalez...@gmail.com wrote:

Sounds like great advise, but their is a lot of information. As I just
mention it to TreKing I'm doing that right now, trying to get the source
code but have to figure out how to install and use git and repo.

thanks

Tony



On Fri, Aug 13, 2010 at 9:27 AM, Chris Stewart cstewart...@gmail.com
wrote:

 Off topic...

...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers g...

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

2010-08-13 Thread TreKing
On Fri, Aug 13, 2010 at 10:31 AM, Tony Gonzalez
tonygonzalez...@gmail.comwrote:

 On the android source website is says you need to download git and repo, in
 addition it states that windows is not supported. I'll be using windows as
 my development computer.



 Do you use windows to develop ?


I do, yes. To be clear, you DO NOT need the entire Android Source code to
develop an app - you just need the SDK (and using Eclipse as the IDE is
probably a good idea).

-
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

Re: [android-developers] Re: My app is not visible for some (potential) users

2010-08-13 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/13/10 17:34 , Lance Nanek wrote:
 Apps that do not support large screens are still available to
 large screen devices. Apps that do not support small screens are
 not available to small screen devices.

Thanks. I've verified with the customer and he's indeed running an HTC
wildfire, which is a 240 x 320 QVGA, so it makes sense.
Now, the final question: since the support-screens manifest element
is not supported with Android 1.5, does this mean that any application
targeting Android 1.5 is not compatible with small screens? Right?

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxlaPkACgkQeDweFqgUGxfGAwCeMqH5UNjs4bQ+0JH1wrFaLps8
UIIAoJ8B+WbECUXcUNIve7D9z47hZF4T
=V2qC
-END PGP SIGNATURE-

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


[android-developers] Re: about handle the home key

2010-08-13 Thread Mathias Lin
You cannot disable the home button via SDK. See
http://www.mail-archive.com/android-developers@googlegroups.com/msg52244.html

On Aug 13, 9:19 am, 李实 lishi1...@gmail.com wrote:
 thank you for help,but you may mistake me.
 what I really want to do is to disable the home key,when my activity
 is running .
 and the code in the  xml is my attempt.
 when home is pressed,then android probably sent an intent home.
 in my activity,android find it has HOME category,so it does
 nothing,so the home key is disabled .
 As i wrote,it works in AVD but not in a SAMSUMG phone.

 I wonder if there is other way to kick the goal.

 2010/8/12 Mathias Lin m...@mathiaslin.com





  I do the same on a Samsung Galaxy S with 2.1update1 and 2.2 without a
  problem. The approach you described is correct.
  My intent filter looks similar:

              intent-filter
                 action android:name=android.intent.action.MAIN/
                 category
  android:name=android.intent.category.LAUNCHER/
                 category android:name=android.intent.category.HOME/

                 category
  android:name=android.intent.category.DEFAULT/
             /intent-filter

  When you press the home button first, you should get a dialog where to
  choose the home application to use, which is where the user can
  optionally tick a checkbox to set the selected app as the default home
  screen, so that the dialog won't show again.
  So, this dialog only comes up on the emulator but never appeared on
  your real phone?

  On Aug 8, 12:47 pm, ʵ lishi1...@gmail.com wrote:
   I'm working on a slide-unlock program and I want it take the place of
   Android KeyguardLock.

   there is one last thing todo.it's the home key.

   I google it and found we cannnot handle it as the other keys with
   onkeydown,dispatchkeyevent method.

   so I add this
   action android:name=android.intent.action.MAIN /
   category android:name=android.intent.category.HOME /
   category android:name=android.intent.category.DEFAULT /
   to activity.

   It does works on AVD!
   I think Android receive home intent when home key is pressed ,then
   it try to find someone to handle the intent.it found two can handle
   this.And one of the two happens to my program and my program is on.so
   it send the intent to my program .So,the home key is disabled when my
   program is running.

   But,it does not work on a samsung true phone!!
   what can I do,is there any other way to make it??

   thanks!
   Simon Lee

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

 --
 execuse me for my poor English

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 do you create a custom Preference which needs to invoke a activity for result like RingtonePreference?

2010-08-13 Thread TreKing
On Fri, Aug 13, 2010 at 10:37 AM, Pino Silvaggio
pino.silvag...@gmail.comwrote:

 I want to create a CustomPreference that is self-contained like any other
 android preferences.


Ah, well, this makes it clear now what you're trying to do - this was not
clear to me before, sorry.

Maybe have your CustomPreference store a reference to Activity which you set
in the PreferenceActivity onCreate?
Not completely self-contained, but you need access to the parent Activity
*somewhere*.

-
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

Re: [android-developers] source code

2010-08-13 Thread Tony Gonzalez
Oh I didn't know that, but I'm not trying to develop an app, what I want to
do is to customize my ROM or create a new one for my phone. Looks like a lot
of fun, been running custom ROM of my droid since I purchase it and I want
to learn to do my own. If I may ask what would you recommend me do?

On Fri, Aug 13, 2010 at 9:40 AM, TreKing treking...@gmail.com wrote:

 On Fri, Aug 13, 2010 at 10:31 AM, Tony Gonzalez tonygonzalez...@gmail.com
  wrote:

 On the android source website is says you need to download git and repo,
 in addition it states that windows is not supported. I'll be using windows
 as my development computer.



 Do you use windows to develop ?


 I do, yes. To be clear, you DO NOT need the entire Android Source code to
 develop an app - you just need the SDK (and using Eclipse as the IDE is
 probably a good idea).


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


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

Re: [android-developers] Re: Mouse interaction on 3D object

2010-08-13 Thread Kostya Vasilyev
 It's been over 10 years since last time I used GL, so my site list is 
not quite up to date, sorry :)


Just Google for OpenGL, you're bound to find lots of useful sites.

You mentioned GLU in your previous message, my guess is you were 
referring to gluLookAt.


There are lots of working sample implementations out there, and it's 
only about 20-30 lines of code. Just Google for gluLookAt source.


-- Kostya

13.08.2010 19:36, souza пишет:

@ Kostya Vasilyev

I already started studying some basics but thanks for the advice. I'll
consider your suggestions. I'm also going to search for non-android
examples in this context. Is there a web source you can recommend?


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

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


Re: [android-developers] source code

2010-08-13 Thread TreKing
On Fri, Aug 13, 2010 at 10:48 AM, Tony Gonzalez
tonygonzalez...@gmail.comwrote:

 Looks like a lot of fun, been running custom ROM of my droid since I
 purchase it and I want to learn to do my own. If I may ask what would you
 recommend me do?


Well, if the site says Windows is not supported for building the source
code, getting a Mac / Linux box would probably be step #1. =)

I have not looked at the source code site very closely, but I have to be
believe there are instructions on there for how to get started once you have
the proper equipment.

-
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

Re: [android-developers] source code

2010-08-13 Thread Tony Gonzalez
I thought about step 1 :-) but I'll continue with my research and if I have
to get a mac/linux box that's what I'll have to do. Thanks

On Fri, Aug 13, 2010 at 9:54 AM, TreKing treking...@gmail.com wrote:

 On Fri, Aug 13, 2010 at 10:48 AM, Tony Gonzalez tonygonzalez...@gmail.com
  wrote:

 Looks like a lot of fun, been running custom ROM of my droid since I
 purchase it and I want to learn to do my own. If I may ask what would you
 recommend me do?


 Well, if the site says Windows is not supported for building the source
 code, getting a Mac / Linux box would probably be step #1. =)

 I have not looked at the source code site very closely, but I have to be
 believe there are instructions on there for how to get started once you have
 the proper equipment.



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


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

[android-developers] Re: My app is not visible for some (potential) users

2010-08-13 Thread Lance Nanek
You can have a build target higher than Android 1.5, but still specify
Android 1.5 support in the android:minSdkVersion attribute of the uses-
sdk element.

On Aug 13, 11:47 am, Fabrizio Giudici fabrizio.giud...@tidalwave.it
wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 8/13/10 17:34 , Lance Nanek wrote:

  Apps that do not support large screens are still available to
  large screen devices. Apps that do not support small screens are
  not available to small screen devices.

 Thanks. I've verified with the customer and he's indeed running an HTC
 wildfire, which is a 240 x 320 QVGA, so it makes sense.
 Now, the final question: since the support-screens manifest element
 is not supported with Android 1.5, does this mean that any application
 targeting Android 1.5 is not compatible with small screens? Right?

 - --
 Fabrizio Giudici - Java Architect, Project Manager
 Tidalwave s.a.s. - We make Java work. Everywhere.
 java.net/blog/fabriziogiudici -www.tidalwave.it/people
 fabrizio.giud...@tidalwave.it
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
 Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

 iEYEARECAAYFAkxlaPkACgkQeDweFqgUGxfGAwCeMqH5UNjs4bQ+0JH1wrFaLps8
 UIIAoJ8B+WbECUXcUNIve7D9z47hZF4T
 =V2qC
 -END PGP SIGNATURE-

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

2010-08-13 Thread Kostya Vasilyev
 You can probably build Android under Linux running inside a virtual 
machine hosted on Windows.


There are free ones out there, for example Virtual Box - 
http://www.virtualbox.org


Might also subscribe to this Google group:

http://groups.google.com/group/android-porting

-- Kosyta

13.08.2010 19:59, Tony Gonzalez ?:
I thought about step 1 :-) but I'll continue with my research and if I 
have to get a mac/linux box that's what I'll have to do. Thanks


On Fri, Aug 13, 2010 at 9:54 AM, TreKing treking...@gmail.com 
mailto:treking...@gmail.com wrote:


On Fri, Aug 13, 2010 at 10:48 AM, Tony Gonzalez
tonygonzalez...@gmail.com mailto:tonygonzalez...@gmail.com wrote:

Looks like a lot of fun, been running custom ROM of my droid
since I purchase it and I want to learn to do my own. If I may
ask what would you recommend me do?


Well, if the site says Windows is not supported for building the
source code, getting a Mac / Linux box would probably be step #1. =)

I have not looked at the source code site very closely, but I have
to be believe there are instructions on there for how to get
started once you have the proper equipment.



-
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
mailto:android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
mailto:android-developers%2bunsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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



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

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

[android-developers] Re: Sqlite Delete doesn't delete

2010-08-13 Thread Wall-E
Thanks everybody, yea the problem is that the WHERE clause was using
my string value without the quotes.

On Aug 13, 11:22 am, RichardC richard.crit...@googlemail.com wrote:
 Try putting quotes around the phonenumber string

 On Aug 13, 4:15 pm, Wall-E bashee...@gmail.com wrote:



  I have written a database adapter to implement database functions like
  query(), delete(), update(), insert()etc.  So I have been able to
  insert and query just fine but deleting a specific row is not working
  at all.  I have tested deleting all the rows and that works fine even
  though the return value is still 0 or false.  I have posted my
  delete() method and my table:

  Again, I have confirmed insert and query but not delete and after
  sending this post I'm going to try the update to see if that works.
  Also, the open() call just does the DBHelper.getWritableDatabase().
  I'm concerned that it is the way my table is set up but I've tried all
  the sql statements in a sqlite browser and that table is just fine.

  db.execSQL( CREATE TABLE  + ECHOLIST_TABLE +  ( +
                                          [PHONENUMBER_ID] NVARCHAR(15) 
  PRIMARY KEY NOT NULL,  +
                                          [PHONENUMBER] NVARCHAR(15) NOT 
  NULL); );

  public boolean deletePhoneNumber(String phonenumber)
      {
          open();
          db.beginTransaction();

          int rowsDeleted = db.delete(ECHOLIST_TABLE, PHONENUMBER_ID +
                          = + phonenumber, null);

          //int rowsDeleted = db.delete(ECHOLIST_TABLE, null, null);

          db.setTransactionSuccessful();
          db.endTransaction();
                  close();

                  return (rowsDeleted  0);
      }

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

2010-08-13 Thread Tony Gonzalez
I'll look into that, thanks Kostya

On Fri, Aug 13, 2010 at 10:05 AM, Kostya Vasilyev kmans...@gmail.comwrote:

  You can probably build Android under Linux running inside a virtual
 machine hosted on Windows.

 There are free ones out there, for example Virtual Box -
 http://www.virtualbox.org

 Might also subscribe to this Google group:

 http://groups.google.com/group/android-porting

 -- Kosyta

 13.08.2010 19:59, Tony Gonzalez пишет:

 I thought about step 1 :-) but I'll continue with my research and if I have
 to get a mac/linux box that's what I'll have to do. Thanks

 On Fri, Aug 13, 2010 at 9:54 AM, TreKing treking...@gmail.com wrote:

  On Fri, Aug 13, 2010 at 10:48 AM, Tony Gonzalez 
 tonygonzalez...@gmail.com wrote:

 Looks like a lot of fun, been running custom ROM of my droid since I
 purchase it and I want to learn to do my own. If I may ask what would you
 recommend me do?


  Well, if the site says Windows is not supported for building the source
 code, getting a Mac / Linux box would probably be step #1. =)

  I have not looked at the source code site very closely, but I have to be
 believe there are instructions on there for how to get started once you have
 the proper equipment.



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


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



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

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


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

[android-developers] Re: pinch-zoom image displayed in gallery

2010-08-13 Thread Bob Kerns
It looks like you just missed it; it's there:

http://groups.google.com/group/android-developers/browse_frm/thread/5b9079168c77cd35

On Aug 11, 4:12 pm, Martin Grotzke martin.grot...@googlemail.com
wrote:
 Is my previous message really still waiting for approval? I can't find it in
 the groups website...

 Thanx  cheers,
 Martin

 Am 2010 8 11 01:28 schrieb martin.grotzke martin.grot...@googlemail.com:



  Hi,

  I'm trying to create a gallery (each image taking the whole screen)
  that allows the user to pinch-zoom the currently displayed image.

  I found the code for a TouchImageView on stackoverflow (http://
  stackoverflow.com/questions/2537238/how-can-i-get-zoom-functionality-
  for-images ) which works fine for a single image (in a LinearLayout).
  Unfortunately, when I combine the Gallery and the TouchImageView
  (returning a TouchImageView in the adapters getView), it does not
  work:
  - there's no pinch-zoom
  - it's no longer possible to switch the images (via fling)

  I found some similar posts here, the best match seems to be

 http://groups.google.com/group/android-developers/browse_thread/threa...





  However, I don't see really how to put the mentioned parts together to
  get the things running.

  Can anybody help with this?

  Thanx  cheers,
  Martin

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


Re: [android-developers] Android Market cropping uploaded screenshots

2010-08-13 Thread Chris Stewart
I've run into the same problem with my app on the market.  It looks OK when
you click in to view the screenshot, but looks fuzzy when viewing from the
app's page on the market.

--
Chris Stewart
http://chriswstewart.com

Fantasy 
Footballhttp://chriswstewart.com/android-applications/fantasy-football/-
Android app for fantasy football fanatics and MFL owners
Social Updaterhttp://chriswstewart.com/android-applications/social-updater/-
An easy way to send your status blast to multiple social networks



On Fri, Aug 13, 2010 at 11:33 AM, OldSkoolMark m...@sublimeslime.comwrote:

 Thought I'd inquire here where perhaps some other dev is having
 similar problems currently.  I've done this before (months ago), and
 as far as I can tell, I'm doing it the same way. My 480x854 24-bit PNG
 screenshots are being scaled/cropped by Market. Same with 480x854
 jpgs. It looks like they're being cropped to 480x800 but of course,
 Market won't let me upload an image with those dimensions. Windows
 explorer confirms that my PNG file is of the proscribed size and bit
 depth.

 The app is Metronome++ if you want to see what the problem looks like
 on Market.

 Do I really need to work around this by providing screenshots with
 margins? As 480x854 is a standard screen size, I am assuming the
 intent is for the screenshot to go edge to edge in both horizontal and
 vertical directions. Perhaps mistakenly ...

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

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

  1   2   >