Re: [android-developers] Re: Can't stop debugging

2013-01-01 Thread Todd Painton
I was just plagued with the exact same problem.  Your steps fixed it for me 
too.  This is definitely a problem with the phone.  

On Wednesday, May 19, 2010 2:06:36 AM UTC-5, String wrote:

 On May 19, 1:30 am, brucko geoff.bruck...@gmail.com wrote: 

  Do you happen to have... 
  Debug.wait for debugger() 
   somewhere in your code? 

 No, afraid not. 

 FWIW, I think I've solved this - or at least made it go away. I 
 realized that it must be something on the handset, not in Eclipse or 
 my SDK, because it wasn't happening in any emulator instances, nor on 
 my trusty old G1. I was prepared to do a factory reset on the 
 offending phone, but before I did, I tried the following sequence of 
 events: 

 1. Uninstall app completely 
 2. Hard boot phone 
 3. Install app again 

 ...which seems to have worked. My previous reboot had been with the 
 app installed. 

 So if anyone ever has a similar problem, and comes across this thread 
 while searching for help, give that a try. :^) 

 String 

 -- 
 You received this message because you are subscribed to the Google 
 Groups Android Developers group. 
 To post to this group, send email to 
 android-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: help me urgent

2013-01-01 Thread Lew
sree wrote:

 i [sic] gave two single dimensional arrays

 one array
 prioritynamearray=alistpriorityname.toArray(new 
 String[alistpriorityname.size()]);

 two array
 taskvaluesarray=taskvaluesarraylist.toArray(new 
 String[taskvaluesarraylist.size()]);

 The above code i take two ArrayList and convert two single dimensional 
 arrays,
 now i need these two seperate arrays as two dimensional array.
 how please convert it and give solution,


First, Java doesn't actually have two-dimensional arrays. What is does have 
is one-dimensional
arrays each of whose elements is an array, declared similarly to 

Foo [][] someFoos = 
{
  {new Foo(00), new Foo(01),}, 
  {new Foo(10),}, 
};

There are various ways to declare arrays, as the docs show.

   Foo [][] someFoos = new Foo [19] [17];

So you declare your two-dimensional array, then cycle through the 
elements copying items 
into your array.

-- 
Lew

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

Re: [android-developers] Re: help me urgent

2013-01-01 Thread sree android
After takeing two one dimensional arrays, i prepared one two dimensional
array.like this way

String [ ][ ] taskoutput=new
String[prioritynamearray.length][taskvaluesarray.length];
then Loop is rotating like this way,


for (int s = 0; s prioritynamearray.length; s++) {
for (int t = 0; t taskvaluesarray.length; t++) {
 taskoutput[s][t]=here how can i add above two values into 2d arrays.
}
 }

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

2013-01-01 Thread sree android
After takeing two one dimensional arrays, i prepared one two dimensional
array.like this way

String [ ][ ] taskoutput=new
String[prioritynamearray.length][taskvaluesarray.length];
then Loop is rotating like this way,


for (int s = 0; s prioritynamearray.length; s++) {
for (int t = 0; t taskvaluesarray.length; t++) {
taskoutput[s][t]=here how can i add above two values into 2d arrays.
}
}


PLEASE SEND ME REPLAY.

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

2013-01-01 Thread skink


sree android wrote:
 After takeing two one dimensional arrays, i prepared one two dimensional
 array.like this way

 String [ ][ ] taskoutput=new
 String[prioritynamearray.length][taskvaluesarray.length];
 then Loop is rotating like this way,


 for (int s = 0; s prioritynamearray.length; s++) {
 for (int t = 0; t taskvaluesarray.length; t++) {
 taskoutput[s][t]=here how can i add above two values into 2d arrays.
 }
 }


 PLEASE SEND ME REPLAY.

i=s*prioritynamearray.length+t
taskoutput[s][t]=arr[i]

or

i=t*taskvaluesarray.length+s
taskoutput[s][t]=arr[i]

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] api demo 4.0.3 com.example.android.apis.app.FragmentRetainInstance

2013-01-01 Thread Greenhand
I would like to ask about the 
com.example.android.apis.app.FragmentRetainInstance.java in android api 
demo 4.0.3, which demos how to use fragment to handle configuration changes 
such as rotation.
At line 44-47
if (savedInstanceState == null) {

getFragmentManager().beginTransaction().add(android.R.id.content,
new UiFragment()).commit();
}
 
Why does it use android.R.id.content as the first argument at line 45?
 
The xml contains R.id.content is auto_complete_list.xml and the following 
is the content:
LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; 
android:id=@+id/content
android:orientation=vertical
android:layout_width=match_parent 
android:layout_height=wrap_content
android:background=@android:drawable/edit_text
android:divider=@android:drawable/divider_horizontal_textfield
android:addStatesFromChildren=true
LinearLayout android:id=@+id/container
android:orientation=vertical
android:layout_width=match_parent 
android:layout_height=wrap_content
android:paddingRight=0dip
/
AutoCompleteTextView android:id=@+id/edit
android:completionThreshold=1
android:layout_width=match_parent
android:layout_height=wrap_content
android:singleLine=true
android:layout_gravity=center_vertical
/   
/LinearLayout
There are two child under the root (R.id.content). 
However, when the code runs, I do not see the AutoCompleteTextView but only 
the layout inflate by UiFragment (R.layout.fragment_retain_instance).
Why? 

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

[android-developers] Re: Example gallery style view with fling, bounce, animation, etc

2013-01-01 Thread Rahul
Hello,

How can i use this code to create a gallery. I want to create a gallery which 
is 
circular and stops at the end completing on cycle. Please help me.

Thanks and regards,

Rahul 



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


[android-developers] Reading from another app

2013-01-01 Thread Russell Wheeler
If I wish to use images stored in another app, that I've written, what is 
the best way to do this?

Content provider or directly accessing the res folder?

Thanks in advance

Russ

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

2013-01-01 Thread Tommy
Hi everyone,

 

It seems that on my nexus 7 running android 4.2.1 the wake lock I have that
on all other devices keeps the phone asleep and screen off to run a
background service seems to wake the table up with the screen full bright.
Why would it do this? I have a phone that is running 4.0.4 and it works
correctly. Is there something I need to do differently?

 

Below is the code for my wake lock:

 

PowerManager pm1 =
(PowerManager)context.getSystemService(Context.POWER_SERVICE);

  PowerManager.WakeLock wl1 =
pm1.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK |
PowerManager.ACQUIRE_CAUSES_WAKEUP, x);

  

  wl1.acquire(3);

 

 

Thanks in advance,

 

Tommy

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

2013-01-01 Thread Robert Green
Thanks bob!  That game was from before BatteryTech and was the reason we
built a proper game engine.


Robert Green
DIY at http://www.rbgrn.net/


On Mon, Dec 31, 2012 at 7:38 PM, bob b...@coolfone.comze.com wrote:

 Thanks.

 By the way, I tried your Deadly Chambers game.  It is impressive.  I like
 how the guy's name is Chambers.  Very funny.



 On Saturday, December 29, 2012 12:46:49 PM UTC-6, Robert Green wrote:

 Yes, texture mapping is fairly standard and is very well supported.

 BAI means Binary Asset Import and is a compact memory-safe format of
 the internal structure of the open asset importer library.  We did create
 it ourselves but it's simple, easy to maintain and extend and fully
 compatible with version 2 of that library, which is why you can easily add
 more formats to the engine.

 On Friday, December 28, 2012 2:24:49 PM UTC-6, bob wrote:

 Thanks.


 Also,


 Does it support texture-mapped models?


 And, is the BAI format your own invention?



 On Friday, December 28, 2012 11:28:48 AM UTC-6, Robert Green wrote:

 Out of the box it supports OBJ for static geometry and Collada (DAE)
 for static and animated models.  We have a utility that will convert either
 of those to a binary format called BAI to go to production because it's
 smaller and loads faster.  The engine uses a library called Open Asset
 Import which supports 30+ formats, so if you want more formats supported,
 all you have to do is add in the format support files to either the engine
 or the BAI conversion utility.  I think the only format that isn't
 supported by Open Asset Importer is FBX, but autodesk has good FBX to DAE
 conversion utilities that work, so there is that option.

 On Thursday, December 27, 2012 10:54:07 PM UTC-6, bob wrote:

 Looks interesting.  What 3d model formats does it support?


 On Thursday, December 27, 2012 5:24:59 PM UTC-6, Robert Green wrote:

 Hi All,

 I'm a long time contributor of this group (over 400 posts I think),
 developer of Deadly Chambers, Antigen and several other Android games and
 just wanted to, in good will, let you know about the game engine that 
 we've
 been developing for the past 2 years.  It's called BatteryTech Engine and
 is available at http://www.batterytechsdk.com .  It's full OpenGL ES
 2.0 and was designed around Android so that it would work really well
 across over 1000 devices, maybe more.  It's free to develop but does
 require a license to deploy.  The license gets you full engine source 
 code
 which is something you don't see often from comparable engines.  We
 completely integrated Box2D and everything is bound to Lua to make it
 really easy to script out game logic.  You can also deploy on other
 platforms, but it works great specifically for Android too.

 Please let me know what you think, either here, privately or
 otherwise.  Would love feedback and am always happy to support.

 Thanks everyone!!

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

2013-01-01 Thread Mark Murphy
On Tue, Jan 1, 2013 at 12:29 PM, Tommy droi...@gmail.com wrote:
 It seems that on my nexus 7 running android 4.2.1 the wake lock I have that
 on all other devices keeps the phone asleep and screen off to run a
 background service seems to wake the table up with the screen full bright.
 Why would it do this? I have a phone that is running 4.0.4 and it works
 correctly. Is there something I need to do differently?

 Below is the code for my wake lock:



 PowerManager pm1 =
 (PowerManager)context.getSystemService(Context.POWER_SERVICE);

   PowerManager.WakeLock wl1 =
 pm1.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK |
 PowerManager.ACQUIRE_CAUSES_WAKEUP, x);



   wl1.acquire(3);

The combination of PARTIAL_WAKE_LOCK and ACQUIRE_CAUSES_WAKEUP is
bizarre, IMHO. If you do not want the screen to turn on, get rid of
ACQUIRE_CAUSES_WAKEUP.

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

Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
sobre desenvolvimento de aplicações para Android:
http://www.andglobe.com

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


Re: [android-developers] Re: help me urgent

2013-01-01 Thread Lew
sree wrote:

 After takeing two one dimensional arrays, i [sic] prepared one two 
 dimensional array.like this way

 String [ ][ ] taskoutput=new 
 String[prioritynamearray.length][taskvaluesarray.length];


Please follow the Java naming conventions. It will benefit you, too.

Also, array (or variant) in a variable name is generally not useful. 
Variables usually should not be 
named for their type.
 

 then Loop is rotating like this way,

 for (int s = 0; s prioritynamearray.length; s++) {


Watch your crazy indentation, please.

DO NOT USE TAB CHARACTERS TO INDENT USENET POSTS!

for (int t = 0; t taskvaluesarray.length; t++) {
  taskoutput[s][t]=here how can i add above two values into 2d arrays.


What do you want here? You have not told us. 

You are, in effect, defining a transformation from the cross between the 
value sets represented by 
(I'll rename your variables) 'priorities' and 'tasks'. Let me draw it:

  \  priorities
 |  [0]  |  [1]  |  [2]  |  ...
tasks |---  ---|---  ---|---  ---|  ...
  [0]   |   ?|   ?   |   ?   |  ...
 ---  ---|---  ---|---  ---|---  ---|  ...
  [1]   |   ?|   ?   |   ?   |  ...
 ---  ---|---  ---|---  ---|---  ---|  ...
  [2]   |   ?|   ?   |   ?   |  ...
 ---  ---|---  ---|---  ---|---  ---|  ...
  [3]   |   ?|   ?   |   ?   |  ...
 ---  ---|---  ---|---  ---|---  ---|  ...

You will need 'priorities.length' times 'tasks.length' values to fill in 
those question-marked
matrix entries.

What goes there?

Please tell us.

  Foo results = new Foo [tasks.length] [priorities.length];
  for (int tx = 0; tx  tasks.length; ++tx)
  {
for (int px = 0; ix  priorities.length; ++px)
{
  Task task = tasks[tx];
  Priority priority = priorities[px];
  results [px][tx] = whatDoYouWantHerePleaseTellUs(task, priority);
}
  }

You need to tell us what you want in that box.

Obviously it's a value that depends on the two indexing values. You likely 
would want to factor 
that out as a method on the two arguments as I showed here.

So what do you want in that box?

-- 
Lew

  

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

Re: [android-developers] Re: help me urgent

2013-01-01 Thread Lew
Lew wrote:

   Foo results = new Foo [tasks.length] [priorities.length];
   for (int tx = 0; tx  tasks.length; ++tx)
   {
 for (int px = 0; ix  priorities.length; ++px)
 {
   Task task = tasks[tx];
   Priority priority = priorities[px];
   results [px][tx] = whatDoYouWantHerePleaseTellUs(task, priority);


Oops. '[tx][px]' . I got it backwards.

}
   }

 You need to tell us what you want in that box.

 Obviously it's a value that depends on the two indexing values. You likely 
 would want to factor 
 that out as a method on the two arguments as I showed here.

 So what do you want in that box?

 -- 
 Lew

   


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

Re: [android-developers] How can an app cause a hard freeze?

2013-01-01 Thread Nathan

On Friday, December 28, 2012 4:45:44 PM UTC-8, Mark Murphy (a Commons Guy) 
wrote:

 On Fri, Dec 28, 2012 at 7:34 PM, Nathan nathan@gmail.comjavascript: 
 wrote: 
  Here are a few things I suspect might cause these things: 
  Firmware/hardware errors in the device: 

 Device or storage overheats is a duplicate of this, IMHO. This 
 category should cover 100% of device-freeze situations, at least if 
 OS bugs are considered firmware errors. There's nothing an SDK app 
 should be able to do in its own process that can lock up the device 
 that isn't some sort of low-level issue, AFAIK. 

 While most of these will be problems originating from the device 
 manufacturer, modded ROMs can also introduce firmware errors or 
 trigger hardware problems (e.g., overclocking and runaway heat 
 buildup). 


OK. I doubt telling a user it's your devices problem will solve much, 
even though it is likely true. I'm no closer to preventing or solving it. 
 

  Runs out of memory: 

 Event loop gets full is a duplicate of this, IMHO -- leastways, I am 
 unaware of another bound on the queue used by Looper and kin. I don't 
 think that this will cause a device freeze, though I could certainly 
 be wrong about that. 


I have gotten stack traces that indicate a ThreadPool caused an 
OutofMemoryError because of the sheer number of Runnable's in its queue. It 
hit the OutofMemory before any other arbitrary limit, so I suspect you are 
right there. 

But I was actually thinking of this as a duplicate of CPU overload. An 
overfull event loop is almost certain to max out the CPU to 100%. I would 
expect something like this to cause a Force Close long before it maxed out 
memory or CPU, but it didn't in the stress test I mentioned above. 


  Any sure fire technique you have found for freezing an Android, let me 
 know 
  and I will try to *not* do it. 

 I'd stay away from the liquid nitrogen. :-) 


If you block the main thread on a ReEntrantLock that is never released by 
its owning thread, that might do it. This is something that should cause a 
force close, and I believe it does at least some of the time. I believe I 
did create a hard freeze doing this once, but can't reproduce it today even 
when trying. 

Nathan 

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

2013-01-01 Thread Todd Grigsby
See http://www.samba.org
On Dec 31, 2012 10:26 PM, satish bhoyar getsatonl...@gmail.com wrote:

 hi all,

 Happy new year to all of you.
 I am trying to make application like file browser.
 the constraint is I want to browse the files that are shared on the
 network in my company.
 My android device is in LAN and in my app I want to give ip of pc and
 app should search that PC and if i click in it I should be able to see
 contents that PC is sharing.

 Problem -
 - How should I search computer , is there any api or example which I
 can start on.?
 - once I found the computer I want to get information about the
 contents or folders that are shared by that computer.

 Any help will be very usefull.

 thanks,
 satish

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

2013-01-01 Thread Tommy
That appears to have worked. I'll be honest, I have no idea why or when that
2nd parameter got put in. 

As always, thank you mark for the advice!

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of Mark Murphy
Sent: Tuesday, January 01, 2013 1:14 PM
To: android-developers@googlegroups.com
Subject: Re: [android-developers] Android 4.2.1 and Wake Locks

On Tue, Jan 1, 2013 at 12:29 PM, Tommy droi...@gmail.com wrote:
 It seems that on my nexus 7 running android 4.2.1 the wake lock I have 
 that on all other devices keeps the phone asleep and screen off to run 
 a background service seems to wake the table up with the screen full
bright.
 Why would it do this? I have a phone that is running 4.0.4 and it 
 works correctly. Is there something I need to do differently?

 Below is the code for my wake lock:



 PowerManager pm1 = 
 (PowerManager)context.getSystemService(Context.POWER_SERVICE);

   PowerManager.WakeLock wl1 = 
 pm1.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK | 
 PowerManager.ACQUIRE_CAUSES_WAKEUP, x);



   wl1.acquire(3);

The combination of PARTIAL_WAKE_LOCK and ACQUIRE_CAUSES_WAKEUP is bizarre,
IMHO. If you do not want the screen to turn on, get rid of
ACQUIRE_CAUSES_WAKEUP.

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

Aqui estão alguns sites onde você pode perguntar ou responder dúvidas sobre
desenvolvimento de aplicações para Android:
http://www.andglobe.com

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

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

2013-01-01 Thread Mark Murphy
On Tue, Jan 1, 2013 at 2:26 PM, Tommy droi...@gmail.com wrote:
 I'll be honest, I have no idea why or when that 2nd parameter got put in.

It would be useful for any of the other WakeLock types, where you want
the screen to display (and to actually turn on if it is already off).

I filed a feature request to have a Lint check to flag this combination:

http://code.google.com/p/android/issues/detail?id=42169

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

Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
sobre desenvolvimento de aplicações para Android:
http://www.andglobe.com

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


Re: [android-developers] Reading from another app

2013-01-01 Thread Latimerius
On Tue, Jan 1, 2013 at 6:08 PM, Russell Wheeler 
russellpeterwhee...@gmail.com wrote:

 If I wish to use images stored in another app, that I've written, what is
 the best way to do this?

 Content provider or directly accessing the res folder?


I do almost the same, except that my images are in the assets/ directory,
and accessing it directly has worked well for me.

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

[android-developers] Re: HI BROS

2013-01-01 Thread Lew
sree wrote:

 After takeing two one dimensional arrays, i prepared one two dimensional 
 array.like this way

 String [ ][ ] taskoutput=new 
 String[prioritynamearray.length][taskvaluesarray.length];
 then Loop is rotating like this way,


 for (int s = 0; s prioritynamearray.length; s++) {
 for (int t = 0; t taskvaluesarray.length; t++) {
 taskoutput[s][t]=here how can i add above two values into 2d arrays.
  }
 }


 PLEASE SEND ME REPLAY.


You don't need to keep posting the same question over and over. Did not the 
other answers
work for you? Have you replied to the questions in your other thread on 
this exact matter?

I spent a bit of time piecing together example code and links for you. Did 
any of that help?

-- 
Lew
 

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

[android-developers] Re: HI BROS

2013-01-01 Thread Matt Kanninen
OP's post needs better subject line.  I was expecting a happy new year 
message.

On Tuesday, January 1, 2013 2:22:49 PM UTC-8, Lew wrote:

 sree wrote:

 After takeing two one dimensional arrays, i prepared one two dimensional 
 array.like this way

 String [ ][ ] taskoutput=new 
 String[prioritynamearray.length][taskvaluesarray.length];
 then Loop is rotating like this way,


 for (int s = 0; s prioritynamearray.length; s++) {
 for (int t = 0; t taskvaluesarray.length; t++) {
 taskoutput[s][t]=here how can i add above two values into 2d arrays.
  }
 }


 PLEASE SEND ME REPLAY.


 You don't need to keep posting the same question over and over. Did not 
 the other answers
 work for you? Have you replied to the questions in your other thread on 
 this exact matter?

 I spent a bit of time piecing together example code and links for you. Did 
 any of that help?

 -- 
 Lew
  


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

Re: [android-developers] Reading from another app

2013-01-01 Thread Russell Wheeler
Latimerius, 

So how do you directly access them from the assets folder? Doing it this 
way, are the images available to anyone who has root access? i.e. can they 
steal your images?

Why do you use assets? For ease, or for some other reason? I thought it 
would be better to have them in the res folders so that the diff screen 
sizes still get used, e.g. ldpi/hdpi etc folders?

Thanks for asking, not sure quite how this topic has got off of my 
control?!?! haha

Russ



On Tuesday, January 1, 2013 9:55:49 PM UTC, latimerius wrote:


 On Tue, Jan 1, 2013 at 6:08 PM, Russell Wheeler 
 russellpe...@gmail.comjavascript:
  wrote:

 If I wish to use images stored in another app, that I've written, what is 
 the best way to do this?

 Content provider or directly accessing the res folder?


 I do almost the same, except that my images are in the assets/ directory, 
 and accessing it directly has worked well for me.



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

Re: [android-developers] Replacement for MODE_WORLD_READABLE

2013-01-01 Thread William Ferguson
Thanks Mark that's perfect. I'd always shied away from ContentProviders 
because they looked miles too heavy weight and complex but that is a neat 
and simple solution.

One question: Why the does #onCreate copy the target file?  Is it just to 
validate that you can read the file? Shouldn't that be done later since 
#onCreate is called on every App startup?

William


On Monday, December 31, 2012 8:45:57 AM UTC+10, Mark Murphy (a Commons Guy) 
wrote:

 On Sun, Dec 30, 2012 at 5:24 PM, William Ferguson 
 william@xandar.com.au javascript: wrote: 
  So considering the use case how do I rebuild without using 
  MODE_WORLD_READABLE? 

 Create a ContentProvider to serve the file using openFile(). Then use 
 a content:// Uri instead of a file:// Uri. This may reduce the number 
 of apps that can handle the ACTION_SEND Intent -- those that 
 advertised that they specifically support file:// instead of just 
 generically supporting the MIME type will not show up in your chooser. 

 Here is a sample project that packages a PDF file in an asset, unpacks 
 it on first run, then makes that PDF available via a ContentProvider 
 and views it using ACTION_SEND and your chosen PDF viewer: 

 https://github.com/commonsguy/cw-omnibus/tree/master/ContentProvider/Files 

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

 In questi siti web puoi chiedere o rispondere a domande relative allo 
 sviluppo di applicazioni Android: http://www.andglobe.com 


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

[android-developers] Reading from another app - resources/assets (Take 2!)

2013-01-01 Thread Russell Wheeler
As my previous question seems to have got hijacked by someone else I'll ask 
again, and hopefully get additional responses.

I have included my original question plus latimerius' reply, and then my 
subsequent reply...





 On Tuesday, January 1, 2013 9:55:49 PM UTC, latimerius wrote:


 On Tue, Jan 1, 2013 at 6:08 PM, Russell Wheeler russellpe...@gmail.com
  wrote:

 If I wish to use images stored in another app, that I've written, what 
 is the best way to do this?

 Content provider or directly accessing the res folder?


 I do almost the same, except that my images are in the assets/ directory, 
 and accessing it directly has worked well for me.



On Wednesday, January 2, 2013 1:20:30 AM UTC, Russell Wheeler wrote:

 Latimerius, 

 So how do you directly access them from the assets folder? Doing it this 
 way, are the images available to anyone who has root access? i.e. can they 
 steal your images?

 Why do you use assets? For ease, or for some other reason? I thought it 
 would be better to have them in the res folders so that the diff screen 
 sizes still get used, e.g. ldpi/hdpi etc folders?

 Thanks for asking, not sure quite how this topic has got off of my 
 control?!?! haha

 Russ



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

2013-01-01 Thread William Ferguson
Thanks Tre, as one of the ACRA committers I have pretty good idea of what's 
involved. But it's too heavy weight and not transparent enough to the user. 
Yes I could build it, but I'd rather spend effort elsewhere.

William

On Monday, December 31, 2012 1:54:41 PM UTC+10, TreKing wrote:

 On Sun, Dec 30, 2012 at 4:24 PM, William Ferguson 
 william@xandar.com.au javascript: wrote:

 I want the process to be transparent to the user. I want to reuse 
 existing rather build a lot of infrastructure myself. And I don't want to 
 add any new permissions like WRITE_EXTERNAL_STORAGE. I want this simple as 
 it is far from core functionality .


 You could use ACRA, or it's core idea: keep a local log file and then 
 upload it to a Google Document or server where you can view the data. It's 
 a pretty straightforward implementation.


 -
 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: hi friends

2013-01-01 Thread Mariusz Fik
sree android wrote:

 Happy New Year to One And All.
 
 Please suggest me,
 
 The above attached image,How can i display that items.How can i add items
 particularly in Today or Tomarrow Textviews and also the line below of
 Today textview.
 Please send me replay with which concept is used and how.
 
It's a ListView with sections.

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

2013-01-01 Thread RichardC
On Wednesday, January 2, 2013 1:20:30 AM UTC, Russell Wheeler wrote:

 Latimerius, 

 So how do you directly access them from the assets folder? Doing it this 
 way, are the images available to anyone who has root access? i.e. can they 
 steal your images?

 APKs are world readable
 

 Why do you use assets? For ease, or for some other reason? I thought it 
 would be better to have them in the res folders so that the diff screen 
 sizes still get used, e.g. ldpi/hdpi etc folders?

 Thanks for asking, not sure quite how this topic has got off of my 
 control?!?! haha

 Russ



 On Tuesday, January 1, 2013 9:55:49 PM UTC, latimerius wrote:


 On Tue, Jan 1, 2013 at 6:08 PM, Russell Wheeler 
 russellpe...@gmail.comwrote:

 If I wish to use images stored in another app, that I've written, what 
 is the best way to do this?

 Content provider or directly accessing the res folder?


 I do almost the same, except that my images are in the assets/ directory, 
 and accessing it directly has worked well for me.



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

Re: [android-developers] Replacement for MODE_WORLD_READABLE

2013-01-01 Thread TreKing
On Tue, Jan 1, 2013 at 7:24 PM, William Ferguson 
william.fergu...@xandar.com.au wrote:

 But it's too heavy weight and not transparent enough to the user. Yes I
 could build it, but I'd rather spend effort elsewhere.


FWIW, I don't use the full ACRA library but implemented my own solution
based on the concept. Automatic bug reports to Google Docs and a prompt on
crashing that leads to a Bug Report Activity where the user can opt to send
a report without having to use their personal email account, which I think
would dissuade many people from sending reports. It's pretty lightweight,
very transparent (dialog on restarting app after a crash) and was not much
effort. Well worth it in my opinion.

Just food for thought - you know your own requirements better than I. Good
luck.

-
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] How to develop QR Reader application

2013-01-01 Thread askl
*Hi Friends,*
*
*
*Just give me steps for develop QR reader application with related jar 
files. How to develop simple qr reader application?*
*Thank you*

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

[android-developers] How to develop QR Reader application

2013-01-01 Thread RichardC
http://code.google.com/p/zxing/

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


[android-developers] jjrynyfhvghbbnkjjjhrgtgghjjjy

2013-01-01 Thread Weipeigang


发自我的 iPod

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


[android-developers] Version 3: Query in-app product information

2013-01-01 Thread Nathan
I was enthusiastic when I read this about the new In App Purchase API. 

*The API also introduces a long-anticipated feature: the ability to query 
in-app product information directly from Google Play

*I'm all for it. Maybe I don't have to host my own details on a third party 
server like now.  

But then I read through some gory details. 

*To query the details of the in-app products that you defined in Google 
Play, your application can send a getSkuDetails request. You must specify a 
list of product IDs in the query request.*

So my app needs to know about all of the product IDs beforehand? But this 
would be useful if I somehow know about the product but forgot its name or 
wimpy 80 character description? 

I guess this is useful for dynamically updating price without surprising 
the user. But am I the only one thinking this falls short?

You need your own server infrastructure (or built in to app) for:
Description more than 80 characters, if needed. 
Knowing what the set of products is. 
Downloading any files associated with it. 

But at least you can query the price dynamically. 

In addition, it says it does not support subscriptions (yet?). That's just 
the thing I wanted to add. Although it does sound like consumable managed 
items might be able to do about the same thing as subscriptions. 

In all, it may not be time to move to the v3 API. I would like to make a 
clean break from Urban Airship, who hosts my content now because, well, 
they suck. 

Nathan


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

[android-developers] Install Button Not Showing in Google + Account

2013-01-01 Thread rishabh agrawal
Hi 

I am integrating Google +1 api  in my android application for +1 
Recommendation  sharing.When i share my application using android phone 
install button not show in google+ account .Where user can be directly 
download.But when i share using web browser it show install button.


Kindly suggest me how it is possible to show direct install button when 
user share my application. 

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

2013-01-01 Thread Sat
Cool thanks .. will check it out ..

On Wednesday, January 2, 2013 12:44:56 AM UTC+5:30, Todd wrote:

 See http://www.samba.org
 On Dec 31, 2012 10:26 PM, satish bhoyar getsat...@gmail.comjavascript: 
 wrote:

 hi all,

 Happy new year to all of you.
 I am trying to make application like file browser.
 the constraint is I want to browse the files that are shared on the
 network in my company.
 My android device is in LAN and in my app I want to give ip of pc and
 app should search that PC and if i click in it I should be able to see
 contents that PC is sharing.

 Problem -
 - How should I search computer , is there any api or example which I
 can start on.?
 - once I found the computer I want to get information about the
 contents or folders that are shared by that computer.

 Any help will be very usefull.

 thanks,
 satish

 --
 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] no domain

2013-01-01 Thread bob
What is the convention for naming your APK package if you don't have your 
own domain 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

Re: [android-developers] no domain

2013-01-01 Thread Mário César Mancinelli de Araújo
Just create one as you whant. What people usually do is:

com.NameOfYourCompany.NameOfYoutSoftware

But basically you can put whatever you want.

Best regards.
Em 02/01/2013 04:12, bob b...@coolfone.comze.com escreveu:

 What is the convention for naming your APK package if you don't have your
 own domain 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

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

2013-01-01 Thread galapogos
On Monday, December 31, 2012 9:07:46 PM UTC+8, Mark Murphy (a Commons Guy) 
wrote:

 On Sun, Dec 30, 2012 at 11:43 PM, galapogos goi...@gmail.comjavascript: 
 wrote: 
  I'm specifically trying to first get the 
  ICS AOSP launcher to install on any ICS phone, and then modify it with 
 some 
  features. 

 You are welcome to copy the source code out of AOSP, import it into an 
 Android SDK project, and hack away to get rid of things that do not 
 compile anymore. This may take some time. 

Thanks. are there any guides on how this can be done? I don't mind hacking 
away but I'm not sure where to start.
 


  I don't 
  necessarily have to use Eclipse, I'm fine with make Launcher2. 

 That is not how you build an SDK project from the command line. 

So I guess you're suggesting importing the project to Eclipse and working 
from there?

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