[android-developers] How i call Localhost file in application

2011-07-18 Thread Ankit Kasliwal
Hello Everyone,
   I put my Handler file in local server desktop machine
i want to access in application
on the place of  *response = CustomHttpClient.executeHttpPost(
http://abc.com/hendler/abc.ashx; , postParameters); *
to test the application locally and solve issue.


Please any one help me.

Thanks in Advance.

-- 

Thanks and Regards,

Ankit Kasliwal
kasliwalankit2...@gmail.com
+91-9300-940-136

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

2011-07-18 Thread Zsombor
I couldn't find a decent alternative to this either. It seems that
ListView can't be extended to somehow get it to display the elements
horizontally. And replicating ListView is a pain too, because it's
using some private apis.

So you either come up with your own HorzontalListView implementation,
or stick with the Gallery / HorizontalScrollView. In case you choose
the first option, don't forget to opensource it :P

On Jul 16, 2:03 pm, bhasker reddy.ba...@gmail.com wrote:
 I am surprised that there is no Horizontal List View in Android. Tried
 using gallery but cannot live with it center element locking feature.
 I dont even see a possibility to get rid of it, either with the API or
 by extending it. Any suggestions?

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


[android-developers] NFC Dynamic UID Read

2011-07-18 Thread Steve McRae
Does anyone know where the dynamic UID/NFCID1 that is presented by the
Nexus S is generated and how to know, on the phone, what it is before
or during its presentation? I have built an application on a point of
sale device that reads the dynamic uid however without the ability to
tie it to a specific phone it is of no use.

Thanks in advance for any help. Steve

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


[android-developers] Re: Eole Survival Update Beta tester needed

2011-07-18 Thread TobyKaos
Someone have played to the beta?

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


[android-developers] how can i know which app is using GPU module

2011-07-18 Thread zhou haitao
 Hi ALl,

Now  I have to know whether GPU module is being used, and which process or
app is using GPU module.
Any idea?

Thanks.

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

[android-developers] Re: Checkbox bug?

2011-07-18 Thread Ali Chousein
Make a bug entry here: http://code.google.com/p/android/issues/list

--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
Cisco Android marketplace (Chosen for Cisco Cius)
https://marketplace.cisco.com/apphq/products/510


On Jul 17, 3:45 pm, Simon Platten simonaplat...@googlemail.com
wrote:
 Whilst building a layout I think I've found a bugin a relative layout:

     CheckBox android:text=File-name
                  android:layout_width=fill_parent
                  android:layout_height=wrap_content
                  android:layout_gravity=left
                  android:id=@+id/chkUse
                  android:textColor=@color/yellow
                 android:textStyle=bold /

 Works find, with the text aligned to the left of the checkbox, however if I
 add a background colour to the checkbox, the text overlays the checkbox:

     CheckBox android:text=File-name
                  android:layout_width=fill_parent
                  android:layout_height=wrap_content
                  android:layout_gravity=left
                  android:id=@+id/chkUse
                  android:background=@color/blue
                  android:textColor=@color/yellow
                 android:textStyle=bold /

 --
 Regards,
 Sy

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

2011-07-18 Thread kamiseq
I ll check that method name im using!
yes it is called because my service is not running and there is no
process for my app!

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


Re: [android-developers] Re: Checkbox bug?

2011-07-18 Thread Romain Guy
This is, unfortunately, working as intended. The position of the checkbox is
defined by the background drawable.

On Mon, Jul 18, 2011 at 1:21 AM, Ali Chousein ali.chous...@gmail.comwrote:

 Make a bug entry here: http://code.google.com/p/android/issues/list

 --
 Ali Chousein
 Geo-Filtered Assistant
 http://geo-filtered-assistant.blogspot.com/
 Cisco Android marketplace (Chosen for Cisco Cius)
 https://marketplace.cisco.com/apphq/products/510


 On Jul 17, 3:45 pm, Simon Platten simonaplat...@googlemail.com
 wrote:
  Whilst building a layout I think I've found a bugin a relative
 layout:
 
  CheckBox android:text=File-name
   android:layout_width=fill_parent
   android:layout_height=wrap_content
   android:layout_gravity=left
   android:id=@+id/chkUse
   android:textColor=@color/yellow
  android:textStyle=bold /
 
  Works find, with the text aligned to the left of the checkbox, however if
 I
  add a background colour to the checkbox, the text overlays the checkbox:
 
  CheckBox android:text=File-name
   android:layout_width=fill_parent
   android:layout_height=wrap_content
   android:layout_gravity=left
   android:id=@+id/chkUse
   android:background=@color/blue
   android:textColor=@color/yellow
  android:textStyle=bold /
 
  --
  Regards,
  Sy

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




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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: (java.lang.NullPointerException at android.widget.ListView.setupChild(ListView.java:1838))I use listview and BaseAdapter

2011-07-18 Thread zatenoi
Thanks for your reply.

I'm working like this.

New a Handler in Activity's onCreate(),and after all things init,I
send msg to Handler on a non-UI thread.When Handler receive a msg,it
update the element or scroll the list by call notifyDataSetChanged and
setSelectionFromTop in Handler's handleMessage(Message msg).

@Override
public void onCreate(Bundle icicle){
super.onCreate(icicle);
...
...
x = new Handler() {
   public void handleMessage(Message msg) {
 switch(msg.what) {
  case :{
 xxx.notifyDataSetChanged();
 }
  break;
  case :{
 xxxsetSelectionFromTop (1,20);
 }
  break;
 }
  }
}

}

In most cases all work well,but sometimes there is the
NullPointerException.

On 7月15日, 上午10时30分, TreKing treking...@gmail.com wrote:
 On Wed, Jul 13, 2011 at 4:45 AM, zatenoi zate...@gmail.com wrote:
  can anyone help me?thanks very much.

 Debug your code. In particular make sure you're not manipulating anything in
 the list on a non-UI thread.

 --- 
 --
 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] Start Intent

2011-07-18 Thread rich friedel
contextWhat is the context of class B? 
If Class B is an activity the context will be Class B

What is the setClass method setting? 
The class that the intent is looking for.

If I want to start yet another activity from inside another class (class C) 
does the context get passed across these classes?
Not exactly... The application context is what it is. Activity (Class) C will 
have its own context.  

Shouldn't the 'this' grab the app's context?
No... in all the OOP i've ever worked in this refers to the instance of 
parent object.

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


[android-developers] Role of the Compatibility Library?

2011-07-18 Thread BHL
Up until 3 minutes ago, I was fairly clear on the role of the Android
Compatibility Library (ACL) -- it was to provide backwards-compatible
clones of stuff that exist for realz only in newer versions of
Android.

However, Roman Nurik just tweeted:

ViewPager and PagerAdapter are in the Compatibility Package r3 as
part of the Android 3.2 SDK release

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

2011-07-18 Thread Romain Guy
It's also for cool APIs that can be useful to all app developers but that we
don't necessarily want to add to the platform.

On Mon, Jul 18, 2011 at 2:29 AM, BHL adsfors...@gmail.com wrote:

 Up until 3 minutes ago, I was fairly clear on the role of the Android
 Compatibility Library (ACL) -- it was to provide backwards-compatible
 clones of stuff that exist for realz only in newer versions of
 Android.

 However, Roman Nurik just tweeted:

 ViewPager and PagerAdapter are in the Compatibility Package r3 as
 part of the Android 3.2 SDK release

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




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

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

2011-07-18 Thread rich friedel
Just because the service is no longer there and the process gone, this does not 
mean onDestroy() was in fact called.

The system can silently kill the service without ever calling onDestroy().

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


[android-developers] regarding Google Maps

2011-07-18 Thread nageswara rao rajana
Hi,

I developed an application using API level 2.1 and installed on
Samsung Galaxy Fit S5670.
The problem is google maps is very slow. So please suggest me the
issue.

Thanking you,
Nagu.

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

2011-07-18 Thread Raghav Sood
Get a faster internet connection?

On Mon, Jul 18, 2011 at 3:43 PM, nageswara rao rajana nagu.raj...@gmail.com
 wrote:

 Hi,

 I developed an application using API level 2.1 and installed on
 Samsung Galaxy Fit S5670.
 The problem is google maps is very slow. So please suggest me the
 issue.

 Thanking you,
 Nagu.

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




-- 
Raghav Sood
http://www.raghavsood.com/
http://wiki.androidappcheck.com/
http://www.telstop.tel/
https://market.android.com/developer?pub=Raghav+Sood

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

[android-developers] uevent handling in user-space

2011-07-18 Thread Hemant
I want to handle uevent in user-space mainly for battery status
changed in my application.
Can this be done using C program?
Can this be done by calling a select() on one of the sysfs which
indicates change in battery voltage?
How Android polls uevents from kernel?

Br/
Hvr

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


[android-developers] Call to requestLayou() after an Animation ends

2011-07-18 Thread Paolo
Hi there!
I'd try to move with Animation a LinearLayout with some stuff inside
when clicking on it. Apply the Animation is pretty simple. I've done
something like this.

//ANIMATION
public static Animation animationTest(int duration) {
Animation anim = new 
TranslateAnimation(Animation.RELATIVE_TO_SELF,
0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF,
0.0f, Animation.RELATIVE_TO_SELF, 1.0f);
anim.setDuration(duration);
Interpolator inter = new DecelerateInterpolator(0.4f);
anim.setInterpolator(inter);

anim.setAnimationListener(new AnimationListener(){

@Override
public void onAnimationEnd(Animation animation) {
changeLayoutPosition(layout);

}

});

return anim;

}


Than I want to be able to click again the layout which is moved to an
other position, so as I read in many topic, I have to change the
layout, so I've done...

public static void changeLayoutPosition(LinearLayout layout) {
LinearLayout.LayoutParams params = new
LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, 100);
params.topMargin = layout.getHeight();
layout.setLayoutParams(params);
layout.requestLayout();
   }


It works! But at the end of the animation, probably when requestLayout
is called, the LinearLayout produces a sort of artefact, as if it was
drawn once again. Is it possible? Why?

I expected to see the animation that works normally and to change the
layout position in background without to be draw again... Am I wrong
something? Is there some tricks to avoid this kind of flickering?

Thanks in advance

Paolo

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

2011-07-18 Thread Manuel R. Ciosici
Does anyone know anything about when will Android support the Java 7
APIs?

Manuel

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

2011-07-18 Thread Durgadoss Ramanathan
Hi,

Android has a UEvent Listener in the Application Framework.
This receives the UEvent from the Kernel.

For BatteryStatus:
You may want to look at
frameworks/base/services/java/com/android/server/BatteryService.java
Similarly, also at BatteryServer.cpp(corresponding JNI..)

Basically the battery service gets info from the JNI and packs them into an
intent
and broadcasts it. Intent : Action_Battery_Changed
You can register to listen this intent and extract every little detail from
this :)

BTW, Nothing stops you from writing a C program that can catch
the UEvents. You have to write a Netlink Socket receiver..in order to do
that.

Just Curious, Why you want to do that in C ?

[If you are Ok to that in Java, then its very simple  easy..]

On Mon, Jul 18, 2011 at 4:45 PM, Hemant hemant.ramd...@gmail.com wrote:

 I want to handle uevent in user-space mainly for battery status
 changed in my application.
 Can this be done using C program?
 Can this be done by calling a select() on one of the sysfs which
 indicates change in battery voltage?
 How Android polls uevents from kernel?

 Br/
 Hvr

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




-- 
Regards
Durgadoss

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: ActionBar/Mode Style Regressions with SDK 12r2 and 13r1

2011-07-18 Thread clemp6r
How did you fixed this?

On Jul 16, 11:18 pm, Jake Wharton jakewhar...@gmail.com wrote:
 I managed to fix these up fairly easily. I can only assume the removed
 styles were not meant to be public yet and that the styling of action modes
 is being limited to provide a more consistent experience.

 The missing attributes definitely need to be on the API differences report
 at the very least.

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

2011-07-18 Thread homerz
ok, sorry.. I should have shown the code too...
anyway thankyou  for your reply..


public class CreateDraftActivity extends TabActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);
setContentView(R.layout.creazione_rosa);

 final TabHost
tabHost=(TabHost)findViewById(android.R.id.tabhost);

TabSpec specP = tabHost.newTabSpec(Portieri);
specP.setContent(R.id.tabPortieri);
specP.setIndicator(Portieri);

TabSpec specD = tabHost.newTabSpec(Difensori);
specD.setContent(R.id.tabDifensori);
specD.setIndicator(Difensori);

TabSpec specC = tabHost.newTabSpec(Centrocampisti);
specC.setContent(R.id.tabCentrocampisti);
specC.setIndicator(Centrocampisti);

TabSpec specA = tabHost.newTabSpec(Attaccanti);
specA.setContent(R.id.tabAttaccanti);
specA.setIndicator(Attaccanti);

tabHost.addTab(specP);
tabHost.addTab(specD);
tabHost.addTab(specC);
tabHost.addTab(specA);

// These fill the spinners
fillSpnGoalkeepers();
fillSpnDefenders();
fillSpnMidfielders();
fillSpnForwarders();

}


On 15 Lug, 20:52, Mark Murphy mmur...@commonsware.com wrote:
 You only have one tab. Yourtabs, in this design, are the immediate
 children of your FrameLayout. You have one such child -- a
 LinearLayout.







 On Fri, Jul 15, 2011 at 10:43 AM, homerz dgel...@gmail.com wrote:
  Hi everybody,
  I'm building an application with 4tabs; each tab has a scrollview
  with some textview, some spinners and 2 buttons...

  my problem is that only the current tab is displayed, when I click on
  othertabs, nothing happens...tabsdon't switch and no error is
  logging

  I manage alltabsin just one activity, but I've tried to set an
  activity for each tab, with their own layout xml, but the problem was
  the same

  If I disable thescrollviews, I can see alltabs

  Thanks to anyone who will help me :)

  here my layout xml:

  TabHost android:layout_width=match_parent
                 android:layout_height=match_parent
         android:id=@android:id/tabhost
                 xmlns:android=http://schemas.android.com/apk/res/android;

         TabWidget android:layout_width=match_parent
                    android:layout_height=wrap_content
                    android:id=@android:id/tabs/
      FrameLayout android:layout_width=match_parent
                           android:layout_height=match_parent
                           android:id=@android:id/tabcontent
     !-- TAB PORTIERI --
    LinearLayout android:id=@+id/tabPortieri
                           android:layout_width=match_parent
                           android:layout_height=match_parent
                           android:orientation=vertical
                           
  xmlns:android=http://schemas.android.com/apk/res/android;
         ScrollView android:id=@+id/scroll1
                    android:layout_height=match_parent
                    android:layout_width=match_parent
                 LinearLayout android:layout_width=match_parent
                                   android:layout_height=wrap_content
                                   android:id=@+id/bodyPortieri
                                   android:orientation=vertical
                                   android:paddingTop=60px

                         TextView android:layout_width=match_parent
                                   android:layout_height=50px
                                   android:text=Scegli 3 portieri:
                                   android:textSize=20dp
                                   android:textStyle=bold
                                   android:id=@+id/txtPortieri/

                 TextView android:id=@+id/lblGk1
                                   android:layout_width=wrap_content
                                   android:layout_height=wrap_content
                                   android:text=Portiere #1:
                                   android:layout_alignParentLeft=true/
                 Spinner android:id=@+id/spnGk1
                                  android:layout_height=wrap_content
                                  android:layout_width=match_parent
                                  android:drawSelectorOnTop = true/

                 TextView android:id=@+id/lblGk2
                                   android:layout_width=wrap_content
                                   android:layout_height=wrap_content
                                   android:text=Portiere #2:
                                   android:layout_alignParentLeft=true/
                 Spinner android:id=@+id/spnGk2
                                  

Re: [android-developers] Re: ActionBar/Mode Style Regressions with SDK 12r2 and 13r1

2011-07-18 Thread Jake Wharton
Removed references to actionModeStyle and actionModePopupWindowStyle. It
would seem the only customization options for action modes going
forward is their
background 
imagehttp://developer.android.com/reference/android/R.attr.html#actionModeBackground.
This is the only true regression in functionality, not that many people (if
any) used it.

For the list navigation I changed the parent style to just be
Widget.Holo.Spinner and Widget.Holo.Light.Spinner. There were no customized
attributes in the Widget.Holo.Spinner.DropDown.ActionBar style anyway.

In my values/ folder I changed all of the tab-related styles to use
Widgetas their parent. The three individual styles previously used for
tab styling
did not have any customized attributes and inherited from Widget themselves.
I also added a values-v13/ folder which contains only these three tab styles
for that instead inherit from the new Widget.Holo.ActionBar.Tab___ for
future compatibility.

---
Jake Wharton
http://about.me/jakewharton


On Mon, Jul 18, 2011 at 7:59 AM, clemp6r clemplant...@gmail.com wrote:

 How did you fixed this?

 On Jul 16, 11:18 pm, Jake Wharton jakewhar...@gmail.com wrote:
  I managed to fix these up fairly easily. I can only assume the removed
  styles were not meant to be public yet and that the styling of action
 modes
  is being limited to provide a more consistent experience.
 
  The missing attributes definitely need to be on the API differences
 report
  at the very least.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Draw an arrow on map, which always points to the destination

2011-07-18 Thread crem
Hello,
Im trying to realize the following:
I want to draw an arrow as an overlay on my map, which always points
to a destination point on the map. So the arrow tells the user which
direction he has to take to reach the destination.
Whats the common approach for this?
hope you can help me.

greets

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Draw an arrow on map, which always points to the destination

2011-07-18 Thread rich friedel
You are wanting to research augmented reality.

http://www.google.com/#q=android+development+augmented+reality

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

2011-07-18 Thread kamiseq
ok, in on destroy im sending new Notification with different icon (ok
this wasnt obvious from the code I posted before):

final Notification notification = new Notification(icon, notify_title,
when);
//IM SURE THE ICON IS CHANGED

final PendingIntent contentIntent = PendingIntent.getActivity(this, 0,
new Intent(), PendingIntent.FLAG_UPDATE_CURRENT);
notification.setLatestEventInfo(this, stopping_title, stopping_text,
contentIntent);
//notification.flags = Notification.FLAG_ONLY_ALERT_ONCE |
Notification.FLAG_AUTO_CANCEL;

mNotificationManager.notify(SERVICE_STARTED_NOTIFICATION_ID,
notification);
//   mNotificationManager.cancelAll();

and I can see this new icon, but when I click on the notification when
I expand status bar it is not clearing itself :/
this is weird right?

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


[android-developers] why subview doesn`t appear

2011-07-18 Thread asdf
i create a custom viewgroup  extends ViewGroup,and only override
onLayout method. in the method, i call layout method for subview.And
them call addView method of the new created viewgroup, and add a
subview. but the subview doesn`t appear. when i check it using
hierarchyviewer, i  saw the mTop, mRight, mBottom and mLeft are all
zero. i think i must have do something wrong in the custom viewgroup.
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] How to stop scrolling TabWidget with keyboard ?

2011-07-18 Thread imran ali
Hi All,
In one on my application i am using TabWidget,
inside activity i have EditText when i have been clicking on EditText
then TabWidget has also been scrolling
up with keyboard that i don't want this.

Note:- I observed when i have been using ScrollView in Activity then i
am facing problem,
without scrollview it is working fine.

if any body have solution please reply this post.


Regards
Imran Ali

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ActionBar/Mode Style Regressions with SDK 12r2 and 13r1

2011-07-18 Thread dmitry.lukas...@gmail.com
How to change android:searchViewSearchIcon now?

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

[android-developers] How to check memory leaks

2011-07-18 Thread Suraj Gopalakrishnan
Hi All,

I want to know if there is any way by which i can find out the memory
leaks(heap dump) in eclipse?
I have tried Memory Analyzer Tool (eclipse plug-in).. But I am having hard
time in figuring out what to do..

Does anyone know any simpler method?

-- 
Best Regards,
Suraj Gopalakrishnan

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

[android-developers] Need a slight clarification on Licensing Library instructions

2011-07-18 Thread Jim Graham
Referring to my previous post on this issue, there is a sentence
in the Developer's Guide document on application licensing that
points people to a section called  .  That caused me, at least,
a bit of confusion.

I'm past that now.  I finally saw (I'd read the text before, but
the critical bits were skipped over by my tumor/surgery-damaged
brain) the text that says that you can either add the library, or
add all of the code that the docs list in the next sections.  I
chose to add the library, itself.  The dev guide also mentions
that you need to store your copy of the library outside of the
SDK, as updates to the SDK will trash your configuration updates
to the library.  But where is the code in the actual library that
you modify?

I realize that there is code that needs to be configured, either
way.  That's obvious, and has been all along.

HOWEVER, the dev guide only covers the code to configure if you
are copying the library source code to your app's main activity,
and not what you need to configure within the library (if you
include the libarary itself, as a library, not source).

So, would someone please fill in that missing bit of information
to help clear this up?

Thanks,
   --jim

-- 
73 DE N5IAL (/4)| DMR: So fsck was originally called
spooky1...@gmail.com|  something else.
 Running FreeBSD 7.0  | Q:   What was it called?
ICBM / Hurricane:   | DMR: Well, the second letter was different.
   30.44406N 86.59909W  |-- Dennis M. Ritchie, Usenix, June 1998.

Point Lobos Photography Set 1 (Photo-posters):  http://jdgapps.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: ActionBar/Mode Style Regressions with SDK 12r2 and 13r1

2011-07-18 Thread dmitry.lukas...@gmail.com
I've found only one way to change default search view icon:-) But this is 
terrible solution

SearchView sv = new SearchView(mActivity);
sv.setOnQueryTextListener(mOnSearchQueryTextListener);
menuItemSearch.setActionView(sv);
searchViewChangeHack(sv);

private static int sViewIndex = 0;

private void searchViewChangeHack(ViewGroup sv) {
for (int i = 0; i  sv.getChildCount(); i++) {
View v = sv.getChildAt(i);
if (v instanceof ViewGroup) {
searchViewChangeHack((ViewGroup)v);
} else if (v instanceof ImageView) {
if (sViewIndex == 0 || sViewIndex == 1) {
((ImageView) 
v).setImageResource(R.drawable.common_bar_search);
}
sViewIndex++;
}
}
}

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

2011-07-18 Thread TreKing
On Mon, Jul 18, 2011 at 7:53 AM, kamiseq kami...@gmail.com wrote:

 and I can see this new icon, but when I click on the notification when
 I expand status bar it is not clearing itself :/
 this is weird right?


Shouldn't make a difference, but get rid of the alert once flag and just use
the auto cancel flag.

-
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: uevent handling in user-space

2011-07-18 Thread Hemant
Hi,

Thanks for your reply.
Well I want to write in C because I know only that..
I wrote a small program based on netlink to receive uevent and it
works fine. But now I am a bit confused because I am getting all
events and not the only one.
How can I parse an uevent message? Is there any data structure for it?

If I want to do it in Java, then can you give me an example of it?

Thanks/
Hvr

On Jul 18, 4:57 pm, Durgadoss Ramanathan r.durgad...@gmail.com
wrote:
 Hi,

 Android has a UEvent Listener in the Application Framework.
 This receives the UEvent from the Kernel.

 For BatteryStatus:
 You may want to look at
 frameworks/base/services/java/com/android/server/BatteryService.java
 Similarly, also at BatteryServer.cpp(corresponding JNI..)

 Basically the battery service gets info from the JNI and packs them into an
 intent
 and broadcasts it. Intent : Action_Battery_Changed
 You can register to listen this intent and extract every little detail from
 this :)

 BTW, Nothing stops you from writing a C program that can catch
 the UEvents. You have to write a Netlink Socket receiver..in order to do
 that.

 Just Curious, Why you want to do that in C ?

 [If you are Ok to that in Java, then its very simple  easy..]





 On Mon, Jul 18, 2011 at 4:45 PM, Hemant hemant.ramd...@gmail.com wrote:
  I want to handle uevent in user-space mainly for battery status
  changed in my application.
  Can this be done using C program?
  Can this be done by calling a select() on one of the sysfs which
  indicates change in battery voltage?
  How Android polls uevents from kernel?

  Br/
  Hvr

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

 --
 Regards
 Durgadoss- 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] SDK Tools r12 causing aapt to fail

2011-07-18 Thread William Ferguson
Since updating my SDK to r12, an existing project (with zero code
changes) now fails during aapt generation with:

[INFO] C:\Dev\Android-sdk\platform-tools\aapt.exe [package, -m, -J, C:
\Source\android\Jumblee\target\generated-sources\r, -M, C:\Source
\android\Jumblee\target\filtered-manifest\AndroidManifest.xml, -S, C:
\Source\android\Jumblee\target\generated-sources\combined-resources
\res, --auto-add-overlay, -I, C:\Dev\Android-sdk\platforms
\android-10\android.jar]

[INFO] C:\Source\android\Jumblee\target\generated-sources\combined-
resources\res\values\theme.xml:16: error: Error retrieving parent for
item: No resource found that matches the given name
'android:WindowTitle'.


The relevant lines from the resource file are:

!-- Set the theme for the window title --
!-- NOTE: setting android:textAppearance to style defined above --

style name=CustomWindowTitle parent=android:WindowTitle
 item name=android:textAppearance@style/
CustomWindowTitleText/item
/style

Has anyone seem something similar?
Or better still know wtf is going on?

William

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

2011-07-18 Thread TreKing
On Mon, Jul 18, 2011 at 4:31 AM, Romain Guy romain...@android.com wrote:

 It's also for cool APIs that can be useful to all app developers but that
 we don't necessarily want to add to the platform.


Out of curiosity, why would you not want to add cool APIs that can be
useful to all app developers to the platform?

-
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] regarding Google Maps

2011-07-18 Thread TreKing
On Mon, Jul 18, 2011 at 5:13 AM, nageswara rao rajana nagu.raj...@gmail.com
 wrote:

 The problem is google maps is very slow. So please suggest me the issue.


I suggest the issue is you have not optimized your code. Try that.

-
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] current location in google map using android

2011-07-18 Thread arun kumar
Hello all,
 i am developing one application using google map. i am struggling to
display current location in google map. i refer google  all coding have
using static lat and lang or DDMS. i want without using static lat and lang
and DDMS. Please help me

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

[android-developers] Re: NFC Secure Element

2011-07-18 Thread Fernando Miguélez Palomo
Hi Nemik,

I just applied your patches to 2.3.4_r1 version (I had to change them a 
little bit) but card emulation does not seem to work (an external reader 
detects nothing). Could you please tell us what tag of AOSP gingerbread did 
you use?

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] current location in google map using android

2011-07-18 Thread TreKing
On Mon, Jul 18, 2011 at 10:18 AM, arun kumar hariarun2...@gmail.com wrote:

 Please help me


Google MyLocationOverlay

-
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] Fwd: image view listener

2011-07-18 Thread arun kumar
Thankyou gaurav now its working for me.

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

Re: [android-developers] Draw an arrow on map, which always points to the destination

2011-07-18 Thread TreKing
On Mon, Jul 18, 2011 at 7:25 AM, crem bernd.warm...@gmail.com wrote:

 Whats the common approach for this?


Math, particularly trigonometry.

-
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: Checkbox bug?

2011-07-18 Thread Simon Platten

Thank you, will do!

On 18/07/2011 9:21 AM, Ali Chousein wrote:

Make a bug entry here: http://code.google.com/p/android/issues/list

--
Ali Chousein
Geo-Filtered Assistant
http://geo-filtered-assistant.blogspot.com/
Cisco Android marketplace (Chosen for Cisco Cius)
https://marketplace.cisco.com/apphq/products/510


On Jul 17, 3:45 pm, Simon Plattensimonaplat...@googlemail.com
wrote:

Whilst building a layout I think I've found a bugin a relative layout:

 CheckBox android:text=File-name
  android:layout_width=fill_parent
  android:layout_height=wrap_content
  android:layout_gravity=left
  android:id=@+id/chkUse
  android:textColor=@color/yellow
 android:textStyle=bold /

Works find, with the text aligned to the left of the checkbox, however if I
add a background colour to the checkbox, the text overlays the checkbox:

 CheckBox android:text=File-name
  android:layout_width=fill_parent
  android:layout_height=wrap_content
  android:layout_gravity=left
  android:id=@+id/chkUse
  android:background=@color/blue
  android:textColor=@color/yellow
 android:textStyle=bold /

--
Regards,
Sy


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

2011-07-18 Thread nemik
Fernando, the patches were against 2.3.1 or 2.3.2 I believe, a long
time ago (relatively). I have not had a chance to revisit this but I'm
fairly sure it will not work on 2.3.4+.

I'm sure some of the header defines have changed as well but try to re-
enable the ones I had if they exist? Good luck.

On Jul 18, 10:26 am, Fernando Miguélez Palomo
fernando.migue...@gmail.com wrote:
 Hi Nemik,

 I just applied your patches to 2.3.4_r1 version (I had to change them a
 little bit) but card emulation does not seem to work (an external reader
 detects nothing). Could you please tell us what tag of AOSP gingerbread did
 you use?

 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] Editview when click an listview has to appear in that layout only.......

2011-07-18 Thread arun kumar
   HI
  am having an textview placed at the bottom of the layout...when i
click on the projects an list has to appear (demo projects,sem
projects,All projects)similarly when i click on the seminar another list
has to appear related to seminar
II defined textview in the xml file and i placed the textviews at
the bottom of the layout...in java file i wrote onclick listener when i
click on projects a small listview has to appeear in that layout
only




  Public class WelcomePage extends Activity {

@protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
 setContentView(R.layout.welcome);


 final TextView tv1=( TextView)findViewById(R.id.t1);
 tv1.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub

String[] names = new String[] { DemoProjects, SemProjects, 
AllProjects,
};

this.setListAdapter(new 
ArrayAdapterString(this,

android.R.layout.simple_list_item_1, names));


}
});
 final TextView tv2=( TextView)findViewById(R.id.t2);
 tv2.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
}
});
 final TextView tv3=( TextView)findViewById(R.id.t3);
 tv3.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// TODO Auto-generated method stub
 }
});
 }

}





LinearLayout 
xmlns:android=*http://schemas.android.com/apk/res/android*android:orientation
=*vertical* android:layout_width=*fill_parent* android:layout_height=*
fill_parent* android:id=*@+id/ll* android:background=*@drawable/circle6*


 LinearLayout
android:layout_alignParentBottom=*true*android:layout_height
=*wrap_content*
android:layout_width=*fill_parent*android:orientation
=*horizontal* android:id=*@+id/wln1*
 TextView android:text=*Projects*
android:id=*@+id/t1*android:layout_height
=*wrap_content* android:layout_width=*115dip* /
 TextView android:text=*Seminars*
android:id=*@+id/t2*android:layout_height
=*wrap_content* android:layout_width=*105dip*/
 TextView android:text=*Investments*
android:id=*@+id/t3*android:layout_height
=*wrap_content*   android:layout_width=*wrap_content* /
  /LinearLayout

/LinearLayout



Thankyou
arun

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

2011-07-18 Thread Fernando Miguélez Palomo
Yes I know. I revised them manually and adapted to 2.3.4_r1. However I must 
be missing something. 

I see the Secure Element SMX selected, the embedded Mifare card is not 
detected by means of external readers. The external reader detects a memory 
card but it can not read the CSN (UID). It seems as if the card emulation 
were enabled but then disabled. 

This is my init sequence as seen by logcat: http://pastebin.com/XpyLUGaJ

I can see the following sequence. So I assume the embedded secure element is 
enabled:

I/NFC JNI (  198): NFC Initialized
D/NfcService(  198): NFC-EE routing ON
D/NFC JNI (  198): **  Select Secure Element **
D/NFC JNI (  198): phLibNfc_SE_SetMode(0x00abcdef, ...)
D/NFC JNI (  198): phLibNfc_SE_SetMode() returned 0x000d[NFCSTATUS_PENDING]

What is the correct message sequence?

I attach your patches modified to compile against 2.3.4_r1. Someone could 
find them useful. By the way in this tag Nfc is disabled by default. So the 
patch device_base_2_3_4_r1.diff must be also applied.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=endiff -urBNp libnfc-nxp.orig/inc/phNfcConfig.h libnfc-nxp/inc/phNfcConfig.h
--- libnfc-nxp.orig/inc/phNfcConfig.h	2011-07-18 18:15:27.215614224 +0200
+++ libnfc-nxp/inc/phNfcConfig.h	2011-07-18 18:20:33.823504089 +0200
@@ -286,6 +286,7 @@
 
 #ifndef NXP_UICC_RD_RIGHTS
 #define NXP_UICC_RD_RIGHTS  0x00U
+//#define NXP_UICC_RD_RIGHTS  0x0FU
 #endif 
 
 
@@ -367,7 +368,7 @@
 #define RECONNECT_SUPPORT
 
 /** Macro to Enable the Card Emulation Feature */
-/* #define HOST_EMULATION */
+#define HOST_EMULATION
 
 /** Macro to Enable the Download Mode Feature */
 #define FW_DOWNLOAD
diff -urBNp Nfc.orig/jni/com_android_nfc_NativeNfcManager.cpp Nfc/jni/com_android_nfc_NativeNfcManager.cpp
--- Nfc.orig/jni/com_android_nfc_NativeNfcManager.cpp	2011-07-18 18:03:05.825613188 +0200
+++ Nfc/jni/com_android_nfc_NativeNfcManager.cpp	2011-07-18 10:50:27.665620770 +0200
@@ -341,6 +341,7 @@ static int nfc_jni_initialize(struct nfc
/* == CONFIGURE DRIVER === */
 
TRACE(phLibNfc_Mgt_ConfigureDriver(0x%08x, 0x%08x), gDrvCfg.nClientId, gDrvCfg.nLinkType);
+   LOGD(phLibNfc_Mgt_ConfigureDriver(0x%08x, 0x%08x), gDrvCfg.nClientId, gDrvCfg.nLinkType);
REENTRANCE_LOCK();
status = phLibNfc_Mgt_ConfigureDriver(gDrvCfg, gHWRef);
REENTRANCE_UNLOCK();
@@ -364,6 +365,7 @@ static int nfc_jni_initialize(struct nfc
/* == INITIALIZE === */
 
TRACE(phLibNfc_Mgt_Initialize());
+   LOGD(phLibNfc_Mgt_Initialize());
REENTRANCE_LOCK();
status = phLibNfc_Mgt_Initialize(gHWRef, nfc_jni_init_callback, (void *)cb_data);
REENTRANCE_UNLOCK();
@@ -373,6 +375,7 @@ static int nfc_jni_initialize(struct nfc
   goto clean_and_return;
}
TRACE(phLibNfc_Mgt_Initialize returned 0x%04x[%s], status, nfc_jni_get_status_name(status));
+   LOGD(phLibNfc_Mgt_Initialize returned 0x%04x[%s], status, nfc_jni_get_status_name(status));
   
/* Wait for callback response */
if(sem_wait(cb_data.sem))
@@ -433,6 +436,7 @@ static int nfc_jni_initialize(struct nfc
 
// Update EEPROM settings
TRACE(**  START EEPROM SETTINGS UPDATE **);
+   LOGD(**  START EEPROM SETTINGS UPDATE **);
for (i = 0; i  EEDATA_SETTINGS_NUMBER; i++)
{
   gInputParam.buffer = EEDATA_Settings[i];
@@ -440,6 +444,7 @@ static int nfc_jni_initialize(struct nfc
   gOutputParam.buffer = resp;
 
   TRACE( EEPROM SETTING: %d, i);
+  LOGD( EEPROM SETTING: %d, i);
   REENTRANCE_LOCK();
   status = phLibNfc_Mgt_IoCtl(gHWRef, NFC_MEM_WRITE, gInputParam, gOutputParam, nfc_jni_ioctl_callback, (void *)cb_data);
   REENTRANCE_UNLOCK();
@@ -461,6 +466,7 @@ static int nfc_jni_initialize(struct nfc
   }
}
TRACE(**  ALL EEPROM SETTINGS UPDATED  **);
+   LOGD(**  ALL EEPROM SETTINGS UPDATED  **);
 
/* == SECURE ELEMENTS === */
 
@@ -511,6 +517,7 @@ static int nfc_jni_initialize(struct nfc
 
/* LLCP Params */
TRACE(**  NFC Config Mode NFCIP1 - LLCP **);
+   LOGD(**  NFC Config Mode NFCIP1 - LLCP **);
LlcpConfigInfo.miu= nat-miu;
LlcpConfigInfo.lto= nat-lto;
LlcpConfigInfo.wks= nat-wks;
@@ -529,6 +536,8 @@ static int nfc_jni_initialize(struct nfc
}
TRACE(phLibNfc_Mgt_SetLlcp_ConfigParams returned 0x%04x[%s], status,
  nfc_jni_get_status_name(status));
+   LOGD(phLibNfc_Mgt_SetLlcp_ConfigParams returned 0x%04x[%s], status,
+ nfc_jni_get_status_name(status));
 
/* Wait for callback response */
if(sem_wait(cb_data.sem))
@@ -602,6 +611,7 @@ void nfc_jni_restart_discovery_locked(st
struct 

[android-developers] Importing JDBC driver

2011-07-18 Thread Boozel
Hi
I'm trying to import the sql server jdbc driver into my project.
I right clicked my project and clicked import selected the sqljdbc4.jar file 
and imported it into the src directory.
My code is below but when it gets to Class.forName(driver).newInstance(); it 
gives an error 
java.lang.ClassNotFoundException: 
com.microsoft.sqlserver.jdbc.SQLServerDriver.class
What am i doing wrong? did I import it wrong?
if i type com.microsoft.sqlserver.jdbc.SQLServerDriver.class into the ide it 
doesnt complain so the file is there.
Any help would be great.
Thanks

package com.boozel.mobiletrend;

import java.sql.Connection;
import java.sql.DriverManager;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.TextView;
//import com.microsoft.sqlserver.jdbc.*;

public class MobileTrendActivity extends Activity {
SharedPreferences sharedPreferences;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

sharedPreferences = getSharedPreferences(MobileTrend, 0);

}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.xml.mainmenu, menu);
return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle item selection
switch (item.getItemId()) {
case R.id.settings:
Intent myIntent = new Intent(MobileTrendActivity.this, 
Settings.class);
MobileTrendActivity.this.startActivity(myIntent);
return true;
case R.id.connect:
query();
return true;
default:
return super.onOptionsItemSelected(item);
}
}

 public void query()
 { 
 Log.i(MobileTrend,MySQL Connect Example.);
 Connection conn = null;
 String url = 
sharedPreferences.getString(url,jdbc:microsoft:sqlserver://localhost:1433);
 outputToConsole(Using URL: +url);
 String dbName = sharedPreferences.getString(dbname,jdbctutorial);
 outputToConsole(Using DB Name: +dbName);
 String driver = 
sharedPreferences.getString(driver,com.microsoft.sqlserver.jdbc.SQLServerDriver);
 outputToConsole(Using Driver: +driver);
 String userName = sharedPreferences.getString(username,root);
 outputToConsole(Using UserName: +userName);
 String password = sharedPreferences.getString(password,root);
 outputToConsole(Using Password: +password);
 try {
 outputToConsole(Attempting to connect...);
 Class.forName(driver).newInstance();
 //test = com.microsoft.sqlserver.jdbc.SQLServerDriver.class;
 outputToConsole(Driver Instance Created);
 String connString = url +
   ;databaseName=+dbName+;user=+userName+;password=+password+;;
 outputToConsole(Connection String: +connString);
 conn = DriverManager.getConnection(connString);
 //conn = DriverManager.getConnection(url+dbName,userName,password);
 outputToConsole(Connected to the database);
 conn.close();
 outputToConsole(Disconnected from database);
  } catch (Exception e) 
  { outputToConsole(ERROR: +e);
  e.printStackTrace();
  }
 }

 public void outputToConsole(String message)
 {
 TextView tv = (TextView)findViewById(R.id.output);
 tv.append(message+\n);
 Log.i(MobileTrend,message);
 }
 
 
}

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

[android-developers] How to develop search functionality like search app

2011-07-18 Thread Narendra Bagade
-- 
Regards,
Narendra
.

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

2011-07-18 Thread Boozel
Never mind i found a solution here
http://gerardnico.com/wiki/ide/eclipse/oracle

Thanks

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

[android-developers] Re: NFC Secure Element

2011-07-18 Thread Fernando Miguélez Palomo
For convenience I post the filtered NFC related I can see after 
initialization. As I said the card is detected on reader but only after 
phone restarts (however it can not read any UID). If I approach it latter it 
is not recognized.

07-18 17:01:54.800: DEBUG/NFC JNI(283): NFC Service : loading JNI
07-18 17:01:54.847: INFO/NfcService(283): Starting NFC service
07-18 17:01:54.992: DEBUG/NFC JNI(283):  Set NFC DISCOVERY A to 1
07-18 17:01:54.992: DEBUG/NFC JNI(283):  Set NFC DISCOVERY B to 1
07-18 17:01:54.992: DEBUG/NFC JNI(283):  Set NFC DISCOVERY F to 1
07-18 17:01:54.992: DEBUG/NFC JNI(283):  Set NFC DISCOVERY 15693 to 1
07-18 17:01:54.992: DEBUG/NFC JNI(283):  Set NFC DISCOVERY 15693 to 1
07-18 17:01:55.089: DEBUG/NFC JNI(283): phLibNfc_Mgt_Initialize returned 
0x000d[NFCSTATUS_PENDING]
07-18 17:01:55.113: DEBUG/NFC JNI(283): NFC client started
07-18 17:01:55.250: DEBUG/NFC JNI(283): NFC capabilities: HAL = 8150100, FW 
= a70414, HW = 620003, Model = 0, HCI = 1, Full_FW = 104, FW Update Info = 0
07-18 17:01:55.582: DEBUG/NFC JNI(283): phLibNfc_SE_SetMode() returned 
0x000d[NFCSTATUS_PENDING]
07-18 17:01:55.597: DEBUG/NFC JNI(283): **  NFC Config Mode NFCIP1 - 
LLCP **
07-18 17:01:55.597: DEBUG/NFC JNI(283): phLibNfc_Mgt_SetLlcp_ConfigParams 
returned 0x000d[NFCSTATUS_PENDING]
07-18 17:01:55.644: INFO/NFC JNI(283): NFC Initialized
07-18 17:01:55.644: DEBUG/NfcService(283): NFC-EE routing ON
07-18 17:01:55.644: DEBUG/NFC JNI(283): phLibNfc_SE_SetMode() returned 
0x000d[NFCSTATUS_PENDING]
07-18 17:01:55.664: DEBUG/NfcService(283): NFC-C discovery OFF
07-18 17:01:55.664: DEBUG/NFC JNI(283): **  Stop NFC Discovery **
07-18 17:01:55.746: DEBUG/NFC JNI(283): phLibNfc_Llcp_Socket() returned 
0x[NFCSTATUS_SUCCESS]
07-18 17:01:55.750: DEBUG/NFC JNI(283): phLibNfc_Llcp_Bind() returned 
0x[NFCSTATUS_SUCCESS]
07-18 17:01:55.750: DEBUG/NFC JNI(283): phLibNfc_Llcp_Listen() returned 
0x[NFCSTATUS_SUCCESS]

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

2011-07-18 Thread Romain Guy
Because APIs that we integrate in the platform must be forever maintained
and cannot be changed ever. This adds burden to the Android team and it's
less flexible for you because we need to maintain backward compatibility. It
also adds bloat to the platform. A good example of a widget that should
never have been in the platform is the sliding drawer. It made sense when we
added it because our UI was using it, and developers were asking for it, but
a couple of years later it is barely used anymore. It should have been in an
external library.

On Mon, Jul 18, 2011 at 7:16 AM, TreKing treking...@gmail.com wrote:

 On Mon, Jul 18, 2011 at 4:31 AM, Romain Guy romain...@android.com wrote:

 It's also for cool APIs that can be useful to all app developers but that
 we don't necessarily want to add to the platform.


 Out of curiosity, why would you not want to add cool APIs that can be
 useful to all app developers to the platform?


 -
 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




-- 
Romain Guy
Android framework engineer
romain...@android.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] Samsung Galaxy Tab as a development target?

2011-07-18 Thread petter
I was planning on getting a Galaxy Tab as a development target for
testing my apps etc. But I noticed that the device lacks a USB
connector. How can I connect to the Tab using adb? Can I run adb over
WLAN?

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

2011-07-18 Thread TreKing
Makes sense - thanks!

-
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: SDK Tools r12 causing aapt to fail

2011-07-18 Thread teo2k
Same here... Can't figure out why



On Jul 18, 3:16 pm, William Ferguson william.ferguson...@gmail.com
wrote:
 Since updating my SDK to r12, an existing project (with zero code
 changes) now fails during aapt generation with:

 [INFO] C:\Dev\Android-sdk\platform-tools\aapt.exe [package, -m, -J, C:
 \Source\android\Jumblee\target\generated-sources\r, -M, C:\Source
 \android\Jumblee\target\filtered-manifest\AndroidManifest.xml, -S, C:
 \Source\android\Jumblee\target\generated-sources\combined-resources
 \res, --auto-add-overlay, -I, C:\Dev\Android-sdk\platforms
 \android-10\android.jar]

 [INFO] C:\Source\android\Jumblee\target\generated-sources\combined-
 resources\res\values\theme.xml:16: error:Error retrieving parent foritem: No 
 resource found that matches the given name
 'android:WindowTitle'.

 The relevant lines from the resource file are:

     !-- Set the theme for the window title --
     !-- NOTE: settingandroid:textAppearance to style defined above --

     style name=CustomWindowTitle parent=android:WindowTitle
          item name=android:textAppearance@style/
 CustomWindowTitleText/item
     /style

 Has anyone seem something similar?
 Or better still know wtf is going on?

 William

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


[android-developers] Re: How to know what internal process runs an application

2011-07-18 Thread elDoudou
Thank you Diane.

I may have a problem with my design, but if I'm wrong, I'd be
delighted to be well guided.

I would like my application to initialize a certain way when it is
started with an Activity (for instance, I want to set up some caching
stuff), whereas when launched via a Service, I do not need it to be
initialized that way. The solution that I have found so far is to
override the Application.onCreate() method, so as to be notified
every time the application process starts, and quick-initialize some
stuff.

I have declared two android:processes because I thought that it
might be possible to distinguish the cause of the application process
start, but if you say that it is not possible to determine the
android:process responsible for the start of the process, how can I
solve my problem, please?

Do you have in mind another design pattern which enables the
application to be notified at startup, whatever Activity,
BroadcastReceiver, Service causes its process to start so as to
initialize some stuff, and to distinguish a specific Service where no
initialization is supposed to be run, please?

I would be very grateful to the person who is able to unblock me. And
please, do not tell me that I have a design problem eventually ;)

Regards,
Édouard


On 14 juil, 20:05, Dianne Hackborn hack...@android.com wrote:
 Sorry, there is no way to know.  Processes are basically anonymous
 containers in which to run code.  If you are needing to distinguish them,
 you have a problem in your design.

 On Tue, Jul 12, 2011 at 1:43 AM, elDoudou 
 the.edouard.merc...@gmail.comwrote:









  Hello Doug and thank you.

  The process id does not indicate the Android declared process in the
  AndroidManifest.xml file, unfortunately. What I need to know is the
  android:process which causes the process to start. If I declare a
  service in the manifest with a specific process name (tag
  android:process), how do I know at runtime when this specific
  service process causes the Application::onCreate() method to be
  invoked, please?

  Thank you for your time and support. Regards,
  Édouard

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

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

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

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


[android-developers] Re: Samsung Galaxy Tab as a development target?

2011-07-18 Thread Chrystian Vieyra
You can use the Galaxy tab as a development target, simply plug in the 
supplied cable to the computer.

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

2011-07-18 Thread kamiseq
well, it seems that if I send notification with ID (ongoing ID = 0)
Notification.FLAG_ONGOING_EVENT | Notification.FLAG_FOREGROUND_SERVICE
then it will stay forever there;]
and if I send other notifications to the same ID (0), icon and intents
will update but flags stay :/

I dont know if this is a bug in API 7 but it just dont make sens to
me.

when I sent notification with Notification.FLAG_ONLY_ALERT_ONCE with
different ID(ex. 1) then it was classified as simple notification and
I could easily clear it from expanded menu.
just by sending same notification to previous ID (0) it was classified
as ongoing and I cant cancel it anyhow!

I also tried to save reference to ongoing notification and then re-
notify it with other PendingIntent and flags but it has no effect!

my current code of the service

@Override
public int onStartCommand(Intent intent, int flags, int startId)
{
Log.d(TAG, start notification);
startStatusBarNotification();

//do other stuff
// We want this service to continue running until it is explicitly
stopped, so return sticky.
return START_STICKY;
}

private void startStatusBarNotification()
{
Log.d(TAG, startStatusBarNotification.);

final int icon = R.drawable.stbar_icon_fail;
final long when = System.currentTimeMillis();
final Notification notification = new Notification(icon,
getString(R.string.notify_title), when);

final Intent notificationIntent = new Intent(this,
MyActivity.class);
notificationIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
final PendingIntent contentIntent =
PendingIntent.getActivity(this, 0, notificationIntent,
PendingIntent.FLAG_CANCEL_CURRENT);

notification.setLatestEventInfo(this,
getString(R.string.notify_title), expandText, contentIntent);
notification.flags = Notification.FLAG_ONGOING_EVENT |
Notification.FLAG_FOREGROUND_SERVICE;//| Notification.FLAG_NO_CLEAR

Log.d(TAG, notify send.);
final NotificationManager mNotificationManager =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
mNotificationManager.notify(SERVICE_ONGOING_NOTIFICATION_ID,
notification);//ID = 0
}

@Override
public void onDestroy()
{
Log.d(TAG, clear status bar notification.);
cancelNotification();

super.onDestroy();
}

private void cancelNotification()
{
final int icon = R.drawable.stbar_icon_exit;
final long when = System.currentTimeMillis();
final Notification notification = new Notification(icon,
getString(R.string.notify_title), when);
final PendingIntent contentIntent =
PendingIntent.getActivity(this, 0, null,
PendingIntent.FLAG_CANCEL_CURRENT);
notification.setLatestEventInfo(this,
getString(R.string.notify_stopping_title),
getString(R.string.notify_stopping_text), contentIntent);
notification.flags = Notification.FLAG_AUTO_CANCEL;

final NotificationManager mNotificationManager =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
mNotificationManager.cancel(SERVICE_ONGOING_NOTIFICATION_ID);  //
NOTHING HAPPENS
mNotificationManager.notify(SERVICE_ONGOING_NOTIFICATION_ID,
notification);   //ID = 0 but if this was changed to 1 cancel
notification can be cleared :/
}

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


[android-developers] Re: Samsung Galaxy Tab as a development target?

2011-07-18 Thread petter
Thank you for your reply.

I was not aware that it came with a cable? I read a rating of the
tablet somewhere and somebody said one of the cons was the lack of a
USB port.

On Jul 18, 8:26 pm, Chrystian Vieyra chrys.vie...@gmail.com wrote:
 You can use the Galaxy tab as a development target, simply plug in the
 supplied cable to the computer.

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


[android-developers] Does anyone know if the Zoosh (naratte.com) application can do bluetooth paing?

2011-07-18 Thread Chuck
Hi,

Has anyone gotten their hands on the Zoosh (www.naratte.com) application, 
its looks like it's similar to Bump (www.bu.mp) but it used Ultrasound to 
replace NFC? Can it be used as a front end to pair Bluetooth communications 
or is it a payment pathway only? Naratte isn't saying much other than an 
announcement and a video...

Thanks


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

[android-developers] Re: Samsung Galaxy Tab as a development target?

2011-07-18 Thread Chrystian Vieyra
http://www.amazon.com/gp/customer-media/product-gallery/B00519RW1U/ref=cm_ciu_pdp_images_0?ie=UTF8index=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] Re: SDK Tools r12 causing aapt to fail

2011-07-18 Thread Kostya Vasilyev

It's this parent reference here:

style name=CustomWindowTitle parent=android:WindowTitle


The canonical syntax, I believe, would be:

style name=CustomWindowTitle parent=@android:style/WindowTitle


-- Kostya

18.07.2011 22:03, teo2k пишет:

Same here... Can't figure out why



On Jul 18, 3:16 pm, William Fergusonwilliam.ferguson...@gmail.com
wrote:

Since updating my SDK to r12, an existing project (with zero code
changes) now fails during aapt generation with:

[INFO] C:\Dev\Android-sdk\platform-tools\aapt.exe [package, -m, -J, C:
\Source\android\Jumblee\target\generated-sources\r, -M, C:\Source
\android\Jumblee\target\filtered-manifest\AndroidManifest.xml, -S, C:
\Source\android\Jumblee\target\generated-sources\combined-resources
\res, --auto-add-overlay, -I, C:\Dev\Android-sdk\platforms
\android-10\android.jar]

[INFO] C:\Source\android\Jumblee\target\generated-sources\combined-
resources\res\values\theme.xml:16: error:Error retrieving parent foritem: No 
resource found that matches the given name
'android:WindowTitle'.

The relevant lines from the resource file are:

 !-- Set the theme for the window title --
 !-- NOTE: settingandroid:textAppearance to style defined above --

 style name=CustomWindowTitle parent=android:WindowTitle
  item name=android:textAppearance@style/
CustomWindowTitleText/item
 /style

Has anyone seem something similar?
Or better still know wtf is going on?

William


--
Kostya Vasilyev

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


Re: [android-developers] SDK Tools r12 causing aapt to fail

2011-07-18 Thread Xavier Ducrohet
It's likely not r12 that is the problem but the new platform-tools (ie
new aapt) that shipped with 3.2

This is not normal syntax, although aapt has supported it in the past.
It is possible (I'm not sure, aapt is handled by the framework team)
this is now unsupported. Try changing it to @android:style/WindowTitle
which is the right way of referencing resources.

On Mon, Jul 18, 2011 at 7:16 AM, William Ferguson
william.ferguson...@gmail.com wrote:
 Since updating my SDK to r12, an existing project (with zero code
 changes) now fails during aapt generation with:

 [INFO] C:\Dev\Android-sdk\platform-tools\aapt.exe [package, -m, -J, C:
 \Source\android\Jumblee\target\generated-sources\r, -M, C:\Source
 \android\Jumblee\target\filtered-manifest\AndroidManifest.xml, -S, C:
 \Source\android\Jumblee\target\generated-sources\combined-resources
 \res, --auto-add-overlay, -I, C:\Dev\Android-sdk\platforms
 \android-10\android.jar]

 [INFO] C:\Source\android\Jumblee\target\generated-sources\combined-
 resources\res\values\theme.xml:16: error: Error retrieving parent for
 item: No resource found that matches the given name
 'android:WindowTitle'.


 The relevant lines from the resource file are:

    !-- Set the theme for the window title --
    !-- NOTE: setting android:textAppearance to style defined above --

    style name=CustomWindowTitle parent=android:WindowTitle
         item name=android:textAppearance@style/
 CustomWindowTitleText/item
    /style

 Has anyone seem something similar?
 Or better still know wtf is going on?

 William

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




-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. 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] android droid3 different sdcard filesystem?

2011-07-18 Thread guruk
I developed one year ago an app that just does write a backup on the sdcard 
root folder.
that worked fine, till i get now complains that the new droid3 does save all 
files into a folder /sdcard on the sdcard itself. 

Now it looks like my app cant handle that. It does say write successful 
but users do not find the file anywhere on their sdcard, also while the app 
does try to read the backup from the root from the sdcard it does not find 
anything.

it seems an filesystem behavior that does not stick to the typical android 
filesystem and so i am stuck as I also dont have a droid3 to test. Any help 
or advice?

thanks chris

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

[android-developers] Re: Samsung Galaxy Tab as a development target?

2011-07-18 Thread petter
Again thanks.

Seems like there is a docking to USB connector which comes with it.

On Jul 18, 8:41 pm, Chrystian Vieyra chrys.vie...@gmail.com wrote:
 http://www.amazon.com/gp/customer-media/product-gallery/B00519RW1U/re...

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


[android-developers] Re: Samsung Galaxy Tab as a development target?

2011-07-18 Thread petter
BTW, is it easy to replace the US power connector with an European
one? On most laptop chargers one can simply replace entire cord to the
charger. Is this possible with the Galaxy Tab 10.1?

On Jul 18, 8:41 pm, Chrystian Vieyra chrys.vie...@gmail.com wrote:
 http://www.amazon.com/gp/customer-media/product-gallery/B00519RW1U/re...

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


[android-developers] Re: Samsung Galaxy Tab as a development target?

2011-07-18 Thread Streets Of Boston
Just use your charging cable.
It functions as an USB cable as well.

The proprietary plug that is on the Galaxy Tab 101. does support USB and 
HDMI interface. The charger-cable (the one that plugs into the small 
charging station) is a USB cable as well. You can buy additional ones from 
Samsung or other sources. You can by 'propriertary-plug' to HDMI cables as 
well to hook your Tab up to a HDTV and such.
http://www.samsung.com/us/mobile/galaxy-tab/GT-P7510MAYXAR-accessories 

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

[android-developers] Re: SharedPreferences update issue

2011-07-18 Thread Hal Harrison
Buried in the doc on class Activity is this paragraph.

To use preferences that are shared across multiple application
components (activities, receivers, services, providers), you can use
the underlying Context.getSharedPreferences() method to retrieve a
preferences object stored under a specific name. (Note that it is not
possible to share settings data across application packages -- for
that you will need a content provider.)

It may have something to do with the Context-s in your A and B. Are
they the same?

Alternately you could pass B's data back and let A do all the
updating.

Hal Harrison.

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


[android-developers] auto update android apk

2011-07-18 Thread Ahmed
iam developing an android application that needs to auto update
(upgrade) from Android market:
now i got stuck in 2 problems:
1. after successfully upload my application to android market,and i
want to add a code to periodicity check for update, but how i can use
Java code to get the  version code of my application on android
market?
2.is it possible to let my application to update it self from android
market by code(with out android market client apk)? if yes what i need
to consider to do so... hope to see an example
thanks
ahmed

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


[android-developers] Can I signing the GMS(Google mobile services) package with my private key?

2011-07-18 Thread Alex
I use the GMS r3 for our product(base on Android 2.3.4), when I boot
up the phone, the Google Partner(GooglePartnerSetup.apk) report a
force close. But if I use our private key to signing this
GooglePartnerSetup.apk, the force close will not appear.

So my question is: Because I am not the author of the
GooglePartnerSetup application, is it allowable for me to signing this
package  with our private key? We do not signing the GMS package
before because we think the GMS package is presigned.

The GoogleParterSetup.apk force close log:
01-01 15:33:48.531: INFO/ActivityManager(179): Start proc
com.google.android.partnersetup for
broadcastcom.google.android.partnersetup/.GooglePartnerSetup: pid=580
uid=10010 gids={}
01-01 15:33:48.694: VERBOSE/ActivityManager(179): Broadcast: Intent
{ act=android.intent.action.SEND } ordered=false
01-01 15:33:48.696: DEBUG/PowerManagerService(179):
KeyguardDoneDrawReceiver onReceive DONE_DRAW
01-01 15:33:48.746: INFO/ActivityManager(179): broadcast
record:BroadcastRecord{4081e638 android.intent.action.BOOT_COMPLETED} -
receiver(id:30):ResolveInfo{40857a88
com.google.android.partnersetup.GooglePartnerSetup p=0 o=0 m=0x108000}
spend time:224
01-01 15:33:48.754: ERROR/Zygote(87): mypid=87writeInt++589
01-01 15:33:48.754: ERROR/Process(179): select successful
01-01 15:33:48.754: ERROR/Process(179): selectZygoteInput correct
01-01 15:33:48.755: ERROR/Process(179): mypid=179readInt++
01-01 15:33:48.755: ERROR/Process(179): mypid=179readInt--589
01-01 15:33:48.755: ERROR/Process(179): fork pid=589
01-01 15:33:48.762: ERROR/Zygote(87): mypid=87writeInt--589
01-01 15:33:48.836: WARN/dalvikvm(580): threadid=9: thread exiting
with uncaught exception (group=0x40018560)
01-01 15:33:48.845: ERROR/AndroidRuntime(580): FATAL EXCEPTION:
IntentService[PartnerAppHiderService]
01-01 15:33:48.845: ERROR/AndroidRuntime(580):
java.lang.SecurityException: Permission Denial: attempt to change
component state from pid=580, uid=10010, package uid=10038
01-01 15:33:48.845: ERROR/AndroidRuntime(580): at
android.os.Parcel.readException(SourceFile:1353)
01-01 15:33:48.845: ERROR/AndroidRuntime(580): at
android.os.Parcel.readException(SourceFile:1307)
01-01 15:33:48.845: ERROR/AndroidRuntime(580): at
android.content.pm.IPackageManager$Stub
$Proxy.setApplicationEnabledSetting
(SourceFile:2233)
01-01 15:33:48.845: ERROR/AndroidRuntime(580): at
android.app.ContextImpl
$ApplicationPackageManager.setApplicationEnabledSetting
(SourceFile:2766)
01-01 15:33:48.845: ERROR/AndroidRuntime(580): at
com.google.android.partnersetup.AppHider.setEnabled(AppHider.java:259)
01-01 15:33:48.845: ERROR/AndroidRuntime(580): at
com.google.android.partnersetup.AppHider.setAppEnabled(AppHider.java:
144)
01-01 15:33:48.845: ERROR/AndroidRuntime(580): at
com.google.android.partnersetup.AppHider.setAppVisibilities(AppHider.java:
101)
01-01 15:33:48.845: ERROR/AndroidRuntime(580): at
com.google.android.partnersetup.AppHiderService.onHandleIntent(AppHiderService.java:
51)
01-01 15:33:48.845: ERROR/AndroidRuntime(580): at
android.app.IntentService$ServiceHandler.handleMessage(SourceFile:90)
01-01 15:33:48.845: ERROR/AndroidRuntime(580): at
android.os.Handler.dispatchMessage(SourceFile:130)
01-01 15:33:48.845: ERROR/AndroidRuntime(580): at
android.os.Looper.loop(SourceFile:329)
01-01 15:33:48.845: ERROR/AndroidRuntime(580): at
android.os.HandlerThread.run(SourceFile:91)

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] Help me with scrollview

2011-07-18 Thread Reis
hi, could somebody help me, please? :]

Do you remember what happen when there are a listview that contains
some icons (about three icons), and I touch the screen and scrollup or
scrolldown, so the list (of icons) moves and following my finger.

So I remove my finger from screen and the list back to the original
position (because have less icon then the size of screen). Look this
effect.

Well, my problem is that I have a activity and in this activity I've a
View (HorizontalScrollView) and it don't have the same effect, like
Listview. The icons (or other views) inside HorizontalScrollView just
follows to touch event, but when it leaves the icons(views) stay at
the position where it stopped.

As I don't find a horizontal listview, I'm trying to use scrollview
with this effect. Do you know how to do this?

Thanks for your attention

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


[android-developers] App causing Droid Only Crashes

2011-07-18 Thread Bubbleware Technology
If someone downloads my app which is a home screen replacement on a
droid x or droid 3, they get incredibly strange behavior. They do not
get a home screen chooser and then phone reboots itself and then they
only get the notification bar.  The only way out of this is then a
hard reset.

This is counter intuitive to me because this is not how it behaves on
any other android phone.  Also our app only has permission to check if
the phone has been rebooted but not permission to force a reboot (that
is android.permission.REBOOT), so I have no idea why the reboot
occurs.

I think it may therefore be a problem related to the droid phone
architecture after reading this post
http://groups.google.com/group/android-developers/browse_thread/thread/3100d248e764c7e5
.  Likewise there are similar problems on the motorola boards about
this issue which is mentioned (https://supportforums.motorola.com/
thread/16278 or  https://supportforums.motorola.com/message/322350 ).

I am trying to figure out this issue and I'm not sure if there is
anything I can do as a developer.  Does anyone have any suggestions on
how to troubleshoot or fix this issue?

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


[android-developers] Re: Bug while unzipping file

2011-07-18 Thread Hugo M
Nobody had a problem related with this strange behavior in Android? :S

I forgot to mention that I'm using Ubuntu 11.04 and Eclipse for developing.

2011/7/17 Hugo M. ham1...@gmail.com

 I have a problem when I try to unzip a file with Android SDK. With a
 similar code in Java SDK 6 this doesn't happen! It works well in Java.

 This is the code I use to read the zip:

  public void unzip() {
try  {
  float time = System.currentTimeMillis();
  ZipInputStream zin = new ZipInputStream(new
 BufferedInputStream( new FileInputStream(_zipFile)));
  ZipEntry ze = zin.getNextEntry();
  L.d(ze, ze.toString());
  while (ze != null) {
Log.v(ze, ze.toString());
Log.v(Decompress, Unzipping  + ze.getName());

if(ze.isDirectory()) {
  _dirChecker(ze.getName());
} else {

  BufferedOutputStream fout = new BufferedOutputStream(new
 FileOutputStream(_location + ze.getName()));
  int n;
  byte b[] = new byte[8192];
  L.d(Antes de leer);
  //TODO: ver si es 0 o != -1
  while ((n = zin.read(b,0,8192))  0) {
  L.d(Leyendo +n);
  fout.write(b,0,n);
  }
  L.d(Despues de leer);
  fout.close();
  L.d(Despues de cerrar);
}
//zin.closeEntry();
L.d(Obteniendo siguiente entrada);
if (zin.available()  0) {
L.d(Hay mas bytes available!);
ze = zin.getNextEntry();
L.d(Esto no lo vas a ver oprque acá se cuelga);
if (ze != null)
L.d(ze, ze.toString());
else
L.d(ze is null);
} else {
ze = null;
}
  }
  zin.close();
  L.d(Files unzipped in +((System.currentTimeMillis() - time)/
 1000)+ seconds);
} catch(Exception e) {
  Log.e(Decompress, unzip, e);
  throw new RuntimeException(e);
}

  }

  private void _dirChecker(String dir) {
File f = new File(_location + dir);

if(!f.isDirectory()) {
  f.mkdirs();
}
  }

 The unzip function freezes always (no matter what is the lenght of the
 file or the number of files inside the zip) in the last entry, in
 zip.getNextEntry() function. This doesn't happen in Java. Is this a
 bug of the Android SDK? I've tested with 2.2 and 2.3 API and I have
 the same behavior.

 This is the last input in adb logcat:

 (...)
 D/sur_comics(  281): Leyendo 2027
 D/sur_comics(  281): Leyendo 535
 D/sur_comics(  281): Despues de leer
 D/sur_comics(  281): Despues de cerrar
 D/sur_comics(  281): Obteniendo siguiente entrada
 D/sur_comics(  281): Hay mas bytes available!

 And after a while...

 D/SntpClient(   67): request time failed: java.net.SocketException:
 Address family not supported by protocol

 Any help is welcome :D

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

[android-developers] Error starting android emulator

2011-07-18 Thread qia li
Hi guys,
I am trying to run my first android program on an emulator. But not
sure why there is error even though I follow the exact procedures as
the youtube tutorials.

The error msg:
invalid command-line parameter: Files.
Hint: use '@foo' to launch a virtual device named 'foo'.
please use -help for more information

Could anyone advise?

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] Help me with scrollview

2011-07-18 Thread Eduardo Reis
hi, could somebody help me, please? :]

Do you remember what happen when there are a listview that contains some
icons (about three icons), and I touch the screen and scrollup or
scrolldown, so the list (of icons) moves and following my finger.

So I remove my finger from screen and the list back to the original position
(because have less icon then the size of screen). Look this effect.

Well, my problem is that I have a activity and in this activity I've a View
(HorizontalScrollView) and it don't have the same effect, like Listview. The
icons (or other views) inside HorizontalScrollView just follows to touch
event, but when it leaves the icons(views) stay at the position where it
stopped.

As I don't find a horizontal listview, I'm trying to use scrollview with
this effect. Do you know how to do this?

Thanks for your attention


-- 
*Reis, Eduardo.*
*
*
*Graduando em Ciência da Computação (UFMA)*
*Laboratório de Processamento e Análise de Imagens (LABPAI)*
*
*
*contato: *
*eduardo_jr...@hotmail.com*
*98 8839-9122*
*
*
*As raposas têm suas tocas e as aves do céu têm seus ninhos, mas o Filho do
homem não tem onde repousar a cabeça. Jesus Cristo.*

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

[android-developers] open nfc installation

2011-07-18 Thread Mohamed Ramadan
HI,
I had two problems when I try to connect the simulator with the
connection Center in open nfc

1-ccrouter.dll file not found in the connection center folder

2-an error message

   Warning:No provider for client
source:***.***.***.***(ip);LINUX;NFC controller (I2C);--rejected
Error:Error while reading the
socket:Socket greacefully shutdown'
Warning: Client
source:***...***(ip) ;linux;NFC Controller(I2C);NFC
Controller(I2C);disconnected

 appear when I try to enter the ip and press and start the nfc service
in the emulator

did any one know how to get that file or what the message explanation
is

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] 3D maps

2011-07-18 Thread Deeraf
I use google maps to display users' current position. Now i want it to
display on 3d maps. I got frustrated in search of 3d map view control
etc...

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


[android-developers] How to get phone's flip state?

2011-07-18 Thread babycoo...@hotmail.com
Hi, in my application, I want to get phone's flip state. i.e. Closed
or Opened. How can I do that? Thanks.

Qin.

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


[android-developers] Get the PDP activation and deactivation info.

2011-07-18 Thread ashokm
Hi all,
  I want to get whether PDP activation is successful or failure?
Please let me know any api available to get this information.

Thanks ,
ashok

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


[android-developers] Eclipse with ADT goes Not Responding

2011-07-18 Thread Mate Gulyas
Hi!

I upgraded to Indigo, downloaded the ADT plugin a few days ago. Now
sometimes I try to build my project, it goes Not Responding, and the
build process is stuck at 55%. I can't do anything bit kill it with
task manager. This happens about every second, third build now.

Usually there is nothing in the log, but once I got a logged
OutOfMemory exception. http://pastebin.com/ih5qUkiw
I believe this is the same error. Please see details below.

Thanks for any reply in advance.

Mate Gulyás


Details:
OS: Windows 7
Eclipse
Version: Indigo Release
Build id: 20110615-0604
eclipse.ini:
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/
org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx384m


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


[android-developers] Limiting licensed content on Android Apps in code?

2011-07-18 Thread Bhav
Hi All,
I am developing / working on an app which provides licensed content on
a subscription basis. Unfortunately the content I have has a
restriction - I can only provide the subscription content on HTC 
Samsung Android Devices as the content provider has partnered/licensed
agreements with these specific companies. As I come from a business /
UI designer background, I lack a bit of needed knowledge  experience
on the technical side :)

If anyone can advise, I needed to know:

1) Is there any way I can restrict the 'premium content' within the
application on specific branded devices? For example, if a Motorola
user tries to access the content from within the app, is it possible
to detect the make/model of their device and block the content?
(obviously with a user friendly message)

2) Is there any way I can stop users of unsupported brands from seeing
the app in the market place? (feels like a big ask and personally I do
doubt it can be done)

Any advice on my questions would be very helpful!
Thanks, Bhav

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


[android-developers] broadcast partial of a SAR (Segmentation and Re-Assembly) long SMS immediately before all parts been received reassembled back to original one long message

2011-07-18 Thread Eric
Hi

  My application registered to receive SMS broadcast message from
system.  However, we noticed that for a SAR (Segmentation and Re-
assembly) SMS (a.k.a. concatenated long message), the broadcast was
sent immediately before all parts received and reassembled back to
original long message .  Shouldn't it make much sense to wait until
all parts received / reassembled then send the SMS broadcast to all
receiver registered?  My application relies on the complete one long
message to do some business logic but receiving of a partial part
(first part, to be exact) of a long SMS message is totally useless.
  I am wondering is there anyone encountered the same kind of issue
like mine and any work around suggested is much appreciated.
  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] Accessory developers corner

2011-07-18 Thread nimbusgb
Is there anywhere specific for open accessory developers to hang out?

I'm keen on finding out when the Bluetooth communications side of
things will be released. having to get handsets to use 2.3.4 to
implement OA over USB strikes me as being a little 'cart before
horse'. Surely releasing a BT version first would have allowed a lot
of development without waiting for handsets to play catch up?

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


[android-developers] Access a list of local drawables

2011-07-18 Thread can telkenaroglu
Does anybody know how I may access the list of files under drawables
folder in my project list/drawable. So I may generate a main.xml using
the names of these files and add varying number of files to my
viewflipper.

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


R: Re: [android-developers] Re: LVL behavior on client side license validity check for free apps

2011-07-18 Thread Fabio Da Soghe
Il giorno venerdì 4 febbraio 2011 18:44:45 UTC+1, Trevor Johns ha scritto:

 (Marco: This change was made very late in the development of the license 
 service. For a long time during development, it was indeed possible to use 
 licensing with free apps. The reference you found in the docs was probably 
 an artifact from this that that we just missed before publishing. I'll 
 submit a change to remove it to prevent confusion.)


Excuse me but... why did you choose to limit the LVL applicability to paid 
apps? From the Android Market distribution agreement, free trial versions 
are allowed and even encouraged. LVL would be a perfect fit to implement a 
time-limited check and then, when it expires, to send the user to an in-app 
payment.

Thanks,

Fabio Da Soghe

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

[android-developers] Bug while unzipping file

2011-07-18 Thread Hugo M.
I have a problem when I try to unzip a file with Android SDK. With a
similar code in Java SDK 6 this doesn't happen! It works well in Java.

This is the code I use to read the zip:

  public void unzip() {
try  {
  float time = System.currentTimeMillis();
  ZipInputStream zin = new ZipInputStream(new
BufferedInputStream( new FileInputStream(_zipFile)));
  ZipEntry ze = zin.getNextEntry();
  L.d(ze, ze.toString());
  while (ze != null) {
Log.v(ze, ze.toString());
Log.v(Decompress, Unzipping  + ze.getName());

if(ze.isDirectory()) {
  _dirChecker(ze.getName());
} else {

  BufferedOutputStream fout = new BufferedOutputStream(new
FileOutputStream(_location + ze.getName()));
  int n;
  byte b[] = new byte[8192];
  L.d(Antes de leer);
  //TODO: ver si es 0 o != -1
  while ((n = zin.read(b,0,8192))  0) {
  L.d(Leyendo +n);
  fout.write(b,0,n);
  }
  L.d(Despues de leer);
  fout.close();
  L.d(Despues de cerrar);
}
//zin.closeEntry();
L.d(Obteniendo siguiente entrada);
if (zin.available()  0) {
L.d(Hay mas bytes available!);
ze = zin.getNextEntry();
L.d(Esto no lo vas a ver oprque acá se cuelga);
if (ze != null)
L.d(ze, ze.toString());
else
L.d(ze is null);
} else {
ze = null;
}
  }
  zin.close();
  L.d(Files unzipped in +((System.currentTimeMillis() - time)/
1000)+ seconds);
} catch(Exception e) {
  Log.e(Decompress, unzip, e);
  throw new RuntimeException(e);
}

  }

  private void _dirChecker(String dir) {
File f = new File(_location + dir);

if(!f.isDirectory()) {
  f.mkdirs();
}
  }

The unzip function freezes always (no matter what is the lenght of the
file or the number of files inside the zip) in the last entry, in
zip.getNextEntry() function. This doesn't happen in Java. Is this a
bug of the Android SDK? I've tested with 2.2 and 2.3 API and I have
the same behavior.

This is the last input in adb logcat:

(...)
D/sur_comics(  281): Leyendo 2027
D/sur_comics(  281): Leyendo 535
D/sur_comics(  281): Despues de leer
D/sur_comics(  281): Despues de cerrar
D/sur_comics(  281): Obteniendo siguiente entrada
D/sur_comics(  281): Hay mas bytes available!

And after a while...

D/SntpClient(   67): request time failed: java.net.SocketException:
Address family not supported by protocol

Any help is welcome :D

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


[android-developers] First Android program

2011-07-18 Thread qia li
Hi Guys,
I am setting up the android development environment by following the
tutorial on youtube.
However, when i tried to run my first program, errors occur and i am
not sure why. could anyone advise?

error msg as follow:
invalid command-line parameter: Files.
Hint: use '@foo' to launch a virtual device named 'foo'.
please use -help for more information

Many thanks

Allen

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


[android-developers] Old signing problem but no solutions

2011-07-18 Thread Frank Ahearn
I am aware there are almost identical posts on here and Google but see
no answers, therefore asking again in case any have come up since.

I made a very small change to my app icon and on upload got  The apk
must be signed with the same certificates as the previous version

It is the same. The version number was incremented, the keystore is
unchanged, the date of the keystore is unchanged, the alias and
passwords are all as carefully noted (they are meaningful and familar
to me anyway) and I am using exactly the same ones.  I have uploaded
mods before with no problems.

It is not just me that has said this and I think there is some issue
here that has not been addressed. It may be relevant that another with
the problem had also only made a change to the app icon?

Any new thoughts on what seems to be an old problem would be most
welcome.

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


[android-developers] Re: android droid3 different sdcard filesystem?

2011-07-18 Thread guruk
here some of my code as example:

File root = Environment.getExternalStorageDirectory();
if (root.canWrite()) {
File gpxfile = new File(root, DATABASE_TABLE + .myd);
FileWriter gpxwriter = new FileWriter(gpxfile);
BufferedWriter out = new BufferedWriter(gpxwriter);
// later i write for example:
out.write(data\n);

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

2011-07-18 Thread TreKing
On Sun, Jul 17, 2011 at 9:22 PM, Ahmed a.alsaya...@gmail.com wrote:

 1. after successfully upload my application to android market,and i
 want to add a code to periodicity check for update, but how i can use
 Java code to get the  version code of my application on android
 market?


Store your current version on your own server somewhere. Have your app check
that.


  2.is it possible to let my application to update it self from android
 market by code(with out android market client apk)?


No.

-
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] Old signing problem but no solutions

2011-07-18 Thread TreKing
On Sun, Jul 17, 2011 at 9:32 AM, Frank Ahearn gateed...@gmail.com wrote:

 Any new thoughts on what seems to be an old problem would be most welcome.


Do a re-export and also try clearing your browser cache and see it if that
helps.

-
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] 3D maps

2011-07-18 Thread TreKing
On Sun, Jul 17, 2011 at 12:00 PM, Deeraf dee.dee...@gmail.com wrote:

 Now i want it to display on 3d maps. I got frustrated in search of 3d map
 view control etc...


What kind of answer are you expecting here ... ?

-
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] Emulator connectivity

2011-07-18 Thread kypriakos

Hi all,

I have been working with real devices for a while and returning back
to
emulators now. I am able to port forward the iJetty web server (which
is
running on 10.0.2.15:8080) and I can now access it from the browser
running on the local machine using localhost:8080. But to be able to
see this server now remotely I will most likely need a port forwarding
pipe - is that true? To be able to bridge the localhost to the actual
machine's IP address? (I remember a tool called tcppipe once).
Is this the best approach in such a case to expose the emulator
to remote machines?

Thanks in advance

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


[android-developers] Re: First Android program

2011-07-18 Thread Kumar Bibek
Check this thread.

http://stackoverflow.com/questions/3492676/invalid-command-line-parameter-when-android-execution

On Jul 17, 5:37 pm, qia li allenli...@gmail.com wrote:
 Hi Guys,
 I am setting up the android development environment by following the
 tutorial on youtube.
 However, when i tried to run my first program, errors occur and i am
 not sure why. could anyone advise?

 error msg as follow:
 invalid command-line parameter: Files.
 Hint: use '@foo' to launch a virtual device named 'foo'.
 please use -help for more information

 Many thanks

 Allen

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


[android-developers] Re: How to get phone's flip state?

2011-07-18 Thread Kumar Bibek
What exactly do you mean by closed and open?


On Jul 18, 1:35 pm, babycoo...@hotmail.com babycoo...@hotmail.com
wrote:
 Hi, in my application, I want to get phone's flip state. i.e. Closed
 or Opened. How can I do that? Thanks.

 Qin.

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

2011-07-18 Thread TreKing
On Mon, Jul 18, 2011 at 4:26 AM, Bhav bzmis...@gmail.com wrote:

 1) Is there any way I can restrict the 'premium content' within the
 application on specific branded devices? For example, if a Motorola
 user tries to access the content from within the app, is it possible
 to detect the make/model of their device and block the content?
 (obviously with a user friendly message)


http://developer.android.com/reference/android/os/Build.html#MODEL


 2) Is there any way I can stop users of unsupported brands from seeing
 the app in the market place? (feels like a big ask and personally I do
 doubt it can be done)


http://www.google.com/support/androidmarket/developer/bin/answer.py?hl=enanswer=1286017

-
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: Samsung Galaxy Tab as a development target?

2011-07-18 Thread petter
OK great, thanks for the explanation. That means that I've probably
have several power connectors already, both US and European ones...


On Jul 18, 9:05 pm, Streets Of Boston flyingdutc...@gmail.com wrote:
 Just use your charging cable.
 It functions as an USB cable as well.

 The proprietary plug that is on the Galaxy Tab 101. does support USB and
 HDMI interface. The charger-cable (the one that plugs into the small
 charging station) is a USB cable as well. You can buy additional ones from
 Samsung or other sources. You can by 'propriertary-plug' to HDMI cables as
 well to hook your Tab up to a HDTV and 
 such.http://www.samsung.com/us/mobile/galaxy-tab/GT-P7510MAYXAR-accessories

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


[android-developers] Re: Samsung Galaxy Tab as a development target?

2011-07-18 Thread Streets Of Boston
Here is a pic of the charger (charging station with the USB/Charging cable)
http://www.samsung.com/us/mobile/galaxy-tab-accessories/ETA-P10JBEGSTA

I think that the charging station would accept both 110volts and 220volts 
(the link states that it is a universal charger), but i'm not sure

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

[android-developers] Using assets / permissions from library projects

2011-07-18 Thread Dale Harvey
I am currently working on an application that is packaged as an
android library, the library contains some source files as well as
some binaries delivered in the assets folder, additionally some
permissions are required to run the library.

Currently developers must create their own project and import as an
android library to use the project, developers then need to manually
copy the assets from the library into their own project as well as
manually copy the permissions. This mostly works well however it is
very easy for developers to not add the correct permissions or also
commonly the binaries are updated within the library project and those
updates are not reflected in the copied assets.

Is there any easy way for me to provide to developers to merge the
permissions and assets together, or any plans for new SDK's to do so
automatically?

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


[android-developers] Re: How to lock current orientation at runtime?

2011-07-18 Thread Indicator Veritatis
What? Why would a restart of your Activity be a problem while waiting
for an HTTP response? You DO have the HTTP response in a separate
thread and Service, don't you?

On Jul 16, 3:41 pm, Brad bradfull...@gmail.com wrote:
 Hi,

 I'm trying to lock my activity to the current orientation to prevent
 an orientation change from restarting my activity while I'm waiting
 for a http response.

 So I'm trying to use this:

 setRequestedOrientation(getResources().getConfiguration().orientation);

 And it works fine for portrait (orientation == 1), but when the device
 is in landscape it's getting a value of 2 which ==

 ActivityInfo.SCREEN_ORIENTATION_USER

 And this doesn't lock the screen.

 Does anyone have any idea why I'm getting this instead of LANDSCAPE?
 Any suggestions for a better way to lock the current orientation?

 Thanks!

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


[android-developers] Re: Android 2.1 Emulator proxy settings

2011-07-18 Thread Zoon
I'm not having luck using -http-proxy on tools r12 for some reason.
Had to revert to r11.  Is anyone else having this problem?

On Jul 12, 7:44 am, superprogrammer jkerns...@gmail.com wrote:
 I need to access the internet on the emulator for an app.
 How can i change theproxysettings in telKila to allow access to the
 internet?

 I have tried Menu - Settings - Wireless Controls  Mobile Networks 
 Access Point Names
    No luck there

 I tried running this from the command line
 emulator -avd myavd -http-proxyhttp://address:port
 still no luck

 any 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: SDK Tools r12 causing aapt to fail

2011-07-18 Thread teo2k
In my case the syntax is correct, but I still see the error...

style name=LCIAlertDialog parent=@android:style/AlertDialog
item name=android:fullDark@drawable/popup_full_dark/item
item name=android:topDark@drawable/popup_top_dark/item
item name=android:centerDark@drawable/popup_center_dark/
item
item name=android:bottomDark@drawable/popup_bottom_dark/
item
item name=android:bottomMedium@drawable/
popup_bottom_medium/item
/style



On Jul 18, 7:46 pm, Xavier Ducrohet x...@android.com wrote:
 It's likely not r12 that is the problem but the new platform-tools (ie
 new aapt) that shipped with 3.2

 This is not normal syntax, although aapt has supported it in the past.
 It is possible (I'm not sure, aapt is handled by the framework team)
 this is now unsupported. Try changing it to @android:style/WindowTitle
 which is the right way of referencing resources.

 On Mon, Jul 18, 2011 at 7:16 AM, William Ferguson









 william.ferguson...@gmail.com wrote:
  Since updating my SDK to r12, an existing project (with zero code
  changes) now fails during aapt generation with:

  [INFO] C:\Dev\Android-sdk\platform-tools\aapt.exe [package, -m, -J, C:
  \Source\android\Jumblee\target\generated-sources\r, -M, C:\Source
  \android\Jumblee\target\filtered-manifest\AndroidManifest.xml, -S, C:
  \Source\android\Jumblee\target\generated-sources\combined-resources
  \res, --auto-add-overlay, -I, C:\Dev\Android-sdk\platforms
  \android-10\android.jar]

  [INFO] C:\Source\android\Jumblee\target\generated-sources\combined-
  resources\res\values\theme.xml:16: error: Error retrieving parent for
  item: No resource found that matches the given name
  'android:WindowTitle'.

  The relevant lines from the resource file are:

     !-- Set the theme for the window title --
     !-- NOTE: setting android:textAppearance to style defined above --

     style name=CustomWindowTitle parent=android:WindowTitle
          item name=android:textAppearance@style/
  CustomWindowTitleText/item
     /style

  Has anyone seem something similar?
  Or better still know wtf is going on?

  William

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

 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.http://developer.android.com|http://tools.android.com

 Please do not send me questions directly. 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


  1   2   >