[android-developers] Re: display TYPE_SYSTEM_DIALOG

2012-09-05 Thread Pent
 Does anybody know this ? thanks.

The police will be here soon with 'it has SYSTEM in the name, why are
you trying to use it ?'

Pent

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


Re: [android-developers] How to set height of a custom developed AlertDialog ?

2012-09-05 Thread tvdalia

 Justin, I changed in xml layout_height of both LinearLayout  ListView as 
wrap_content instead of match_parent. But also same results. This is the 
way I have coded for that layout to create a dialog :

public AlertDialog createAlertDialog(String title, String[] items, 
 OnItemClickListener clickListener) {
 
 LayoutInflater layoutInflater   = 
 (LayoutInflater)this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
 ViewGroup vg = (ViewGroup) findViewById(R.id.genListLayId);
 LinearLayout view = (LinearLayout) 
 layoutInflater.inflate(R.layout.gen_list_layout, vg, false);
 
 TextView titleTv = (TextView) view.findViewById(R.id.genListTitTv);
 titleTv.setText(title);
 
 ArrayAdapterString ad = new ArrayAdapterString(this, 
 R.layout.list_item, R.id.listRowView, items);
 ListView listView = (ListView) view.findViewById(R.id.genList);
 listView.setAdapter(ad);
 listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
 
 listView.setOnItemClickListener(clickListener);
 
 AlertDialog.Builder scrnDlg = new 
 AlertDialog.Builder(MyActivity.this);
 scrnDlg.setView(view);
 
 AlertDialog adg = scrnDlg.create();
 /*WindowManager.LayoutParams lp = new WindowManager.LayoutParams();
 lp.copyFrom(adg.getWindow().getAttributes());
 lp.width = WindowManager.LayoutParams.FILL_PARENT;
 lp.height = WindowManager.LayoutParams.FILL_PARENT;
 adg.getWindow().setAttributes(lp);
 */
 return adg;
 }


 the way I al calling is :

 alertDlg = createAlertDialog(Title, names, clickListener);
alertDlg.show();


  I may need to make some changes over here. I don't know, have added code 
for reference. Hope you can provide some guideline thru this.

Thanks 


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

Re: [android-developers] How to set height of a custom developed AlertDialog ?

2012-09-05 Thread Calin Perebiceanu
Hi ,
WRAP_CONTENT will make your height depend of the number of items you have 
in the list.
You should use a hard coded layout_height

On Wednesday, 5 September 2012 09:19:38 UTC+3, tvdalia wrote:


  Justin, I changed in xml layout_height of both LinearLayout  ListView as 
 wrap_content instead of match_parent. But also same results. This is the 
 way I have coded for that layout to create a dialog :

 public AlertDialog createAlertDialog(String title, String[] items, 
 OnItemClickListener clickListener) {
 
 LayoutInflater layoutInflater   = 
 (LayoutInflater)this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
 ViewGroup vg = (ViewGroup) findViewById(R.id.genListLayId);
 LinearLayout view = (LinearLayout) 
 layoutInflater.inflate(R.layout.gen_list_layout, vg, false);
 
 TextView titleTv = (TextView) 
 view.findViewById(R.id.genListTitTv);
 titleTv.setText(title);
 
 ArrayAdapterString ad = new ArrayAdapterString(this, 
 R.layout.list_item, R.id.listRowView, items);
 ListView listView = (ListView) view.findViewById(R.id.genList);
 listView.setAdapter(ad);
 listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
 
 listView.setOnItemClickListener(clickListener);
 
 AlertDialog.Builder scrnDlg = new 
 AlertDialog.Builder(MyActivity.this);
 scrnDlg.setView(view);
 
 AlertDialog adg = scrnDlg.create();
 /*WindowManager.LayoutParams lp = new 
 WindowManager.LayoutParams();
 lp.copyFrom(adg.getWindow().getAttributes());
 lp.width = WindowManager.LayoutParams.FILL_PARENT;
 lp.height = WindowManager.LayoutParams.FILL_PARENT;
 adg.getWindow().setAttributes(lp);
 */
 return adg;
 }


  the way I al calling is :

 alertDlg = createAlertDialog(Title, names, clickListener);
alertDlg.show();


   I may need to make some changes over here. I don't know, have added code 
 for reference. Hope you can provide some guideline thru this.

 Thanks 




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

Re: [android-developers] Re: does NFC in gingerbread support card simulate?

2012-09-05 Thread Nikolay Elenkov
On Wed, Aug 29, 2012 at 11:21 PM, Michael Roland mi.rol...@gmail.com wrote:


 At the moment: There is no support for software card emulation in the
 standard Android system. You should be able to do this with CyanogenMod
 9(? don't know exactly which in version the necessary patches were
 included, but the patches exist).

 Also when you emulate the smartcard in software on the application
 processor, you won't have the security of a dedicated smartcard chip of
 course. For more information on this issue, you might be interested in
 my recent paper Software Card Emulation in NFC-enabled Mobile Phones:
 Great Advantage or Security Nightmare? Available online:
 http://www.medien.ifi.lmu.de/iwssi2012/papers/iwssi-spmu2012-roland.pdf


Michael,

Since you wrote the paper on this, any hints on how to activate software CE
in CyanogneMod? Looking at the code, the app should get a notification for
a IsoPcdA tag and be able to transceive() with it, but I don't get this when
sending reset, select etc. with an external NFC reader. I have registered
for IsoPcdA using foreground dispatch, and looking at the logs IsoPcdA
seems to be enabled. Does the reader need to send any specific command
to get this to work? I've tried with both CM9 (ICS) and CM10 (JB), but never
get TECH_DISCOVERED intent.

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

2012-09-05 Thread skink


On Sep 4, 3:51 am, HK android.out.th...@gmail.com wrote:
 HI,

 (I had posted this question in platform, but didn't get any response, so
 posting here)

 I want to display TYPE_SYSTEM_DIALOG from a service:
 snapshot of code:
 popup.getWindow().setType(
 WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG);
 popup.show();

 Basically I am finding a way to display dialog without an activity. I found
 that TYPE_SYSTEM_DIALOG could be a way. But the dialog doesn't show up and
 there is no error. The same code with normal dialog using an activity shows
 up, but not system dialog from service.
 My service can be a system service(system app).
 So my question is:
 - what permissions do I need to set ?
 - is there anything else I need to do ? or call ?
 - anything i would be missing which is needed for TYPE_SYSTEM_DIALOG

 thank you.

as Pent said you are on the wrong path: this is not the way you should
follow

yes i managed to do what you are trying to do with
setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT) together with
permission:

uses-permission android:name=android.permission.SYSTEM_ALERT_WINDOW/


and it works on my emulator but may NOT work on the real device and
again this is not the way you should go

pskink

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


Re: [android-developers] How to set height of a custom developed AlertDialog ?

2012-09-05 Thread tvdalia
Calin, 
   For hard coded layout_height, how to figure out that. I can have the 
MainBody's height, but how do I set it as hard coded something like 300dp 
or so. 
 I believe I will have to do that in createAlertDialog() - due to 
different screen sizes, right. I gave this line in method below 
layoutInflater.inflate...

 view.setLayoutParams(new ViewGroup.LayoutParams(LayoutParams.MATCH_PARENT, 
 100)); 


  But yet I see the same results. 100 was given just for testing and 
nothing specific.

 How  Where to set that ? 

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

[android-developers] Re: display TYPE_SYSTEM_DIALOG

2012-09-05 Thread HK
Because, this is in the other post, I wanted to display without 
interrupting current activity i.e., without its onPause getting hit.

On Wednesday, September 5, 2012 3:21:53 PM UTC+9, Pent wrote:

  Does anybody know this ? thanks. 

 The police will be here soon with 'it has SYSTEM in the name, why are 
 you trying to use it ?' 

 Pent 


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

2012-09-05 Thread skink


HK wrote:
 Because, this is in the other post, I wanted to display without
 interrupting current activity i.e., without its onPause getting hit.




remember that there may be other windows that popups on top of your
current activity e.g. alarm clock etc

what would you do then? you will see black screen behind because
onPause will be called anyway

pskink

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


[android-developers] Re: How Can I pass an ArrayList do another Activity?

2012-09-05 Thread Seshu
hi,
   R u passing String Array List or Custom Array List..

On Sep 5, 5:10 am, Guilherme Bernardi gui.bernard...@gmail.com
wrote:
 Funny...

 How did I not find it?

 That's the point, that is not my answer.
 I searched before coming to ask. I asked for help, no one is obliged to
 respond...

 To do what I asked. I need to implements my class Parcelable, extends the
 BaseAdapter to work and pass my ArrayListObject.

 If it were only putStringArrayListExtra, I wouldn't have come to ask.

 But... thanks for the help.

 Em sábado, 1 de setembro de 2012 13h03min07s UTC-3, Fred Niggle escreveu:









  a quick google search found this:

 http://stackoverflow.com/questions/4030115/how-to-pass-arraylist-usin...

  How did you NOT find it?

  On 1 September 2012 16:51, dnkoutso dnko...@gmail.com javascript:wrote:

  Typically when you are dealing with the same process it seems useless and
  slow to serialize (or parcel) your ArrayList between activities.I would use
  a singleton where I put the data in there and grab it from the next
  Activity.

  On Friday, August 31, 2012 12:59:51 PM UTC-7, Guilherme Bernardi wrote:

  Hi everyone.

  I'm developing an application that have a composition case.

  In the first activity there is an ListView, some fields and a button
  that call another activity. This activity will set an ArrayList and then
  pass to first activity the array it appears in the listview...

  Can anyone 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-d...@googlegroups.comjavascript:
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com javascript:
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

  --
  Ubuntu Speech 
  inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
   now available on Google Play, along with Magnetic
  Door Alarm 
  apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
  .

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Problem showing Activity as a Dialog without Title and as an Activity too

2012-09-05 Thread tvdalia

 Ok, I added the Theme as Dialog in manifest  uncommented the previous 

 if(fDialogMode) 
 this.requestWindowFeature(Window.FEATURE_NO_TITLE);


and removed the the same line of request after super.onCreate(), doesn't 
give error and works. If fDloag is true, it shows as Activity with title 
and if false, shows as Dialog without title. In the parent Activity already 
setContent is used so was the error.

Now what about showing and hiding the TextView. The xml layout is :

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 android:orientation=vertical android:id=@+id/expListLLId 
!--  
 TextView android:id=@+id/expTitle
 style=@style/inPageTitleStyle
 android:text= /  --
 
 ExpandableListView
 android:id=@+id/ExpList
 android:layout_width=match_parent
 android:layout_height=0dp
 android:layout_weight=1 
 /ExpandableListView
 /LinearLayout


  Regards, 


On Tuesday, 4 September 2012 22:23:27 UTC+5:30, TreKing wrote:

 On Tue, Sep 4, 2012 at 6:58 AM, tvdalia trupt...@gmail.com 
 javascript:wrote:

 I removed Dialog Theme from manifest, and added requestWindowFeature 
 (Window.FEATURE_NO_TITLE);, for the Dialog case, this gives me 
 RuntimeException on this line.


 And the exception is ... ?


 -
 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: display TYPE_SYSTEM_DIALOG

2012-09-05 Thread Kostya Vasilyev
Why not file a bug with the other team about their activity content
becoming blank in paused state?
 05.09.2012 12:08 пользователь skink psk...@gmail.com написал:



 HK wrote:
  Because, this is in the other post, I wanted to display without
  interrupting current activity i.e., without its onPause getting hit.
 
 


 remember that there may be other windows that popups on top of your
 current activity e.g. alarm clock etc

 what would you do then? you will see black screen behind because
 onPause will be called anyway

 pskink

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


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

2012-09-05 Thread skink


Kostya Vasilyev wrote:
 Why not file a bug with the other team about their activity content
 becoming blank in paused state?


this is the most obvious solution but OP tries his best to workaround,
i dont know why...

pskink

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


[android-developers] Re: display TYPE_SYSTEM_DIALOG

2012-09-05 Thread Martin
Sounds like you want to do something much like StandOut:
https://github.com/pingpongboss/StandOut#readme

Martin.


On Tuesday, September 4, 2012 2:51:19 AM UTC+1, HK wrote:


 HI,

 (I had posted this question in platform, but didn't get any response, so 
 posting here)

 I want to display TYPE_SYSTEM_DIALOG from a service:
 snapshot of code:
 popup.getWindow().setType(
 WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG);
 popup.show();

 Basically I am finding a way to display dialog without an activity. I 
 found that TYPE_SYSTEM_DIALOG could be a way. But the dialog doesn't show 
 up and there is no error. The same code with normal dialog using an 
 activity shows up, but not system dialog from service.
 My service can be a system service(system app).
 So my question is:
 - what permissions do I need to set ?
 - is there anything else I need to do ? or call ?
 - anything i would be missing which is needed for TYPE_SYSTEM_DIALOG

 thank you.


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

[android-developers] Problem with In App Purchases for Android

2012-09-05 Thread mizardo mizardo
Hello

Our company implemented the In App Billing for Android, but we have a 
problem with purchases in a PUBLISHED app and their items just being 
PUBLISHED too.
When the user purchases a product, this message always appears:

http://i.imgur.com/MiXH1.png

All documentation for this error, points at the items not being available 
to the publisher, or to the account, owner of the app.
We're seeking a fix since two weeks ago and we can't found a valid solution 
that works.

Before publish the application the test with android.test.purchased works 
fine.
We tested after publish with multiple android devices, and multiple 
accounts who bought products in another applications already published on 
the market.

Somebody knows about the possible causes of this error, or maybe how to fix 
it?

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

2012-09-05 Thread manan
I am having similar problems and it's not making me sleep. Can anyone try 
and help us out...or maybe i have to uninstall and install all the package 
againand what if it does not work. Am working on a company's app and 
and the pressure is pilling on me. 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] School project help needed.

2012-09-05 Thread Domin8rJ
Hi everyone, I was asked to create an Android application for my school's 
final year project, but I have zero experience in this area.. had never 
programmed an app before..

So.. Is there any tips or tricks in this field of programming for somebody 
new like me? Any references sites, other good forums, videos, or just 
anything that would help get me started?
Also, is there some sort of 'easy' ideas, that is not complicated at all, 
an app idea that will be easy to pick up and be completed in 12 weeks(the 
duration of my project), even for someone like me? I really have no idea 
where I can start right now.

In my 3 years of study, I have dabble in very basic programming(c#/c++ and 
nothing else) and wasn't really very good in it, and like I mentioned 
above, I had never did an app before, nor had programmed anything in such a 
large scale(to me), so I would appreciated any help I can get..

Please let me know if this particular question had already been asked 
before, because if so, I am so, so sorry.. will you please provide me with 
the link to the right post? I would appreciate it a lot, thanks.

Thanks a lot in advance. 

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

[android-developers] Noob Alert ;) No create android project button.....(Eclipse)

2012-09-05 Thread Monkey_1
Hey, I have installed the SDK tools and the plugin for Eclipse however I am 
not seeing the create Android project button on the tool bar or in the New 
menu on Eclipse.
Please help, I'm new, just experimenting trying to create my first app.
.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] Unbale to build ffmpeg on android ndk

2012-09-05 Thread mayank yadav
Hi i am trying to build the ffmpeg on android ndk using 
http://bambuser.com/opensource but when I tried to run android_build.sh it 
gives compilation error.

It gives message :

C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from SVN.  If the latest version fails, report the problem to the
ffmpeg-u...@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file config.log produced by configure as this will help
solving the problem.


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

2012-09-05 Thread Jeffrey Fisher
If you still have a problem after installing drivers (but without a system 
restart) you may need to restart the adb server process.  Can't remember 
the exact name of it, but it wasn't hard to find, so probably contained 
adb.

System restart would get the job done too, but killing that process works.

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

2012-09-05 Thread Jignesh Patel
Hi Dianne,

Sorry for responding to very old post. I have one app Adobe Connect Mobile (
https://play.google.com/store/apps/details?id=air.com.adobe.connectprofeature=search_result#?t=W251bGwsMSwxLDEsImFpci5jb20uYWRvYmUuY29ubmVjdHBybyJd)
 
which I want to launch through web link. I have checked 
the AndroidManifest.xml of this app and as per that it has 

intent-filter
action android:name=android.intent.action.VIEW /
category android:name=android.intent.category.BROWSABLE 
/
category android:name=android.intent.category.DEFAULT /
data android:scheme=connectpro /
/intent-filter

So, browsable is also set and schema is set to 'connectpro'. 

but when i try accessing it on web as connectpro:// it goes to google 
search page and do not launch the app. This is true for chrome, google 
default browser on my samsung tab and also on opera. But on firefox, it 
realise that its URI of app and ask to launch the app. But on Firefox, it 
does same even if app is installed or not. 

Can you please help? To note, this app is third party free app and so i can 
not change any thing in its manifest file. But the current manifest file 
seems have required configuration to launch from weblink but somehow it 
does not work.


Jignesh


On Monday, 2 May 2011 21:30:24 UTC+5:30, Dianne Hackborn wrote:

 This has been used in Android since 1.0 by apps like Market, YouTube, and 
 Gmail to allow the user to select to go to the app which clicking a link 
 from the browser.  The sample code I showed is the actual code in Market. 
  This definitely does work, on every version of Android.

 Re: using custom schemes -- it is fundamentally broken to randomly define 
 new schemes that appear on web pages, because schemes are a universal 
 namespace so it is extremely easy to have conflicting schemes with had 
 results.  This is why on Android we strongly recommend intercepting URIs 
 based on real web site URIs.  This also allows decent graceful fallback for 
 the case where there is not an app that knows how to intercept the URI -- 
 the URI can still be shown as an actual web page, with whatever you want 
 including instructions on how to download and install your app.

 If iOS doesn't support this...  well, I can't make them allow for a 
 non-broken way to do this. :}  Android *does* allow you to intercept just 
 by scheme, we just discourage this because it is fundamentally flawed.


  

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

[android-developers] hi. i currently developing android games today an Bluetooth enabled multiplayer games. how can i connect the Bluetooth of booth android phone..?? if u can help me guys i am very t

2012-09-05 Thread redwolfgang20


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

2012-09-05 Thread same bang
Hi All ,
 
I experience same issue to test alert / promt alert.
 
I implement activityinstrumentationtestcase to test all stuff but not able 
to make automatically selection of alert box option's(OK/Cancel/Remind me 
later).
 
Any suggestion would be appreciate.
 
--
Same 
  
On Wednesday, 14 January 2009 15:30:53 UTC+5:30, singlemalt wrote:

 I'm attempting to write some integration tests using the Activity 
 instrumentation test case framework. 

 Here's the scenario: 
   (1) An Activity presents some data as a form for the user to 
 complete. 
   (2a) If data submission is successful the form Activity launches a 
 new Activity. 
   (2b) If data submission fails an alert prompt is displayed by the 
 form Activity . 

 I can test the success path (2a) using an ActivityMonitor to check the 
 launched Activity but am unsure how to write a test that verifies the 
 alert prompt is raised if the failure path (2b) is hit. I can see ways 
 to do this by adding special flags to the form Activity but would 
 prefer to avoid altering the system under test with functionality that 
 is only used for test. 

 Any ideas? 

 Thanks, 
 Doug. 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 write NFC-V (ISO15693) tags on Nexus S?

2012-09-05 Thread chaochao
Hi, did you solve it? or any other information.
Does nexus really can write a RFID tag?

在 2011年9月21日星期三UTC+2下午12时17分20秒,Giovanni写道:

 Hello everybody, 
 I'm trying to write a RFID tag on a Nexus S (android 2.3.4) using the 
 NFC-V technology. AFAIK, this is done sending raw ISO15693 commands to 
 the tag using the method android.nfc.tech.NfcV.transceive(). 

 Unfortunately, calling transceive with a write single block command 
 (0x21) invariably leads to a: 
 java.io.IOException: transceive failed 
 without further information (no inner stack trace or logging info) 

 Both read multiple tags (0x22) and stay quiet (0x02) work 
 flawlessly. I'm sure the tag is writable, since other devices can 
 update it. I tried both addressed and un-addressed mode, option flag 
 set/unset, high/low data rate, and also write multiple tags (0x24), 
 but had no success. 

 Has anyone succeded in writing ISO15693 tags on the Nexus S? Any help 
 would be really appreciated. 

 Thank you! 
 Giovanni

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Not able to download Google play services in extras folder

2012-09-05 Thread WorldsWidestWeb
Hi all,

 I also facing the same isssue. Please let me know, is any alternative way 
to download GoolePlayServices.jar directly.

Thanks
WorldsWidestWeb

On Thursday, 30 August 2012 11:25:54 UTC+5:30, ANKUR1486 wrote:

 Hi all , 

 i just updated the extras folder with Google play services ..but it says 
 not able to download folder .

 Can anybody help is something wrong with server .
 Thanks
 Ankur Goel



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

2012-09-05 Thread Matthew Carey
Some of the modules (motorola/htc) the sdk manager downloads require 
username/password combinations before the process proceeds. It would be 
nice if these requirements could be dealt with at the beginning of the 
process rather than stopping midway and waiting for input before the 
lengthy process can continue. I left this running over the weekend just to 
find it paused a quarter the way through the long slow batch process.

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

[android-developers] PasswordTransformationMethod in HTC Sensation XL with Android 2.3.5

2012-09-05 Thread Santiago Gilabert
Hello,

When I use PasswordTransformationMethod with HTC Sensation XL (Android 
2.3.5) It crashes when I touch the TextView (if already have a value). I 
tested the same application on Samsung N7000-Galaxy Note (Android 2.3.5) 
and works fine.  I tested with Samsung Galaxy Ace (Android 2.3.4), Samsung 
Nexus S (Android 4.1) and works fine.

It seems it is related with HTC devices. The reason I'm using a TextView 
instead of an EditText is because we use a build-in keypad. We can't use 
EditText, because Android keypad appears when the user touches the 
component.

Please see the stacktrace below. 

Do you know how can I solve it?

Thanks in advance,
Santiago

09-03 15:17:29.671: ERROR/EmbeddedLogger(1481): 
java.lang.NullPointerException
09-03 15:17:29.671: ERROR/EmbeddedLogger(1481): at 
com.htc.embedded.EmbeddedLogger.onHandleApplicationCrash(EmbeddedLogger.java:56)
09-03 15:17:29.671: ERROR/EmbeddedLogger(1481): at 
com.android.server.am.ActivityManagerService.handleApplicationCrash(ActivityManagerService.java:7735)
09-03 15:17:29.671: ERROR/EmbeddedLogger(1481): at 
android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:1033)
09-03 15:17:29.671: ERROR/EmbeddedLogger(1481): at 
com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:1657)
09-03 15:17:29.671: ERROR/EmbeddedLogger(1481): at 
android.os.Binder.execTransact(Binder.java:320)
09-03 15:17:29.671: ERROR/EmbeddedLogger(1481): at 
dalvik.system.NativeStart.run(Native Method)
09-03 15:17:29.671: ERROR/EmbeddedLogger(1481): Application Label: ERROR
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): FATAL EXCEPTION: main
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): 
java.lang.NullPointerException
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
android.widget.TextView.onTouchEvent(TextView.java:7579)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
android.view.View.dispatchTouchEvent(View.java:3933)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:906)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:906)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:906)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:906)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:906)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:906)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:906)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1877)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1211)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
android.app.Activity.dispatchTouchEvent(Activity.java:2228)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1852)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
android.view.ViewRoot.deliverPointerEvent(ViewRoot.java:2401)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
android.view.ViewRoot.handleMessage(ViewRoot.java:2014)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
android.os.Handler.dispatchMessage(Handler.java:99)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
android.os.Looper.loop(Looper.java:150)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
android.app.ActivityThread.main(ActivityThread.java:4389)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
java.lang.reflect.Method.invokeNative(Native Method)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
java.lang.reflect.Method.invoke(Method.java:507)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
09-03 15:17:29.671: ERROR/AndroidRuntime(12959): at 
dalvik.system.NativeStart.main(Native Method) 

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

2012-09-05 Thread Nelson André
Hello all,

I'm building my first application.

I have a website that returns me a JSON list with name and lat/long 
coordinates of some locations.

How can I show that list on screen with a column with the distance from my 
current location to each of the locations, ordered by closest on top?

Thanks in advance!

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

Re: [android-developers] soap

2012-09-05 Thread manjeet singh
Check This:

SOAP_ACTION = NAMESPACE(web service url) + method(soap method name in
server side)
Example:
SOAP_ACTION = NAMESPACE + method;
SoapObject request = new SoapObject(NAMESPACE, mathod);
request.addProperty(key, value);

SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE httpTransport = new HttpTransportSE(URL);
httpTransport.call(SOAP_ACTION, envelope);
SoapObject sobj = (SoapObject) envelope.getResponse();
*parse the soap object here.*

On Mon, Sep 3, 2012 at 4:39 PM, rauf qureshi qureshira...@gmail.com wrote:

 hello everyone,

 can anybody  explain me SOAP service
 I have found many example but i have not cleared  following parameters

 NAME_SPACE
 METHOD
 SOAP_ACTION
 URL

 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




-- 
Thanks  Regards,
Manjeet http://www.vihangamyoga.org/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 in AVD creating virtual machine when PC is in domain with folder redirection

2012-09-05 Thread osto
Hi,
 
I have a config with domain and the documents folder is redirected to 
\\server\home$\osto.domain\documents. So the folder 
c:\users\osto.domain\documents is redirected to 
\\server\home$\osto\documents.
When I create a new AVD, it needs more than 10 minutes to create. Then I 
start the AVD and get the message: PANIC: could not open 
c:\users\osto\.android/avd/machine.ini
The directory c:\uesers\osto.domain\.android is not redirected and should 
be in found on the local machine but this folder doesnt exist on he local 
machine. The folder exists on the server (first bug). When I look at the 
details, I see the server folder not the local machine folder.
When I let AVD open, copy the ini file from server to local machine, then I 
can start the virtual machine. When I close AVD and start again, the 
machine is marked as not startable. Details says that it cannot access to 
the config file on server. But the config file is available exactly on the 
expected place (second bug).
It makes no sense what I do. I couldnt start the virtual machine anymore. I 
have to delete, copy the ini file, start and use until I close the AVD and 
start again next time from scratch. When I login into the pc as local user 
then everything is working fine.
 
Have anybody an idea how to solve the problem?
Can anybody help me to find a work around?
 
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] Google APIs not listed in Android SDK Manager

2012-09-05 Thread Richard
I've downloaded the recent Android SDK. All the tools are shown except for 
Google APIs by Google, Inc. This is preventing me from inserting a google 
map into my app. Has anyone else experienced this? 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] get parameter in Android activity from servlet

2012-09-05 Thread chaming-_-eyes


How can I get parameter from servlet with a specific name in android 
activity?

like in java servlet request.getParameter(name);?

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

[android-developers] Please help me how to auto refresh every seconds my xml file list activityv from my UI

2012-09-05 Thread jal
Dear all,

Please help me how can I auto refresh my application here's my code 

package com.show.insaforexquotes;


import java.util.ArrayList;
import java.util.HashMap;



import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;

import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ListAdapter;
import android.widget.SimpleAdapter;





public class Activityinstaforexquotes extends ListActivity {
  
 // All static variables
static final String URL = url;
// XML node keys
static final String KEY_item = item; // parent node
static final String KEY_symbol = name;
static final String KEY_BID = middlename;
static final String KEY_ASK = surname;

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

ArrayListHashMapString, String menuItems = new 
ArrayListHashMapString, String();

quotesXMLParsing parser = new quotesXMLParsing();
String xml = parser.getXmlFromUrl(URL); // getting XML
Document doc = parser.getDomElement(xml); // getting DOM element

NodeList nl = doc.getElementsByTagName(KEY_item);
// looping through all item nodes item
for (int i = 0; i  nl.getLength(); i++) {
// creating new HashMap
HashMapString, String map = new HashMapString, String();
Element e = (Element) nl.item(i);
// adding each child node to HashMap key = value
map.put(KEY_name, parser.getValue(e, KEY_name));
map.put(KEY_middlename, parser.getValue(e, KEY_middlename));
map.put(KEY_surname,  parser.getValue(e, KEY_surname));

// adding HashList to ArrayList
menuItems.add(map);
}

// Adding menuItems to ListView
ListAdapter adapter = new SimpleAdapter(this, menuItems,
R.layout.showquotes,
new String[] { KEY_name, KEY_middlename, KEY_surname }, new int[] {
R.id.namel, R.id.middlename, R.id.surname });

setListAdapter(adapter);
  }
 } 
 
  How can I put the method of auto update every seconds like time in my 
application please help me thank you... I'm a newbie here :) 
 
  




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

2012-09-05 Thread Suparna Dey
 

I am using ContentProvider, CursorLoader and ListFragment. In 
onActivityCreated() method of ListFragment, I am calling initLoader()to 
load already inserted record from database into ListFragment. In onResume() 
of ListFragment I have also started a IntentService to insert another 10 
rows. My data is inserted into the database, but the ListFrament is not 
refreshed. onLoadFinished()method is not called for second time, though 
inside ContentProvider in Insert(),update() and delete() method I have 
added 

getContext().getContentResolver().notifyChange(_uri, null);

I think passing null for observer is ok as in “Grep code”, I checked that 
CursorLoader has registerContentObserver () method. The adapter definition 
is as followed.

new SimpleCursorAdapter(getActivity(), android.R.layout.simple_list_item_2, 
null, new String[]{ book_title, book_author }, new int[]{ 
android.R.id.text1, android.R.id.text2 }, 0);

 

In ContentProvider Query() method I have also added 

c.setNotificationUri(getContext().getContentResolver(), uri);

 

If I call restartLoader() then only the ListFragment  get refreshed.

Please let me know how can I observe database with CursorLoader or any 
other Loader.

Am I missing any step? Or can you refer me any site how to observe content 
with CursorLoader?

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

[android-developers] WTA: how to print directly to wifi printer

2012-09-05 Thread Budi Hartono
hello,
i have see that epson SDK can print directly to network printer using lan
or wifi. i have tested with their SDK and running well.
but the problem is, i need use to at another brand, zicox. the printer is
mobile printer that use ip as the protocol.
the printer used to work with esc/pos.

but the real problem is how to connect to the ip directly.
i searching and got nothing.

could you help?

thx

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

[android-developers] activity layout background

2012-09-05 Thread yoje
I have some question about activity layout background.
When i set some drawable resource to the layout background via 
xml:  android:background=@drawable/back_image, it works fine for me until 
i want to do some changes programmaticaly. Programaticaly, in this way:
final View root = ok.getRootView();
root.setBackgroundDrawable(getResources().getDrawable(R.drawable.another_image));
and it`s not working.  Then I found the other way:
 final View root = (View) 
ok.getParent().getParent();
 
root.setBackgroundDrawable(getResources().getDrawable(R.drawable.another_image));
it changes the view fine, but somehow the top of background resource is cut 
by a phone Title bar. When the background image sets from xml file, the 
system strechs the image exactly above a layout, and in program way the 
image is cut. How to force the image will strech in program way, like in 
xml?

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

[android-developers] Recording High Frequencies ,can not working well in htc one x,nexus on .

2012-09-05 Thread tom tang
I need to record frequencies above 20kHz. My program can work well in 
almost devices,but it can not work well in htc one x,nexus on .
ts like the phone has a low pass filter that eliminates these  frequencies ,
Anybody knows how can I fixed this bug?? TKS!!

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

2012-09-05 Thread Tarun Sharma
Hi,
Hi,

Please help me out ...

I had successfully implemented InApp billing with managed products. Now 
upgrade that with subscription (IAB V2). 
I had done all changes that required for subscription as mention in below 
link.

http://developer.android.com/guide/google/play/billing/billing_subscriptions.html

And On my research I found that Purchase token is recieved along with the 
JSON(Signed data) on successful purchase for subscription.
The demo's Security.java on successful verification of signature parses 
Json however the parsing of element Purchase-token is missing here.
I haven't yet run the code since subscription doesn't have test product-ids 
and requires actual purchase.
What I want to know is this token be parsed here or is the sample code 
provided has this part correctly implemented.

If token to be parsed then what changes should be done in 
BillingService.java,ResponseHandler.java, Security.java and 
PurchaseDatabase.java for PurchaseToken.


On Tuesday, 4 September 2012 15:01:53 UTC+5:30, Oleg Pravdin wrote:

 Hi,

 Is there any way to test in-app subscription using test account? I've 
 uploaded an unpublished app. to market and published a monthly item for it. 
 When I try to buy the subscription using one of the test accounts. Google 
 requests me to provide Credit card info. to create a new Wallet account.

 Is it safe to provide CC. details as I just want to test subscription. 
 Will test user be charged for subscription?


 - Thx


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

[android-developers] Purchase-token is missing here

2012-09-05 Thread Tarun Sharma
Hi,

Please help me out

I had successfully implemented InApp billing with managed products. Now
upgrade that with subscription (IAB V2).
I had done all changes that required for subscription as mention in below
link.

http://developer.android.com/guide/google/play/billing/billing_subscriptions.html

And On my research I found that Purchase token is recieved along with the
JSON(Signed data) on successful purchase for subscription.
The demo's Security.java on successful verification of signature parses
Json however the parsing of element Purchase-token is missing here.
I haven't yet run the code since subscription doesn't have test product-ids
and requires actual purchase.
What I want to know is this token be parsed here or is the sample code
provided has this part correctly implemented.

If token to be parsed then what changes should be done in
BillingService.java,ResponseHandler.java, Security.java and
PurchaseDatabase.java for PurchaseToken.



-- 

Best Regards and Thanks !!

*
Tarun Sharma*

***Balaji Websoft Technology Pvt. Ltd.***

* *M: +91-9413934366

Skype: tarunudr
E: ta...@baltech.in
W: www.baltech.in
*Together We Can *

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

2012-09-05 Thread Tom
Hello!
I know that there has been much discussion about usefully 
interpreting acceleration data. The phone I'm testing on doesn't have a 
gyroscope, so can't do sensor fusion and can't output linear acceleration. 
As my (measuring) app would only need to measure acceleration in the 
y-direction, I wondered if I could use a gravity resultant vector to 
approximate y-movement. Therefore as a test I took the 3 accelerometer 
readings and combined them into a resultant vector, which i hoped would 
have magnitude 9.81. It doesn't. With the phone lying on the table it gives 
about 8.5, but this changes in different orientations. Ideally it would be 
at 9.81 whenever the device was stationary.
Am I missing something, or are the sensors just too noisy/not accurate 
enough? Should I just give up on this as nobody seems to have been able to 
make a device track position yet? I don't have a device to test linear 
acceleration on, but am guessing that it's still really not good enough.

Cheers,
Tom

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

Re: [android-developers] Re: How to get and post JSON with Android?

2012-09-05 Thread sanandiya rajesh
On Mon, Sep 3, 2012 at 9:44 AM, sanandiya rajesh 
sanandiya.rajes...@gmail.com wrote:


 Hi

I am android developer. Recently i made one application connection with
 sql server with my android application.I use JTDS lib driver for
 connection.My application completely running in android 2.2,2.3. But i run
 Application HCL me u1 (android4.0.3) it give exception.
 Java:sql:Exception:BUFFERDIR connection property invalid.
 What is solution for that
 Please give me Answer.

 One more Question, JTDS not Supported Android4.0.3?

 Thank you


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

[android-developers] AndEngine (GLES2) examples?

2012-09-05 Thread Shoaib Dar
I am trying to get started working with AndEngine, but i cannot find 
examples of AndEngine (GLES2) programs online.  i can only find 2 basic 
sample projects.
Can anyone help me out?

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

[android-developers] What is the use of persist.img ?

2012-09-05 Thread goel
What is the use of persist.img and what are its content? I have asked the 
same question on stackoverflow 
[link]http://stackoverflow.com/questions/12256604/what-is-the-use-of-persist-img-in-android
 but 
did not get an appropriate answer. See if anyone could help me out with 
this.

Thanks,
Goel

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

[android-developers] How to change the Blue Line below Title in AlertDialog.

2012-09-05 Thread Shan Ul Haq
Hi, 

I cannot find any style property that changes the blue line under title of 
the AlertDialog. can anyone please let me know how to do that ?

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

Re: [android-developers] Problem Getting the first and last day of current week.

2012-09-05 Thread aashish sharma
On Sep 3, 2012 7:33 PM, Seshu s.seshu...@gmail.com wrote:

 Hi All,
  I am using Calendar objects in my application and based on
 the current date i am retrieving first and last date of current week.
 In emulator o/p is coming as week starting from Sunday to Saturday
 correct and in some device the o/p is showing as Monday to Sunday. I
 used same code in java. there also o/p is showing from Sunday to
 Saturday only. i need the output as Sunday to Saturday only. I used
 these code..

 Calendar cal = Calendar.getInstance();
 int weekOfYear =
 cal.get(Calendar.WEEK_OF_YEAR);
 cal.set(Calendar.WEEK_OF_YEAR, weekOfYear);
 SimpleDateFormat formatter = new
 SimpleDateFormat(MM/dd/);

 Calendar first = (Calendar) cal.clone();
 first.add(Calendar.DAY_OF_WEEK,
 first.getFirstDayOfWeek() -
 first.get(Calendar.DAY_OF_WEEK));
 Calendar last = (Calendar) first.clone();
 last.add(Calendar.DAY_OF_YEAR, 6);

 String fromDate =
 formatter.format(first.getTime());
 String toDate =
 formatter.format(last.getTime());

 If anybody knows the reason means then plz tell me the solution. if
 these method is wrong means then plz send the code

 Thanks for All,
 S.Seshu

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

2012-09-05 Thread Steffen Köhler
Hi,

I am writing an app that takes photos and saves them into a file. On my 
SGS2 (4.0.3), the pictures are saved with an EXIF-Orientation flag. 
Unfortunately this flag is not handled by many applications (including the 
android gallery) and so I'd like to rotate my pictures before saving them. 
- By the way: the native camera on my phone doesn't use the 
EXIF-Orientation either.
I have already tried to rotate the pictures by converting them into a 
bitmap, then do the rotation and afterwards saving them as jpeg. But all in 
all this takes about 5sec each time.
Is there an option which disables exif? Or a fast implementation for the 
rotation? ... ?

Bye,
Steffen

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

[android-developers] beagrep: a great tool for reading android source code

2012-09-05 Thread Bao Haojun
Hi, all

Beagrep is an open source project of using beagle (an open source
desktop search engine) and grep together.

It can grep 2G source code in 2 seconds. It is wonderful for reading
large projects's source code, such as android.

For more infomation, please check my github page:
http://baohaojun.github.com/beagrep.html

-- 
All the best

 Bao Haojun

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


[android-developers] Google Licensing API - how to get public key from keystore

2012-09-05 Thread Ristar
so... i have finished an app and would like to publish, but all of a 
sudden, i spotted this Google Licensing API and thought that it would be 
pretty cool to incorporate it into the code.

anyway, in the sample code Google put in... there's this String

[CODE]
private static final String BASE64_PUBLIC_KEY = REPLACE THIS WITH YOUR 
PUBLIC KEY;
[/CODE]

so... the question is, how do i get the public key from the keystore that i 
created with Eclipse?

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

[android-developers] Simple calculate button help

2012-09-05 Thread Ryan Watts
Greetings I am developing an Android App that is a simple calculator of 
several fields. I am new to programming so I keep getting stuck at one of 
my lines of code. I have already set up the design and added my 
declarations to the label. Now I am trying to write the initial script of 
which will actually computer my formula. The formula lies within the button 
labeled  Calculate Here is what I have thus far. Please give some advice 
on how you would approach this type of formula. 

?xml version=1.0 encoding=utf-8?
s:View xmlns:fx=http://ns.adobe.com/mxml/2009; 
xmlns:s=library://ns.adobe.com/flex/spark title=Percentage Calculator
 fx:Script
![CDATA[
protected function btnCalculate_clickHandler(event:MouseEvent):void
{
// TODO Auto-generated method stub * Insert Formula Here *
get
}
]]
/fx:Script
 fx:Declarations
!-- Place non-visual elements (e.g., services, value objects) here --
/fx:Declarations
s:Label id=lblBillAmount x=7 y=80 text=Bill Amount : /
s:TextInput id=txtBillAmount x=103 y=69 width=155/
s:Label id=lblTipPercent x=7 y=121 text=TipPercent%/
s:TextInput id=txtTipPercent x=105 y=111 width=155/
s:Label id=lblAnswer x=85 y=208 width=189 height=36/
s:Button id=btnCalculate x=135 y=248 label=Calculate
  click=btnCalculate_clickHandler(event) color=#063EB1 
fontFamily=_typewriter/
s:Label id=lblTipAmount x=7 y=164 text=TipAmount$/
s:Label id=txtTipAmount x=105 y=152 width=155 height=33/
/s:View

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

[android-developers] please help me

2012-09-05 Thread awanish pandey
i have problem when i run hello project on emulator on 4.1 android

[2012-09-05 09:02:57 - Emulator] could not get wglGetExtensionsStringARB

[2012-09-05 09:02:57 - Emulator] Failed to create Context 0x3005

[2012-09-05 09:02:57 - Emulator] could not get wglGetExtensionsStringARB

[2012-09-05 09:02:57 - Emulator] emulator: WARNING: Could not initialize 
OpenglES emulation, using software renderer.

[2012-09-05 09:02:57 - Emulator] could not get wglGetExtensionsStringARB

[2012-09-05 09:02:57 - Emulator] could not get wglGetExtensionsStringARB

[2012-09-05 09:02:57 - Emulator] could not get wglGetExtensionsStringARB

[2012-09-05 09:02:57 - Emulator] could not get wglGetExtensionsStringARB

[2012-09-05 09:02:57 - Emulator] could not get wglGetExtensionsStringARB

[2012-09-05 09:02:57 - Emulator] could not get wglGetExtensionsStringARB

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

2012-09-05 Thread Metaphore
Hi, I have a same aim!
I'm search for solution about a week, and seems it impossible to solve by 
standard API.
But some apps in PlayStore tells that solution exist...

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

2012-09-05 Thread mehdi Ox
Hi Guys,

i'm making an Android game and i want to know if accelerometer or another 
tool (in smartphone) can detect this special mouvement = The smartphone 
will be laid on a fixed object just like desktop and it will be called to 
provide specific informations : X and Y of any movement.




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

2012-09-05 Thread swesdo4ka66
Hi guys,

I need to develop an android app that should be able to write to an NDEF 
formatted tag dynamic data. 
I have looked at NFC Eclipse Plugin, which is an example of writing a 
static content. 
Basically on the NFCWriterActivity I need to access the database using web 
services and read IDs from a table into a ListView, then on Select an ID 
ask the user to swipe a tag.

Do I need to create any other classes/activities to do so? Can it be done 
within  NFCWriterActivities Code?


Please help.

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

[android-developers] Concatenate EditText gives NullPointer Error

2012-09-05 Thread Plasma
Please help me fix the error in the code here - http://www.fpaste.org/HzoM/.

The error I am gettting is:

09-04 08:32:40.524: E/AndroidRuntime(644): FATAL EXCEPTION: main 09-04
08:32:40.524: E/AndroidRuntime(644): java.lang.NullPointerException
09-04 08:32:40.524: E/AndroidRuntime(644): at
com.vodacom.nollyviewer.Searchnolly.SearchVideos(Searchnolly.java:109)
09-04 08:32:40.524: E/AndroidRuntime(644): at
com.vodacom.nollyviewer.Searchnolly$1.onClick(Searchnolly.java:71)
09-04 08:32:40.524: E/AndroidRuntime(644): at
android.view.View.performClick(View.java:2485)

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


[android-developers] Capture Audio - Live Encoder

2012-09-05 Thread Oscar
I want to develop an application for Android 2.2 that capture the audio 
that is transmitted using Adobe Flash Media Live Encoder 3.1
Is there a class that would help me do that?

ps: the url begins like rtmp:// so the windows media player class, as 
long as i know, does not work. 

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

[android-developers] SoftKeyboard sample viewing wrong in Galaxy Nexus

2012-09-05 Thread nsL
Hi all,
I was about to learn how to make a custom input method, so i decided to try 
first the sample coming with the SDK on my galaxy nexus. And this is what i 
got (no modify on sources):
https://lh3.googleusercontent.com/-YSQ8lmbBM3I/UEY8WITUNzI/AFA/MhHNwP1AeI8/s1600/Screenshot_2012-09-04-19-31-53%5B1%5D.png
There are 2 gaps (transparent) near a and l letters. As it sounded 
weird for me, i tried the same sample/code on the jelly bean emulator, and 
looks a little different:
 http://img442.imageshack.us/img442/8510/screenxzo.png
How is this possible? The only thing appearing to change between the 
emulator (4.1.1) and my Galaxy Nexus (4.1.1) its the kernel (2.6.29 on 
emulator vs 3.0.31 on Galaxy Nexus).
I also tried the same samples of previous API levels (8,10,13  etc) all 
of them in an emulator (viewing them correct) and in my Galaxy Nexus 
(viewing them with gaps).
Can anybody try this to see if its also happening?
PS: I did reboot the phone, if you are about to tell :D
Regards!

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

[android-developers] Jelly Bean Speech Recognition API (local ASR)

2012-09-05 Thread Nicolamaria Manes
how can the new local speech recognition engine of jelly bean version of 
android
can be used by developers

thanks in advance
Nicola

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

[android-developers] Generate R file for an added to a project package

2012-09-05 Thread swesdo4ka66
Hi there,

I added a new package to my project, how to generate the R file for it? 


Thanks
:)

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

[android-developers] Google Cloud Messaging-C2DM

2012-09-05 Thread NibaLabs
Hai All,

I was experimenting with GoogleCloudMessaging (GCM-C2DM). After lot of
efforts i set up an environment with following Sepc

Client : Android
Server : ASP.Net hosted in the cloud

Problem: I am getting immediate response in Intel XOLO, running
Android Gingerbread immediately, were as i am getting the messages in
Samsung Galaxy S2 running ICS after a long delay (say 3-5+ mins).

Questions:
  1 Is this a design feature of GCM, or a known
issue.
   2Is there is a fix, so that messages get delivered
immediately

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: how to manipulate the display at OS level

2012-09-05 Thread Lian Balan
I need help with Android. Anybody who knows how to manipulate the display 
at OS level. 
e.g. change colors on all icons/background of the display. Pls email 
lianbalan at gmail dot com. 
If you live in Seattle, we can meet for a dinner/lunch at your convenience. 
Thank you.

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

Re: [android-developers] School project help needed.

2012-09-05 Thread rambabu mareedu
Hi domin you can contact me to my mail id rambabu.mare...@gmail.com for
assistance

On Tue, Sep 4, 2012 at 8:48 AM, Domin8rJ limjunjie621...@gmail.com wrote:

 Hi everyone, I was asked to create an Android application for my school's
 final year project, but I have zero experience in this area.. had never
 programmed an app before..

 So.. Is there any tips or tricks in this field of programming for somebody
 new like me? Any references sites, other good forums, videos, or just
 anything that would help get me started?
 Also, is there some sort of 'easy' ideas, that is not complicated at all,
 an app idea that will be easy to pick up and be completed in 12 weeks(the
 duration of my project), even for someone like me? I really have no idea
 where I can start right now.

 In my 3 years of study, I have dabble in very basic programming(c#/c++ and
 nothing else) and wasn't really very good in it, and like I mentioned
 above, I had never did an app before, nor had programmed anything in such a
 large scale(to me), so I would appreciated any help I can get..

 Please let me know if this particular question had already been asked
 before, because if so, I am so, so sorry.. will you please provide me with
 the link to the right post? I would appreciate it a lot, thanks.

 Thanks a lot in advance.

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




-- 
Regards
Rambabu Mareedu
9581411199

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

2012-09-05 Thread Pau Rodríguez Coloma
 

Thanks to all for your help. MagouyaWare, you are right , I've this line in 
my XML file but not in the correct place, I've the xmlns:android at the 
beginning of my main RelativeLayout and the xmlns:app at the end of this 
RelativeLayout. I don't know how it has come there, I've never seen this 
line before. No matter, now I know what I've to do and I'll take more care 
next time.

About the other question I think there can be only two possibilities: A bug 
or my iMac is crazy. I'm completely sure that when I wrote the first post 
if I push ctrl+space inside of my custom view block (in the layout xml 
file) only my custom attributes and the basic default attributes (like 
aligns, width, height…) appears on the autocomplete list, but not the 
specific attributes of the view that I'm extending, in this case an 
ImageView (android:src, android:scaleType…). When I've read your answers 
I've thought you have not understand what I'm saying and I've tried to make 
screenshots for explain better my problem, but what a surprise!!! Now 
ctrl+space autocomplete all the defaults attributes (also android:src, 
android:scaleType) but not the custom attributes. I can promise you that 
what I'm saying is true, I've been experimenting strange behaviors from 
some time ago with autocomplete or xml errors that can be solved closing 
the file and sometimes also reinitiating eclipse. Some colleagues have had 
similar issues, maybe someone of google could investigate about it.

Thanks in advance. 

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

Re: [android-developers] dynamic app downloaded from google play

2012-09-05 Thread Rudolf Hornig
Take a loog at google mobile analytics. It does gather referrer information 
(i.e. the URL that was used to reach the googlePlay store). I'm not sure 
abut the referrer site, but you can supply URL parameters to the Play Store 
url. After installation those parameters are sent to your program in a 
broadcast:

analytics does this by implementing a listener:

receiver

android:name=com.google.analytics.tracking.android.AnalyticsReceiver
android:exported=true
tools:ignore=ExportedReceiver
intent-filter
*action 
android:name=com.android.vending.INSTALL_REFERRER /*
/intent-filter
/receiver


I have not used this myself tough..
On Tuesday, September 4, 2012 6:08:32 PM UTC+2, TreKing wrote:

 On Tue, Sep 4, 2012 at 8:48 AM, Marcelo Tomio Hama 
 hama.ma...@gmail.comjavascript:
  wrote:

 So, how can I properly implement this?


 I don't think you can.
  

  Does GooglePlay store provide a way to pass dynamic arguments to 
 downloaded apps?


 No.
  

 Is it possible to pass a dynamic configuration file coupled with the .apk 
 in app download-time?


 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

[android-developers] Re: Program crashes on Android 4.0.4 but not on 2.3.3

2012-09-05 Thread Safy
Hi,

  We are also facing the same issue, when we start another activity, the 
new activity get launched, but the current get destroyed. I have seen the 
log and onStop() and onDestroy of that activity is called on that activity. 
The issue is seen on Nexus 4.0.4 and few other 4.0.4 devices. We also have 
Nexus 4.0.4 devices, but this issue is not reproducible on our devices. We 
are getting crash log from the Customer which indicates when other activity 
is launched, the current activity get destroyed. Our application is a 
singleTask Application, hence when we start another activity from the 
Activity which has a launch mode singleTask. The launching activity 
onStop() and onDestroy() is called and hence the application closes. The 
issue is seen on 2 out of 10 Customer using Samsung Nexus 4.0.4. The issue 
is not seen on other Android OS.

Thanks.

On Sunday, April 15, 2012 9:36:19 AM UTC+5:30, James Black wrote:

 Hello,
   I am trying to understand what may be happening in my program.  I don't 
 get any indication as to why it is crashing, but the basic flow is:
 First activity starts
 user selects to see map
 Remote Service starts up
 Almost immediately after binding to and calling onStart on the service the 
 mapview activity dies.

 There is nothing in the logcat to help explain what may be going on.

 This works fine on 2.3.3.

 This is from my manifest:
 uses-sdk
 android:minSdkVersion=7
 android:targetSdkVersion=11 /

 I don't know if it could have anything to do with this.

 Any idea how I may want to gather more information?

 I put a breakpoint in onDestroy but that didn't help in any way.

 When I don't bind to the service it still exits, so it appears the problem 
 has nothing to do with the service.

 -- 
 I know that you believe you understandst what you think I said, but I'm 
 not sure you realize that what you heard is not what I meant.
 - Robert McCloskey
  

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

[android-developers] Update Activity

2012-09-05 Thread Ehsan Sadeghi


I use this code as a broadcast receiver : 

package ir.smspeik.sms;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.SmsMessage;
import android.widget.Toast;

public class ReceiveSms extends BroadcastReceiver{
 @Override
 public void onReceive(Context context, Intent intent)
 {
 //---get the SMS message passed in---
  //---get the SMS message passed in---
  Bundle bundle = intent.getExtras();
  SmsMessage[] msgs = null;
  String str = ;
  if (bundle != null)
  {
  //---retrieve the SMS message received---
  Object[] pdus = (Object[]) bundle.get(pdus);
  msgs = new SmsMessage[pdus.length];
  for (int i=0; imsgs.length; i++){
  msgs[i] = SmsMessage.createFromPdu((byte[])pdus[i]);
  //str += SMS from  + msgs[i].getOriginatingAddress();
  //str +=  :;
  str += msgs[i].getMessageBody().toString();
  //str += \n;
  }
  
  //---display the new SMS message---
  //Toast.makeText(context, str, Toast.LENGTH_SHORT).show();
  //---launch the MainActivity---
  Intent mainActivityIntent = new Intent(context, 
ir.smspeik.sms.GetResponse.class);
 mainActivityIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  context.startActivity(mainActivityIntent);
  //---send a broadcast to update the SMS received in the activity---
  Intent broadcastIntent = new Intent();
  broadcastIntent.setAction(SMS_RECEIVED_ACTION);
  
  //intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK
  broadcastIntent.putExtra(sms, str);
  context.sendBroadcast(broadcastIntent);
 this.abortBroadcast();
 // this.clearAbortBroadcast();
  }
  }
 }

and this activity to receive sms and show it : 

package ir.smspeik.sms;

import android.R.string;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;

public class GetResponse extends Activity{
 IntentFilter intentFilter; 
 String[] sms;
 private BroadcastReceiver intentReceiver = new BroadcastReceiver() {

  @Override
  public void onReceive(Context context, Intent myint) {
   // TODO Auto-generated method stub
   Toast.makeText(context, intetn., Toast.LENGTH_SHORT).show();
  String[] s = myint.getExtras().getString(sms).split(-);
  for(String i : s)
  {
   Toast.makeText(context, i, Toast.LENGTH_SHORT).show(); 
  TextView ed = (TextView) findViewById(R.id.txtMessageNo);
  ed.setText(i);
  }
  
  //TextView tNo = (Button) findViewById(R.id.txtMessageNo);
  //tNo.setText(ehsan);
  }
 
 };
 
  @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.getresponse);
   intentFilter = new IntentFilter();
 intentFilter.addAction(SMS_RECEIVED_ACTION);

 //---register the receiver---
 registerReceiver(intentReceiver, intentFilter);
 
  }
  
 public void onStart()
 {
 super.onStart();

 }
 public void onRestart()
 {
  //registerReceiver(intentReceiver, intentFilter);
 super.onRestart();

 }
 public void onResume()
 {
 // registerReceiver(intentReceiver, intentFilter);
 super.onResume();
 
 }
 public void onPause()
 {
 // unregisterReceiver(intentReceiver);
 super.onPause();

 }
 public void onStop()
 {
 super.onStop();
 
 }
 public void onDestroy()
 {
  unregisterReceiver(intentReceiver);
 super.onDestroy();

 }
 
 }
 
and the activity is register in manifest in below order : 

 activity
android:name=.GetResponse
 android:launchMode=singleTask
   android:label=@string/title_activity_main 
intent-filter
action android:name=ir.smspeik.sms.GetResponse /

category 
android:name=android.intent.category.DEFAULT /
/intent-filter
/activity
receiver android:name=.ReceiveSms  
intent-filter android:priority=999
action 
android:name=android.provider.Telephony.SMS_RECEIVED/action
/intent-filter
/receiver
   

But first time application run and a sms 

Re: [android-developers] Update Activity

2012-09-05 Thread Asheesh Arya
check your permission in android manifest file

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

[android-developers] soap request parameter

2012-09-05 Thread rauf qureshi
hello everyone

can anybody tell me how to send soap request in the following format in
android


?xml version=1.0 encoding=utf-8?
soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:soap=
http://schemas.xmlsoap.org/soap/envelope/;
soap:Body
customer.login xmlns=
http://demo3.idhasoft.us/iloyal/api/iloyal/customer.php/;
params{email:sachin.si...@idhasoft.com
,password:12345678,website:base}/params
/customer.login
/soap:Body
/soap:Envelope


request should contain above parameter.

Thanks in advance

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

Re: [android-developers] Adding Icons in ListView

2012-09-05 Thread Larry Meadors
Get used to the xml, really. You'll kick yourself if you coffee it all in
Java.
On Sep 4, 2012 11:37 PM, Ravin rperi...@yahoo.com wrote:

 Thanks for the insight Justin - yes it feels strange to use XML for me
 - should try getting used to it. In any event I have managed to achieve
 what I want without using the XML method - by playing around with some of
 the class methods. The key methods for making it work were setGravity(),
 SetHorizontalGravity(),setVerticalGravity(),setLayoutParams() and
 setPadding(). The text in the TextView (the initial list of items) kept
 disappearing so I accessed it using getChildAt() and then set the layout
 for it as well as the padding and font size.

 On Tuesday, September 4, 2012 9:52:50 AM UTC-7, MagouyaWare wrote:

 Thanks for the replies. I will try what  laminina has suggested. No I'm
 not opposed to specifying the layout in XML - I guess since any s/w I have
 written in the past for other GUI based systems such as WIndows has been
 based on instantiating objects at runtime I have been avoiding the XML
 layout method. I will try that too as an alternative.


 I had hesitations using XML when I first started developing for Android
 but now I find that it is many times easier in most cases.  Doing UI in
 code now is the exception rather than the norm for me now...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware


 On Tue, Sep 4, 2012 at 10:43 AM, Ravin rper...@yahoo.com wrote:

 Thanks for the replies. I will try what  laminina has suggested. No I'm
 not opposed to specifying the layout in XML - I guess since any s/w I have
 written in the past for other GUI based systems such as WIndows has been
 based on instantiating objects at runtime I have been avoiding the XML
 layout method. I will try that too as an alternative.


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

2012-09-05 Thread Quang Tuyến Nguyễn
Hey guys! Been playing around with the transformer pad 300. unlocked it. 
rooted it. all while on 9.4.3.29. but then the update 9.4.3.30 came out so 
i installed the update. lost root. tried the same process to root via these 
links. could never get the recovery.img to load this time around. i 
uninstalled drivers and reinstalled drivers. always got stuck on booting 
recovery kernel image. eventually i pissed it off. now when i try to go 
into fastboot mode, i dont get the 3 options wipe date usb android 
cold-boot. all i get is booting recovery kernel image and it sits there. 
if i dont hold down the volume down button during reboot. it sits on the 
device is unlocked.

Please help!

Exactly what happened?
-i tried to install CWM on 9.4.3.30 from link above.
-it showed successful in cmd window on pc
-tried to boot into recovery, that sat there on booting recovery kernel 
image. sat there for at least 20 minutes.
-held pwr button to reboot. it did and tablet started up fine.
-reboot with vol+dwn to go into fastboot. choose usb for fastboot.
-fastboot recovery img, which failed with error Too many links.
-rebooted tab normal just fine.
-turned off tablet.
-tried fastboot erase recovery
-sat on waiting for devices
-rebooted just fine.
-checked drivers, all installed just fine. uninstalled, reinstalled to be 
sure. no problem.
-went through attempt to install twrp.blob. was successful on pc.
-but got stuck on booting recovery kernel image again.
-reboot normal just fine.
-decided to pwr + vol dwn, then choose wipe data.
-gave normal data wipe complete. then boot recovery kernel image message 
i keep getting stuck on.
-stayed there for hours.
-finally i pressed and held power to attempt normal reboot. and get stuck 
on ASUS screen with device unlocked message.
-try pwr + vol dwn and get stuck on 
the device is unlocked.
android cardhu-user bootloader 2.10 e released by 
'us_epad-9.4.3.30-20120604' A03
Checking for android ota recovery
Booting recovery kernel image

-cannot adb devices at this point or fastboot devices at this point

HELP!? 
PC dont connect to device
Sorry my English bad


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

[android-developers] Facebook SDK - only returning 57 results using JSON

2012-09-05 Thread Niall Paterson
Anyone experienced the Graph API returning only a set number of results 
every time when JSON is used (limit is not being implemented)

The exact problem is that 57 results are coming up and then one is coming 
up only partially, before this error is thrown.

09-05 10:09:56.911: W/System.err(3660): at 
org.json.JSON.typeMismatch(JSON.java:111)
09-05 10:09:56.911: W/System.err(3660): at 
org.json.JSONArray.init(JSONArray.java:91)
09-05 10:09:56.911: W/System.err(3660): at 
org.json.JSONArray.init(JSONArray.java:103)


My actual code is below:

String response = facebook.request(me/friends,bundle, GET);

 



   JSONArray jArray = new JSONArray(response);

   for (int i = 0;i(jArray.length());i++) {

JSONObject json_obj=jArray.getJSONObject(i);

 String username=json_obj.getString(username);

 String fbname=json_obj.getString(name);

 String installed=json_obj.getString(installed);

 Log.i(name,fbname);

 Log.i(detail, username);

 Log.i(phoneBOOL,false); 

   }


Any ideas? 

 


Anyone got experience at this?

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

[android-developers] Native code crashes on constructor call

2012-09-05 Thread cpares
Hello!

I am developing a project which has to use native code. Especifically, I 
need to create on the native side an instance of the class MyDecoder, which 
then will do some work. As soon as the MyDecoder constructor is called for 
the first time, the application crashes silently - no exception shown in 
Logcat, no Force close dialog on screen, nothing; just the desktop 
showing again.

On the java class which calls it (CamPreview.java), I have already declared 
the native function (private native boolean invokeDecoder(Mat captured); ), 
and on the native side (Decoder.cpp), I have the function:

extern C jboolean 
Java_com_example_test011_CamPreview_invokeDecoder(JNIEnv* env, jobject 
javaThis, const Mat captured)
{

LOGD(A); //this message is shown
MyDecoder* dec= new MyDecoder( Size(1280,720) );
LOGD(B); //this message never appears
return false

}

(LOGD is just a macro for writing on LogCat)

Then, MyDecoder's constructor, defined in MyDecoder.cpp, is:

MyDecoder::MyDecoder(Size s) {

LOGD(Constructor started); //never shows
 // stuff
}

The A message before the constructor call is showing (which means all the 
JNI stuff is, hopefully, correctly configured); but then the app closes. 
The constructor doesn't appear to launch (the Constructor started text is 
never displayed), but I have no idea where the error might be. I have been 
googling, and the closest thing that I have found is this StackOverflow 
threadhttp://stackoverflow.com/questions/11190469/android-app-crashes-suddenly-while-running
 which 
seems to be related to memory running out. In my case, since it happens on 
the very beginning of the app, and (just to test) I have largeHeap=true 
on a Galaxy S3 (meaning, 256MB), that doesn't seem very likely.

Do you have any idea about what might be happening?

Thank you in advance!

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

Re: [android-developers] Google Cloud Messaging-C2DM

2012-09-05 Thread Mark Murphy
Questions about GCM are better asked on the android-gcm Google Group.

On Mon, Sep 3, 2012 at 1:19 AM, NibaLabs nibal...@gmail.com wrote:
 Hai All,

 I was experimenting with GoogleCloudMessaging (GCM-C2DM). After lot of
 efforts i set up an environment with following Sepc

 Client : Android
 Server : ASP.Net hosted in the cloud

 Problem: I am getting immediate response in Intel XOLO, running
 Android Gingerbread immediately, were as i am getting the messages in
 Samsung Galaxy S2 running ICS after a long delay (say 3-5+ mins).

 Questions:
   1 Is this a design feature of GCM, or a known
 issue.
2Is there is a fix, so that messages get delivered
 immediately

 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



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

_The Busy Coder's Guide to Android Development_ Version 4.1 Available!

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


Re: [android-developers] Google APIs not listed in Android SDK Manager

2012-09-05 Thread Mark Murphy
Try clearing your cache (Tools  Options  Clear Cache), then
reloading (Packages  Reload), and see if that helps.

On Mon, Sep 3, 2012 at 9:16 PM, Richard wohl...@hotmail.com wrote:
 I've downloaded the recent Android SDK. All the tools are shown except for
 Google APIs by Google, Inc. This is preventing me from inserting a google
 map into my app. Has anyone else experienced this? 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



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

_The Busy Coder's Guide to Android Development_ Version 4.1 Available!

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


Re: [android-developers] how to-Start new activity with also current activity running

2012-09-05 Thread Mark Murphy
On Tue, Sep 4, 2012 at 10:24 PM, HK android.out.th...@gmail.com wrote:
 Yes, Activity A belongs to a different team. I can ask for change request if
 possible.

If Activity A belongs to a different team, you should be coordinating
with them, having them fix their activity so onPause() is not
destructive (such as by moving that logic to onStop() so a
dialog-themed activity can appear and Activity A can remain visually
intact), or by negotiating some sort of broadcast Intent whereby you
can let them know that you are taking over the foreground. The
onStop() approach, with Activity B being a dialog-themed activity,
would seem to be the simplest approach given your description.

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

_The Busy Coder's Guide to Android Development_ Version 4.1 Available!

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


Re: [android-developers] Update Activity

2012-09-05 Thread Ehsan Sadeghi
And how can I change that?
در چهارشنبه 5 سپتامبر 2012، ساعت 15:29:06 (UTC+4:30)، asheesh arya نوشته:

 check your permission in android manifest file


در چهارشنبه 5 سپتامبر 2012، ساعت 15:29:06 (UTC+4:30)، asheesh arya نوشته:

 check your permission in android manifest file



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

Re: [android-developers] how to-Start new activity with also current activity running

2012-09-05 Thread Dan
By not readily he means that there is no nice public API for
what application has focus, but things that look close (e.g.
RunningAppProcessInfo importance sounds close, but requires
polling, is slow to update, and refers to scheduler time, not
what the user is doing.)   If you want to play non public API
games pre-JellyBean you could watch for ActivityManager
messages for application start (JellyBean restricts the Log
output so you need to be a system app to see it.)

The Google company line for not providing such an API seems
to range from privacy to performance.  The net result is that
if the performance monitoring tools provided (stuff under
Settings or dumpsys) don't match your needs precisely, tough
luck, you don't get to harness the app developers out there
to create something beyond what Google provides.

Unless your company has some bizarre change request process,
you'll be much happier having activity A do some IPC you can
count on.

On Tuesday, September 4, 2012 10:24:46 PM UTC-4, HK wrote:

 Yes, Activity A belongs to a different team. I can ask for change request 
 if possible.

 1) But what do you mean by 'not readily' ? is it possible to detect ?

 2) I was wondering if there was another solution using TYPE_SYSTEM_DIALOG 
 which I am guessing if it can be called from a Service rather than an 
 Activity. But nobody replied to this post.

 On Wednesday, September 5, 2012 11:18:04 AM UTC+9, Mark Murphy (a Commons 
 Guy) wrote:

 On Tue, Sep 4, 2012 at 10:12 PM, HK android@gmail.com wrote: 
  So,  in Activity A's onPause, is it possible to find which activity is 
  launched ? i.e., when Activity B is launched, is it possible to find in 
  Activity A's onPause that Activity B is launched ? 

 Not readily. Moreover, you do not have much control over Activity A. 

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

 Android Training in NYC: http://marakana.com/training/android/ 



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

Re: [android-developers] Google Cloud Messaging-C2DM

2012-09-05 Thread Muchamad Jeffri Ardyansyah
can GCM running on localhost by XAMPP?

On 5 September 2012 19:21, Mark Murphy mmur...@commonsware.com wrote:
 Questions about GCM are better asked on the android-gcm Google Group.

 On Mon, Sep 3, 2012 at 1:19 AM, NibaLabs nibal...@gmail.com wrote:
 Hai All,

 I was experimenting with GoogleCloudMessaging (GCM-C2DM). After lot of
 efforts i set up an environment with following Sepc

 Client : Android
 Server : ASP.Net hosted in the cloud

 Problem: I am getting immediate response in Intel XOLO, running
 Android Gingerbread immediately, were as i am getting the messages in
 Samsung Galaxy S2 running ICS after a long delay (say 3-5+ mins).

 Questions:
   1 Is this a design feature of GCM, or a known
 issue.
2Is there is a fix, so that messages get delivered
 immediately

 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



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

 _The Busy Coder's Guide to Android Development_ Version 4.1 Available!

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

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

2012-09-05 Thread Shoaib Dar
17 hours and not a single view...

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

2012-09-05 Thread RichardC
What does the constructor for Size do?

On Wednesday, September 5, 2012 1:13:52 PM UTC+1, cpares wrote:

 Hello!

 I am developing a project which has to use native code. Especifically, I 
 need to create on the native side an instance of the class MyDecoder, which 
 then will do some work. As soon as the MyDecoder constructor is called for 
 the first time, the application crashes silently - no exception shown in 
 Logcat, no Force close dialog on screen, nothing; just the desktop 
 showing again.

 On the java class which calls it (CamPreview.java), I have already 
 declared the native function (private native boolean invokeDecoder(Mat 
 captured); ), and on the native side (Decoder.cpp), I have the function:

 extern C jboolean 
 Java_com_example_test011_CamPreview_invokeDecoder(JNIEnv* env, jobject 
 javaThis, const Mat captured)
 {

 LOGD(A); //this message is shown
 MyDecoder* dec= new MyDecoder( Size(1280,720) );
 LOGD(B); //this message never appears
 return false

 }

 (LOGD is just a macro for writing on LogCat)

 Then, MyDecoder's constructor, defined in MyDecoder.cpp, is:

 MyDecoder::MyDecoder(Size s) {

 LOGD(Constructor started); //never shows
  // stuff
 }

 The A message before the constructor call is showing (which means all 
 the JNI stuff is, hopefully, correctly configured); but then the app 
 closes. The constructor doesn't appear to launch (the Constructor started 
 text is never displayed), but I have no idea where the error might be. I 
 have been googling, and the closest thing that I have found is this 
 StackOverflow 
 threadhttp://stackoverflow.com/questions/11190469/android-app-crashes-suddenly-while-running
  which 
 seems to be related to memory running out. In my case, since it happens on 
 the very beginning of the app, and (just to test) I have largeHeap=true 
 on a Galaxy S3 (meaning, 256MB), that doesn't seem very likely.

 Do you have any idea about what might be happening?

 Thank you in advance!


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

Re: [android-developers] Having the user set the priority of an activity

2012-09-05 Thread Ws Pilotpc
Thanks,
An (unpleasant) alternative would be to manually shut down apps that may 
interrupt or disturb, but that isn't possible on android.
Personally I think that's a design bug. Hopefully that will be repaired in 
the future.
r.
wim

Op dinsdag 7 augustus 2012 23:03:00 UTC+2 schreef MagouyaWare het volgende:

 AFAIK this isn't possible...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Mon, Aug 6, 2012 at 10:37 AM, Ws Pilotpc wsv...@xs4all.nljavascript:
  wrote:

 Hi,
 Just started with Andoid SDK. Working on a port from C++ to the SDK of an 
 aircraft navigation_and_more system for android phones and tablets.
 Have been Googling this question but I cannot find a clear answer.
 I want to enable the user (aircraft pilot) to set the priority of the app 
 very high. The reason is simple: when the user is flying and navigating, 
 he/she doesn't want the app to be interrupted by mail messages or whatever 
 'popups', even phone calls.
 Does Android allow the user (possibly via my app) to do this?
 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-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




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

[android-developers] Re: Native code crashes on constructor call

2012-09-05 Thread cpares
It's OpenCV's Size ( 
http://opencv.willowgarage.com/documentation/cpp/basic_structures.html#size ). 
I have been trying and Size does not seem to be the problem anyway, I can 
call Size(1280,720) outside of the constructor call and the program doesn't 
close.

In any case, thanks for replying!

On Wednesday, September 5, 2012 2:41:45 PM UTC+2, RichardC wrote:

 What does the constructor for Size do?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Icon Size Google Drive missing (72*72)

2012-09-05 Thread Patrick Kuckertz
Hi,

thanks for the answers. The problem with scaling is, that this would mean 
an upscale from 48 to 72. This looks not so nice as you may imagine. 
I did also expect that some app developers did not put a folder with the 
icon size 72 into their directory. But Google Drive app is developed by 
Google (afaik), so I thought they implement their apps as described by 
their development guidlines. 
The app itself looks and behaves nice on my tablet.

So I did not miss an alternative to get the icon in 72. I did not expect 
that I missed something at this place...

Best regards,

Patrick

Am Dienstag, 4. September 2012 13:05:50 UTC+2 schrieb Patrick Kuckertz:

 Hi,

 I am listing up apps on a device and I show an Icon for all of them. I 
 have a tablet application and would like to get the icons in 72*72. I have 
 discovered that many apps just provide a resolution of 48*48. Google Drive 
 is also a candidate providing only a small icon. Is this correct, or am I 
 am doing something wrong in getting the icon from the intent? However, I do 
 get some icons in 72*72. But it is about 20% of my installed apps.

 Best Regards,

 Patrick


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Icon Size Google Drive missing (72*72)

2012-09-05 Thread Patrick Kuckertz


Am Dienstag, 4. September 2012 13:05:50 UTC+2 schrieb Patrick Kuckertz:

 Hi,

 I am listing up apps on a device and I show an Icon for all of them. I 
 have a tablet application and would like to get the icons in 72*72. I have 
 discovered that many apps just provide a resolution of 48*48. Google Drive 
 is also a candidate providing only a small icon. Is this correct, or am I 
 am doing something wrong in getting the icon from the intent? However, I do 
 get some icons in 72*72. But it is about 20% of my installed apps.

 Best Regards,

 Patrick


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

2012-09-05 Thread cpares
Anyway, in case it's in any way relevant, here is its code. It's pretty 
much what one would expect:

public class Size {

public double width, height;

public Size(double width, double height) {
this.width = width;
this.height = height;
}
// and another unrelated methods
} 

On Wednesday, September 5, 2012 2:41:45 PM UTC+2, RichardC wrote:

 What does the constructor for Size do?


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

2012-09-05 Thread RichardC
Do you have the native crash dump with stack trace back?  The is a utility 
in the NDK to find the source line from the stack dump, one of the 
addr2line programs depending on your ABI.

On Wednesday, September 5, 2012 2:18:34 PM UTC+1, cpares wrote:

 Anyway, in case it's in any way relevant, here is its code. It's pretty 
 much what one would expect:

 public class Size {

 public double width, height;

 public Size(double width, double height) {
 this.width = width;
 this.height = height;
 }
 // and another unrelated methods
 } 

 On Wednesday, September 5, 2012 2:41:45 PM UTC+2, RichardC wrote:

 What does the constructor for Size do?



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

2012-09-05 Thread RichardC
I can think of 2 more possibilities:

   - Something wrong in LOGD causing stack corruption
   - Initialization of module level statics in the module where MyDecoder 
   is defined.  Module level statics can defer their initialization until the 
   first function call is made into the same compilation unit where they are 
   defined.


On Wednesday, September 5, 2012 2:25:28 PM UTC+1, RichardC wrote:

 Do you have the native crash dump with stack trace back?  The is a utility 
 in the NDK to find the source line from the stack dump, one of the 
 addr2line programs depending on your ABI.

 On Wednesday, September 5, 2012 2:18:34 PM UTC+1, cpares wrote:

 Anyway, in case it's in any way relevant, here is its code. It's pretty 
 much what one would expect:

 public class Size {

 public double width, height;

 public Size(double width, double height) {
 this.width = width;
 this.height = height;
 }
 // and another unrelated methods
 } 

 On Wednesday, September 5, 2012 2:41:45 PM UTC+2, RichardC wrote:

 What does the constructor for Size do?



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

2012-09-05 Thread cpares
I am not sure what you mean (sorry, I haven't been working with Android for 
long). Where would those crash dumps be stored? Would it be useful to post 
what shows in Logcat?

On Wednesday, September 5, 2012 3:25:28 PM UTC+2, RichardC wrote:

 Do you have the native crash dump with stack trace back?  The is a utility 
 in the NDK to find the source line from the stack dump, one of the 
 addr2line programs depending on your ABI.

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

2012-09-05 Thread RichardC
The crash dumps show in LogCat.  Posting there would be useful.

On Wednesday, September 5, 2012 2:45:30 PM UTC+1, cpares wrote:

 I am not sure what you mean (sorry, I haven't been working with Android 
 for long). Where would those crash dumps be stored? Would it be useful to 
 post what shows in Logcat?

 On Wednesday, September 5, 2012 3:25:28 PM UTC+2, RichardC wrote:

 Do you have the native crash dump with stack trace back?  The is a 
 utility in the NDK to find the source line from the stack dump, one of the 
 addr2line programs depending on your ABI.



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

2012-09-05 Thread cpares
This is it, then. Like I said, there's not much aside from everything 
suddenly realizing the app has died:

09-05 15:32:13.190: D/RUNNative(8769): A
09-05 15:32:13.190: I/ActivityThread(8896): Pub 
com.google.android.apps.plus.content.EsPicasaStoreProvider: 
com.google.android.picasastore.PicasaPhotoContentProvider
09-05 15:32:13.210: D/dalvikvm(8896): GC_CONCURRENT freed 482K, 6% free 
14093K/14855K, paused 2ms+3ms
09-05 15:32:13.245: W/InputDispatcher(2098): channel ~ Consumer closed 
input channel or an error occurred.  events=0x8
09-05 15:32:13.245: E/InputDispatcher(2098): channel ~ Channel is 
unrecoverably broken and will be disposed!
09-05 15:32:13.245: E/SecCameraHardware(6747): Could not dequeue gralloc 
buffer!
09-05 15:32:13.245: E/ISecCameraHardware(6747): bool 
android::ISecCameraHardware::hybridPreviewThread()::flushSurface() fail
09-05 15:32:13.245: D/SecCameraCoreManager(6747): virtual void 
android::SecCameraCoreManager::stopPreview():stop IT Policy checking thread
09-05 15:32:13.245: D/Zygote(1902): Process 8769 exited cleanly (1)
09-05 15:32:13.250: W/InputDispatcher(2098): Attempted to unregister 
already unregistered input channel
09-05 15:32:13.250: D/dalvikvm(2098): GC_CONCURRENT freed 2063K, 59% free 
22349K/53255K, paused 3ms+8ms
09-05 15:32:13.250: I/ActivityManager(2098): Process com.example.test011 
(pid 8769) has died.
09-05 15:32:13.250: I/WindowManager(2098): WINDOW DIED Window{41da36d0 
XXX.XXX.011/XXX.XXX.011.MainActivity paused=false}
09-05 15:32:13.255: I/ActivityThread(8896): Pub com.google.plus.platform: 
com.google.android.apps.plus.content.AdsProvider
09-05 15:32:13.255: I/ActivityThread(8896): Pub 
com.google.android.apps.plus.iu.EsGoogleIuProvider: 
com.google.android.apps.plus.iu.InstantUploadProvider
09-05 15:32:13.265: E/SecCameraHardware(6747): Could not dequeue gralloc 
buffer!
09-05 15:32:13.265: E/ISecCameraHardware(6747): bool 
android::ISecCameraHardware::hybridPreviewThread()::flushSurface() fail
09-05 15:32:13.275: I/SurfaceFlinger(1901): id=1890 Removed SurfaceView 
idx=1 Map Size=4
09-05 15:32:13.275: I/SurfaceFlinger(1901): id=1890 Removed SurfaceView 
idx=-2 Map Size=4
09-05 15:32:13.275: D/KeyguardViewMediator(2098): setHidden false
09-05 15:32:13.275: W/WindowManager(2098): Force-removing child win 
Window{42cfefd0 SurfaceView paused=false} from container Window{41da36d0 
com.example.test011/com.example.test011.MainActivity paused=false}

(This is the output in the unfiltered log, the one for the app just shows 
nothing after A.)

On Wednesday, September 5, 2012 3:49:26 PM UTC+2, RichardC wrote:

 The crash dumps show in LogCat.  Posting there would be useful.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Icon Size Google Drive missing (72*72)

2012-09-05 Thread Justin Anderson

 thanks for the answers. The problem with scaling is, that this would mean
 an upscale from 48 to 72. This looks not so nice as you may imagine.


Correct... In many cases it may look horrible.  But that is not your
fault.   That is the developer's fault.  And unfortunately there isn't much
you can do about it.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Sep 5, 2012 at 7:17 AM, Patrick Kuckertz 
kuckertz.patr...@googlemail.com wrote:



 Am Dienstag, 4. September 2012 13:05:50 UTC+2 schrieb Patrick Kuckertz:

 Hi,

 I am listing up apps on a device and I show an Icon for all of them. I
 have a tablet application and would like to get the icons in 72*72. I have
 discovered that many apps just provide a resolution of 48*48. Google Drive
 is also a candidate providing only a small icon. Is this correct, or am I
 am doing something wrong in getting the icon from the intent? However, I do
 get some icons in 72*72. But it is about 20% of my installed apps.

 Best Regards,

 Patrick

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


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

Re: [android-developers] how to-Start new activity with also current activity running

2012-09-05 Thread Justin Anderson
Is Activity A a specific activity of a specific app or just any arbitrary
activity?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Sep 5, 2012 at 6:34 AM, Dan dan.schm...@gmail.com wrote:

 By not readily he means that there is no nice public API for
 what application has focus, but things that look close (e.g.
 RunningAppProcessInfo importance sounds close, but requires
 polling, is slow to update, and refers to scheduler time, not
 what the user is doing.)   If you want to play non public API
 games pre-JellyBean you could watch for ActivityManager
 messages for application start (JellyBean restricts the Log
 output so you need to be a system app to see it.)

 The Google company line for not providing such an API seems
 to range from privacy to performance.  The net result is that
 if the performance monitoring tools provided (stuff under
 Settings or dumpsys) don't match your needs precisely, tough
 luck, you don't get to harness the app developers out there
 to create something beyond what Google provides.

 Unless your company has some bizarre change request process,
 you'll be much happier having activity A do some IPC you can
 count on.


 On Tuesday, September 4, 2012 10:24:46 PM UTC-4, HK wrote:

 Yes, Activity A belongs to a different team. I can ask for change request
 if possible.

 1) But what do you mean by 'not readily' ? is it possible to detect ?

 2) I was wondering if there was another solution using TYPE_SYSTEM_DIALOG
 which I am guessing if it can be called from a Service rather than an
 Activity. But nobody replied to this post.

 On Wednesday, September 5, 2012 11:18:04 AM UTC+9, Mark Murphy (a Commons
 Guy) wrote:

 On Tue, Sep 4, 2012 at 10:12 PM, HK android@gmail.com wrote:
  So,  in Activity A's onPause, is it possible to find which activity is
  launched ? i.e., when Activity B is launched, is it possible to find
 in
  Activity A's onPause that Activity B is launched ?

 Not readily. Moreover, you do not have much control over Activity A.

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

 Android Training in NYC: 
 http://marakana.com/training/**android/http://marakana.com/training/android/

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


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Facebook SDK - only returning 57 results using JSON

2012-09-05 Thread Justin Anderson
I would probably try asking somewhere dedicated to the Facebook SDK...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Sep 5, 2012 at 3:38 AM, Niall Paterson npaters...@gmail.com wrote:

 Anyone experienced the Graph API returning only a set number of results
 every time when JSON is used (limit is not being implemented)

 The exact problem is that 57 results are coming up and then one is coming
 up only partially, before this error is thrown.

 09-05 10:09:56.911: W/System.err(3660): at
 org.json.JSON.typeMismatch(JSON.java:111)
 09-05 10:09:56.911: W/System.err(3660): at
 org.json.JSONArray.init(JSONArray.java:91)
 09-05 10:09:56.911: W/System.err(3660): at
 org.json.JSONArray.init(JSONArray.java:103)


 My actual code is below:

 String response = facebook.request(me/friends,bundle, GET);





JSONArray jArray = new JSONArray(response);

for (int i = 0;i(jArray.length());i++) {

 JSONObject json_obj=jArray.getJSONObject(i);

  String username=json_obj.getString(username);

  String fbname=json_obj.getString(name);

  String installed=json_obj.getString(installed);

  Log.i(name,fbname);

  Log.i(detail, username);

  Log.i(phoneBOOL,false);

}


 Any ideas?




 Anyone got experience at this?

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

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

2012-09-05 Thread Justin Anderson
In any event I have managed to achieve what I want without using the XML
 method - by playing around with some of the class methods. The key methods
 for making it work were setGravity(),
 SetHorizontalGravity(),setVerticalGravity(),setLayoutParams() and
 setPadding(). The text in the TextView (the initial list of items) kept
 disappearing so I accessed it using getChildAt() and then set the layout
 for it as well as the padding and font size.

That sounds like a whole lot of work and a royal PITA... I highly recommend
defining layouts in XML.  I've never had to deal with stuff like that.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Sep 5, 2012 at 5:30 AM, Larry Meadors larry.mead...@gmail.comwrote:

 Get used to the xml, really. You'll kick yourself if you coffee it all in
 Java.
 On Sep 4, 2012 11:37 PM, Ravin rperi...@yahoo.com wrote:

 Thanks for the insight Justin - yes it feels strange to use XML for me
 - should try getting used to it. In any event I have managed to achieve
 what I want without using the XML method - by playing around with some of
 the class methods. The key methods for making it work were setGravity(),
 SetHorizontalGravity(),setVerticalGravity(),setLayoutParams() and
 setPadding(). The text in the TextView (the initial list of items) kept
 disappearing so I accessed it using getChildAt() and then set the layout
 for it as well as the padding and font size.

 On Tuesday, September 4, 2012 9:52:50 AM UTC-7, MagouyaWare wrote:

 Thanks for the replies. I will try what  laminina has suggested. No I'm
 not opposed to specifying the layout in XML - I guess since any s/w I have
 written in the past for other GUI based systems such as WIndows has been
 based on instantiating objects at runtime I have been avoiding the XML
 layout method. I will try that too as an alternative.


 I had hesitations using XML when I first started developing for Android
 but now I find that it is many times easier in most cases.  Doing UI in
 code now is the exception rather than the norm for me now...

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/**magouyawarehttp://sites.google.com/site/magouyaware


 On Tue, Sep 4, 2012 at 10:43 AM, Ravin rper...@yahoo.com wrote:

 Thanks for the replies. I will try what  laminina has suggested. No I'm
 not opposed to specifying the layout in XML - I guess since any s/w I have
 written in the past for other GUI based systems such as WIndows has been
 based on instantiating objects at runtime I have been avoiding the XML
 layout method. I will try that too as an alternative.


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

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


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

[android-developers] Re: Native code crashes on constructor call

2012-09-05 Thread RichardC
That is not a crash in the Native code.  It looks like your constructor is 
looping and causing a time-out of the main thread.  If you were getting a 
native crash you would see something like (link into the android-ndk group):

https://groups.google.com/d/msg/android-ndk/3M9Ge1ac3Xk/ZlGbC1afH9IJ

in LogCat.

Base class(es) and class based member variable(s) in MyDecoder are 
initialized before the constructor is entered so the problem may be 
happening before the constructor proper is entered.

On Wednesday, September 5, 2012 2:52:53 PM UTC+1, cpares wrote:

 This is it, then. Like I said, there's not much aside from everything 
 suddenly realizing the app has died:

 09-05 15:32:13.190: D/RUNNative(8769): A
 09-05 15:32:13.190: I/ActivityThread(8896): Pub 
 com.google.android.apps.plus.content.EsPicasaStoreProvider: 
 com.google.android.picasastore.PicasaPhotoContentProvider
 09-05 15:32:13.210: D/dalvikvm(8896): GC_CONCURRENT freed 482K, 6% free 
 14093K/14855K, paused 2ms+3ms
 09-05 15:32:13.245: W/InputDispatcher(2098): channel ~ Consumer closed 
 input channel or an error occurred.  events=0x8
 09-05 15:32:13.245: E/InputDispatcher(2098): channel ~ Channel is 
 unrecoverably broken and will be disposed!
 09-05 15:32:13.245: E/SecCameraHardware(6747): Could not dequeue gralloc 
 buffer!
 09-05 15:32:13.245: E/ISecCameraHardware(6747): bool 
 android::ISecCameraHardware::hybridPreviewThread()::flushSurface() fail
 09-05 15:32:13.245: D/SecCameraCoreManager(6747): virtual void 
 android::SecCameraCoreManager::stopPreview():stop IT Policy checking thread
 09-05 15:32:13.245: D/Zygote(1902): Process 8769 exited cleanly (1)
 09-05 15:32:13.250: W/InputDispatcher(2098): Attempted to unregister 
 already unregistered input channel
 09-05 15:32:13.250: D/dalvikvm(2098): GC_CONCURRENT freed 2063K, 59% free 
 22349K/53255K, paused 3ms+8ms
 09-05 15:32:13.250: I/ActivityManager(2098): Process com.example.test011 
 (pid 8769) has died.
 09-05 15:32:13.250: I/WindowManager(2098): WINDOW DIED Window{41da36d0 
 XXX.XXX.011/XXX.XXX.011.MainActivity paused=false}
 09-05 15:32:13.255: I/ActivityThread(8896): Pub com.google.plus.platform: 
 com.google.android.apps.plus.content.AdsProvider
 09-05 15:32:13.255: I/ActivityThread(8896): Pub 
 com.google.android.apps.plus.iu.EsGoogleIuProvider: 
 com.google.android.apps.plus.iu.InstantUploadProvider
 09-05 15:32:13.265: E/SecCameraHardware(6747): Could not dequeue gralloc 
 buffer!
 09-05 15:32:13.265: E/ISecCameraHardware(6747): bool 
 android::ISecCameraHardware::hybridPreviewThread()::flushSurface() fail
 09-05 15:32:13.275: I/SurfaceFlinger(1901): id=1890 Removed SurfaceView 
 idx=1 Map Size=4
 09-05 15:32:13.275: I/SurfaceFlinger(1901): id=1890 Removed SurfaceView 
 idx=-2 Map Size=4
 09-05 15:32:13.275: D/KeyguardViewMediator(2098): setHidden false
 09-05 15:32:13.275: W/WindowManager(2098): Force-removing child win 
 Window{42cfefd0 SurfaceView paused=false} from container Window{41da36d0 
 com.example.test011/com.example.test011.MainActivity paused=false}

 (This is the output in the unfiltered log, the one for the app just shows 
 nothing after A.)

 On Wednesday, September 5, 2012 3:49:26 PM UTC+2, RichardC wrote:

 The crash dumps show in LogCat.  Posting there would be useful.



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

2012-09-05 Thread cpares
Hello!

Thank you again for replying. I have some questions.
1) What do you mean by looping? It does no loop anywhere, it is only 
called once, and it closes instantly. Where can one see that in the log?
2) I have been checking, and there is nothing in MyDecoder that can be used 
before the constructor... There are not initialized variables, or 
implicit methods or anything like that.

By the way, I was not aware there was a specific android-ndk group, 
probably this question's place is that. Sorry for putting it in the general 
section! I don't think it would be possible to move the thread, so is it 
bad etiquette repeating this post there?

On Wednesday, September 5, 2012 4:46:39 PM UTC+2, RichardC wrote:

 That is not a crash in the Native code.  It looks like your constructor is 
 looping and causing a time-out of the main thread.  If you were getting a 
 native crash you would see something like (link into the android-ndk group):

 https://groups.google.com/d/msg/android-ndk/3M9Ge1ac3Xk/ZlGbC1afH9IJ

 in LogCat.

 Base class(es) and class based member variable(s) in MyDecoder are 
 initialized before the constructor is entered so the problem may be 
 happening before the constructor proper is entered.


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

2012-09-05 Thread Justin Anderson
I have two links for you:

   -
   http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html
   - http://lmgtfy.com/?q=android+send+soap+request

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Sep 5, 2012 at 5:23 AM, rauf qureshi qureshira...@gmail.com wrote:

 hello everyone

 can anybody tell me how to send soap request in the following format in
 android


 ?xml version=1.0 encoding=utf-8?
 soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:soap=
 http://schemas.xmlsoap.org/soap/envelope/;
 soap:Body
 customer.login xmlns=
 http://demo3.idhasoft.us/iloyal/api/iloyal/customer.php/;
 params{email:sachin.si...@idhasoft.com
 ,password:12345678,website:base}/params
 /customer.login
 /soap:Body
 /soap:Envelope


 request should contain above parameter.

 Thanks in advance

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

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

[android-developers] Sending notifications to Google Cloud Messaging with php gives me Unauthorized Error 401

2012-09-05 Thread saex
Searching for some info about how to send notifications using GCM but with 
PHP instead of servlets, i found this: 
http://stackoverflow.com/questions/11242743/gcm-with-php-google-cloud-messaging

I tested the working code of the responses of these questions, also i 
created a Key for browser apps (with referers), and i give permissions to 
this ip: *.mywebsite.com/* (te php file is on this url: 
http://www.mywebsite.com/~jma/cHtml5/cap/kk.php;)

But i'm getting this response: **Unauthorized Error 401**

What i'm doing wrong?

this is the php file: 

?php
// Replace with real server API key from Google APIs  
$apiKey = fictional key;

// Replace with real client registration IDs
$registrationIDs = array( 
APA91asdasdSDGGS232S13S4213abGqiNhCIXKjlxrkUYe_xTgTacNGB5n16b380XDd8i_9HpKGRHkvm8DDet4_WK3zumjDEKkTRWLgPS7kO-BrKzWz7eWFQaDD9PJ8zA6hlSqL9_zH21P8K22ktGKmo_VIF6YAdU9ejJovrKBTpgQktYkBZBf9Zw,APAasdasd32423dADFG91bHYYxYB7bFiX5ltbJt6A-4MBiNg7l4RS4Bqf3jIfYviaaUfZ810XJo2o66DY9-jdeJk_JR8FIZCyrmCv-eu_WLkGZ8KaoHgEDR_16H2QPm98uHpe1MjKVXbzYc4J89WMmcIrl5tHhWQnIQNzaI6Zp6yyFUNUQ);

// Message to be sent
$message = Test Notificación PHP;

// Set POST variables
$url = 'https://android.googleapis.com/gcm/send';

$fields = array(
'registration_ids' = $registrationIDs,
'data' = array( message = $message ),
);

$headers = array(
'Authorization: key=' . $apiKey,
'Content-Type: application/json'
);

// Open connection
$ch = curl_init();

// Set the url, number of POST vars, POST data
curl_setopt( $ch, CURLOPT_URL, $url );
curl_setopt( $ch, CURLOPT_POST, true );
curl_setopt( $ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
//curl_setopt( $ch, CURLOPT_POSTFIELDS, json_encode( $fields ) );

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
//curl_setopt($ch, CURLOPT_POST, true);
//curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode( $fields ));

// Execute post
$result = curl_exec($ch);

// Close connection
curl_close($ch);
echo $result;
//print_r($result);
//var_dump($result);
?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Sending notifications to Google Cloud Messaging with php gives me Unauthorized Error 401

2012-09-05 Thread saex


Solved!!!

you must use Key for server apps (with IP locking) instead of browser key 

:)


El miércoles, 5 de septiembre de 2012 17:49:30 UTC+2, saex escribió:

 Searching for some info about how to send notifications using GCM but with 
 PHP instead of servlets, i found this: 
 http://stackoverflow.com/questions/11242743/gcm-with-php-google-cloud-messaging

 I tested the working code of the responses of these questions, also i 
 created a Key for browser apps (with referers), and i give permissions to 
 this ip: *.mywebsite.com/* (te php file is on this url: 
 http://www.mywebsite.com/~jma/cHtml5/cap/kk.php;)

 But i'm getting this response: **Unauthorized Error 401**

 What i'm doing wrong?

 this is the php file: 

 ?php
 // Replace with real server API key from Google APIs  
 $apiKey = fictional key;
 
 // Replace with real client registration IDs
 $registrationIDs = array( 
 APA91asdasdSDGGS232S13S4213abGqiNhCIXKjlxrkUYe_xTgTacNGB5n16b380XDd8i_9HpKGRHkvm8DDet4_WK3zumjDEKkTRWLgPS7kO-BrKzWz7eWFQaDD9PJ8zA6hlSqL9_zH21P8K22ktGKmo_VIF6YAdU9ejJovrKBTpgQktYkBZBf9Zw,APAasdasd32423dADFG91bHYYxYB7bFiX5ltbJt6A-4MBiNg7l4RS4Bqf3jIfYviaaUfZ810XJo2o66DY9-jdeJk_JR8FIZCyrmCv-eu_WLkGZ8KaoHgEDR_16H2QPm98uHpe1MjKVXbzYc4J89WMmcIrl5tHhWQnIQNzaI6Zp6yyFUNUQ);
 
 // Message to be sent
 $message = Test Notificación PHP;
 
 // Set POST variables
 $url = 'https://android.googleapis.com/gcm/send';
 
 $fields = array(
 'registration_ids' = $registrationIDs,
 'data' = array( message = $message ),
 );
 
 $headers = array(
 'Authorization: key=' . $apiKey,
 'Content-Type: application/json'
 );
 
 // Open connection
 $ch = curl_init();
 
 // Set the url, number of POST vars, POST data
 curl_setopt( $ch, CURLOPT_URL, $url );
 curl_setopt( $ch, CURLOPT_POST, true );
 curl_setopt( $ch, CURLOPT_HTTPHEADER, $headers);
 curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
 //curl_setopt( $ch, CURLOPT_POSTFIELDS, json_encode( $fields ) );
 
 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
 //curl_setopt($ch, CURLOPT_POST, true);
 //curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode( $fields ));
 
 // Execute post
 $result = curl_exec($ch);
 
 // Close connection
 curl_close($ch);
 echo $result;
 //print_r($result);
 //var_dump($result);
 ?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Sending notifications to Google Cloud Messaging with php gives me Unauthorized Error 401

2012-09-05 Thread John Coryat
Error messages returned from GCM are misleading. Most likely, you have a 
problem with your key, the JSON you're sending or a combination of other 
issues. Double check what you're sending. Most likely it's a simple error.

There's also an issue with unquoted numeric values. Send all data 
parameters as quoted strings.

-John Coryat


On Wednesday, September 5, 2012 10:49:30 AM UTC-5, saex wrote:

 Searching for some info about how to send notifications using GCM but with 
 PHP instead of servlets, i found this: 
 http://stackoverflow.com/questions/11242743/gcm-with-php-google-cloud-messaging

 I tested the working code of the responses of these questions, also i 
 created a Key for browser apps (with referers), and i give permissions to 
 this ip: *.mywebsite.com/* (te php file is on this url: 
 http://www.mywebsite.com/~jma/cHtml5/cap/kk.php;)

 But i'm getting this response: **Unauthorized Error 401**

 What i'm doing wrong?

 this is the php file: 

 ?php
 // Replace with real server API key from Google APIs  
 $apiKey = fictional key;
 
 // Replace with real client registration IDs
 $registrationIDs = array( 
 APA91asdasdSDGGS232S13S4213abGqiNhCIXKjlxrkUYe_xTgTacNGB5n16b380XDd8i_9HpKGRHkvm8DDet4_WK3zumjDEKkTRWLgPS7kO-BrKzWz7eWFQaDD9PJ8zA6hlSqL9_zH21P8K22ktGKmo_VIF6YAdU9ejJovrKBTpgQktYkBZBf9Zw,APAasdasd32423dADFG91bHYYxYB7bFiX5ltbJt6A-4MBiNg7l4RS4Bqf3jIfYviaaUfZ810XJo2o66DY9-jdeJk_JR8FIZCyrmCv-eu_WLkGZ8KaoHgEDR_16H2QPm98uHpe1MjKVXbzYc4J89WMmcIrl5tHhWQnIQNzaI6Zp6yyFUNUQ);
 
 // Message to be sent
 $message = Test Notificación PHP;
 
 // Set POST variables
 $url = 'https://android.googleapis.com/gcm/send';
 
 $fields = array(
 'registration_ids' = $registrationIDs,
 'data' = array( message = $message ),
 );
 
 $headers = array(
 'Authorization: key=' . $apiKey,
 'Content-Type: application/json'
 );
 
 // Open connection
 $ch = curl_init();
 
 // Set the url, number of POST vars, POST data
 curl_setopt( $ch, CURLOPT_URL, $url );
 curl_setopt( $ch, CURLOPT_POST, true );
 curl_setopt( $ch, CURLOPT_HTTPHEADER, $headers);
 curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
 //curl_setopt( $ch, CURLOPT_POSTFIELDS, json_encode( $fields ) );
 
 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
 //curl_setopt($ch, CURLOPT_POST, true);
 //curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode( $fields ));
 
 // Execute post
 $result = curl_exec($ch);
 
 // Close connection
 curl_close($ch);
 echo $result;
 //print_r($result);
 //var_dump($result);
 ?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Google nudity policies question. Is our content approvable or not?

2012-09-05 Thread FiltrSoft
I think he was asking if art nudity would be accepted in the Play Store, 
then just regular porn-like nudity, which is why he showed an example, but, 
I agree, that this isn't the correct forum for a question like that.

On Tuesday, September 4, 2012 5:05:50 PM UTC-4, MagouyaWare wrote:

 Seriously? You're going to post images of nude women on a public mailing 
 list?  There are android developers that follow this forum as young as 13 
 years old!  Not only that but I watch this thread at work... Do you know 
 what kind of trouble I could get in for having that image on my screen?  On 
 top of that, was it really necessary to include an image like that in your 
 post?  When you say nudity we all know what you mean... it isn't 
 necessary to give a visual aid!

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Tue, Sep 4, 2012 at 12:02 PM, Steve morf...@gmail.com javascript:wrote:

 Nice job of product promotion, though.


 On Tuesday, September 4, 2012 9:33:57 AM UTC-4, Artyom Karma wrote:

 Hi! we're dev team called Hot Pies. https://play.google.com/store/**
 apps/developer?id=Hot+Pieshttps://play.google.com/store/apps/developer?id=Hot+PiesWe
  have an idea of  nu art 3d Live Wallpaper and we wanna know if Google 
 Policy allows us to show nudity without close details like on the attached 
 screenshots? It is fully rotateable 3d model. What age rating will it fit? 
 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-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




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

Re: [android-developers] Android: how to manipulate the display at OS level

2012-09-05 Thread Justin Anderson
Questions regarding modifying the Android OS should be asked on one of the
forums listed here:
http://source.android.com/community/index.html

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Sep 4, 2012 at 5:33 PM, Lian Balan lianba...@gmail.com wrote:

 I need help with Android. Anybody who knows how to manipulate the display
 at OS level.
 e.g. change colors on all icons/background of the display. Pls email
 lianbalan at gmail dot com.
 If you live in Seattle, we can meet for a dinner/lunch at your
 convenience. Thank you.

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

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