Re: [android-developers] /dev/graphics/fb0 pemission

2011-03-09 Thread Marcin Orlowski
On 9 March 2011 06:58, ke tang  wrote:

> I porting the ffmpeg-0.6.1 version to android 2.1, and when I use the ffmpeg
> to encode screen with the /dev/graphics/fb0 file.
> but get the "Operation is not permitted" error message, and I affirm that
> use id is root.

framebuffer is not available on most devices, so you need root or hold
READ_FRAME_BUFFER permission (which if I remember correctly
requires app to be signed with key platform key). So you need root.

-- 
Regards,
Marcin Orlowski

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

2011-03-09 Thread Zsolt Vasvari
Nothing is impossible, but I doubt it in this case.  My app is
probably the 2nd most popular (but the highest average rating) among
it's direct competitors, but the #1 app has not moved down in ranking,
actually the opposite.   My app has also never been on the front page
that I know of, which I agree, features the same apps all the time.

On Mar 9, 3:54 pm, DraganA  wrote:
> On the other hand, maybe Google realized that a lot of people are
> bored with seeeing the same old apps on the front Market page week in
> week out. I think this "old system" created a bigger and bigger divide
> between established apps and the new apps that have no chance to even
> come near the big ones, so people never see them. In turn established
> apps make more and more money and the small apps just bump around the
> bottom even though they may be just as good.
>
> On Mar 9, 2:51 am, Zsolt Vasvari  wrote:
>
>
>
> > It's good to know that I am not alone.  I've gone through various
> > channels now, but I haven't had an answer yet from any of them, not
> > too surprisingly.
>
> > I don't know about the algorithm change -- the install % is pretty
> > black & white in my book and none of my main competitors have suffered
> > the same ranking loss.
>
> > If this won't get "fixed", I will have no choice just to abandon my
> > app as my sales the last few days don't make it feasible to continue
> > with it.
>
> > On Mar 9, 9:45 am, String  wrote:
>
> > > Just to make myself heard: you're not alone here, Zsolt. I don't monitor 
> > > my
> > > install percentage closely (I have enough on my plate already) but the 
> > > last
> > > week or so, my rankings have all nosedived, with sales following right
> > > behind. No updates in the timeframe, no other externalities AFAICT.
>
> > > I'm pretty certain it's an algorithmic change behind the scenes on the
> > > Market. Whether it was intentional or not, I can't say.
>
> > > String- Hide quoted text -
>
> - Show quoted text -

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


[android-developers] Re: Read CSV from web

2011-03-09 Thread Indicator Veritatis
I have used openscv before. I liked it. It is very straightforward to
use and documented well enough. I chose it over another open source
library that was so poorly documented, it would have been easier to
code my own from scratch!

It also has a "commercial friendly" license.

On Mar 8, 6:17 pm, Kristopher Micinski  wrote:
> http://opencsv.sourceforge.net/
>
> Is a Java based CSV parser it seems. Download your data, use the library,
> and manipulate your data.
>
> Kris
>
> On Mon, Mar 7, 2011 at 8:01 PM, Hari Edo  wrote:
>
> > This looks like a school homework assignment.
>
> > Have you even taken the first step of dividing this task into
> > two parts?  What's the first thing you want to do?  What have
> > you considered, to get that first step accomplished?
>
> > On Mar 3, 6:13 pm, Muhammad Anas  wrote:
> > > I am new to android and creating an application that imports data from
> > > web in CSV format. Please tell me how to parse data taken from web
> > > (CSV Format) in android
>
> > > I need to read it from URL and the sample data that I need to parse is
> > > as follows
>
> > > "Start Date","Start Time","End Date","End Time","Location","Subject"
>
> > > "2011-03-03","13:15","2011-03-03","15:00","-","S1,John,Seminar on
> > > Telecommunication"
>
> > > "2011-03-06","10:15","2011-03-06","13:00","-","E1,Nicolas,Examination
> > > of TCP"
>
> > > The above is the data I am importing from URL (webpage) and it is not
> > > exactly as I have written it. The data is in one line not in different
> > > lines like below
>
> > > "Start Date","Start Time","End Date","End
>
> > Time","Location","Subject""2011-03-03","13:15","2011-03-03","15:00","-","S1
> > ,John,Seminar
> > > on
>
> > Telecommunication""2011-03-06","10:15","2011-03-06","13:00","-","E1,Nicolas
> > ,Examination
> > > of TCP"
>
> > > I need to separate each n everything. Please help me out that how to
> > > import it from URL and to parse it in android
>
> > > /Anas
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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: Camera startPreview() failed on Nexus S with Gingerbread

2011-03-09 Thread Paolo
Thanks Mark.
I'll compare my code with yours, to understand where the problem is.

On 8 Mar, 15:17, Mark Murphy  wrote:
> The Nexus S works just fine with camera previews. See:
>
> https://github.com/commonsguy/cw-advandroid/tree/master/Camera/Previewhttps://github.com/commonsguy/cw-advandroid/tree/master/Camera/Picture
>
> The first one is just preview, working with the default camera. The
> second one also takes pictures and will use the FFC on Android 2.3 and
> newer devices (if there is an FFC), otherwise it will use the default
> camera.
>
>
>
>
>
> On Tue, Mar 8, 2011 at 9:07 AM, Paolo  wrote:
> > I guess the problem is that Nexus S has two cameras (front and back).
> > With Froyo I can't manage this situation. I expect that Android use
> > the back one without problem with the same code I use for Froyo,
>
> > The startPreview() faild and I don't undestrand why.
>
> > If I run the same app on a Nexus One with Gingerbread installed, it
> > works fine... I suppose because N1 has only one camera.
>
> > Please help me!
>
> > Paolo
>
> > On 7 Mar, 18:00, Paolo  wrote:
> >> Hi there!
> >> I've tested my app developed with SDK 2.2 as target on a Nexus S with
> >> Gingerbread. All it goes ok, except the activity that uses the Camera
> >> hardware to take pictures.
> >> I don't know what's wrong... :(
> >> Is there anyone who has had the same problem? Please help me!
>
> >> Thanks in advance!
>
> >> This is my logcat:
>
> >> 03-07 17:47:04.457: ERROR/SecCamera(75): ERR(int
> >> android::fimc_v4l2_reqbufs(int, v4l2_buf_type, int)):VIDIOC_REQBUFS
> >> failed
> >> 03-07 17:47:04.457: ERROR/SecCamera(75): int
> >> android::SecCamera::startPreview()::828 fail. errno: Out of memory,
> >> m_camera_id = 0
> >> 03-07 17:47:04.457: ERROR/CameraHardwareSec(75): ERR(virtual
> >> android::status_t android::CameraHardwareSec::startPreview()):Fail on
> >> mSecCamera->startPreview()
> >> 03-07 17:47:04.460: DEBUG/AndroidRuntime(793): Shutting down VM
> >> 03-07 17:47:04.460: WARN/dalvikvm(793): threadid=1: thread exiting
> >> with uncaught exception (group=0x40015560)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793): FATAL EXCEPTION: main
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):
> >> java.lang.RuntimeException: startPreview failed
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> android.hardware.Camera.startPreview(Native Method)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> it.visitotuscany.CameraActivity.surfaceChanged(CameraActivity.java:
> >> 330)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> android.view.SurfaceView.updateWindow(SurfaceView.java:549)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> android.view.SurfaceView.dispatchDraw(SurfaceView.java:348)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> android.view.ViewGroup.drawChild(ViewGroup.java:1644)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> android.view.ViewGroup.drawChild(ViewGroup.java:1644)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> android.view.View.draw(View.java:6883)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> android.widget.FrameLayout.draw(FrameLayout.java:357)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> android.view.ViewGroup.drawChild(ViewGroup.java:1646)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> android.view.View.draw(View.java:6883)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> android.widget.FrameLayout.draw(FrameLayout.java:357)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> com.android.internal.policy.impl.PhoneWindow
> >> $DecorView.draw(PhoneWindow.java:1862)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> android.view.ViewRoot.draw(ViewRoot.java:1522)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> android.view.ViewRoot.performTraversals(ViewRoot.java:1258)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> android.view.ViewRoot.handleMessage(ViewRoot.java:1859)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> android.os.Handler.dispatchMessage(Handler.java:99)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> android.os.Looper.loop(Looper.java:123)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> android.app.ActivityThread.main(ActivityThread.java:3683)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> java.lang.reflect.Method.invokeNative(Native Method)
> >> 03-07 17:47:04.468: ERROR/AndroidRuntime(793):     at
> >> java.lang.reflect.Method.invoke(Method

[android-developers] Re: Managing Out of memory

2011-03-09 Thread Manish Garg
Thanks Thomas. Is there any benifit of using
Runtime.getRuntime().freeMemory() over ActivityManager.MemoryInfo()?
MemroyInfo.availMemory also gives free memory size but for the device.

On Mar 9, 12:42 pm, Thomas  wrote:
> you could model this in an algorithmic fashion:
>
> check memory
> if memory is sufficient
>      fetch images
> if low memory (after image fetch),
>      release previously fetched image(s)
>
> check out the java.lang.Runtime class, it has exactly the functions
> you're looking for (specifically totalMemory() for the device's total
> memory, and freeMemory() for how much free memory is left)
>
> Here it is on the android developer 
> website:http://developer.android.com/reference/java/lang/Runtime.html
>
> On Mar 9, 1:06 am, Manish Garg  wrote:
>
>
>
> > Hi All,
>
> > I want to check low memory state in my application. In my application
> > i am fetching some iamges from the server and displaying them in the
> > gallery. I am fetching images in batch, not at single time. At the
> > time of low memory, i want to release previously fetched image so that
> > i can store newly fetched images.
>
> > my approach is to find out available memory, compare it with the
> > threshold memory. If both are equal then release previously fetched
> > images. but size of the threshold is in MB, while i would require only
> > 500kb to 1 MB for new images.
>
> > Please give me some idea.- Hide quoted text -
>
> - Show quoted text -

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


Re: [android-developers] ICON PROBLEM

2011-03-09 Thread Kostya Vasilyev

09.03.2011 12:14, rishabh agrawal пишет:

HI FRIENDS,
PLZ GIVE ME A SUGGESTION WHERE I FIND MORE RELIGIOUS ICON.ANY WEBSITE
OR SOFT,OR HOW TO CREATE OWN ICON PLZ HELP


How about this:

http://www.iconfinder.com/search/?q=jesus

I really like the third one: "Jesus, reloaded" ?

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


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


[android-developers] ICON PROBLEM

2011-03-09 Thread rishabh agrawal
HI FRIENDS,
PLZ GIVE ME A SUGGESTION WHERE I FIND MORE RELIGIOUS ICON.ANY WEBSITE
OR SOFT,OR HOW TO CREATE OWN ICON PLZ HELP

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


[android-developers] Re: Managing Out of memory

2011-03-09 Thread Manish Garg
I have tried to use following logic
ActivityManager activityManager =
(ActivityManager)getSystemService(ACTIVITY_SERVICE);
MemoryInfo memoryInfo = new ActivityManager.MemoryInfo();
activityManager.getMemoryInfo(memoryInfo);

long availableMemory = memoryInfo.availMem;
long thresholdMemory = memoryInfo.threshold;

//creating temporary threshold of 2MB for newly fetched bills
long tempAppThresHold = (long)Math.pow(2, 11);

if(availableMemory <= thresholdMemory + tempAppThresHold)
   release images
else
 nothing

On Mar 9, 12:42 pm, Thomas  wrote:
> you could model this in an algorithmic fashion:
>
> check memory
> if memory is sufficient
>      fetch images
> if low memory (after image fetch),
>      release previously fetched image(s)
>
> check out the java.lang.Runtime class, it has exactly the functions
> you're looking for (specifically totalMemory() for the device's total
> memory, and freeMemory() for how much free memory is left)
>
> Here it is on the android developer 
> website:http://developer.android.com/reference/java/lang/Runtime.html
>
> On Mar 9, 1:06 am, Manish Garg  wrote:
>
>
>
> > Hi All,
>
> > I want to check low memory state in my application. In my application
> > i am fetching some iamges from the server and displaying them in the
> > gallery. I am fetching images in batch, not at single time. At the
> > time of low memory, i want to release previously fetched image so that
> > i can store newly fetched images.
>
> > my approach is to find out available memory, compare it with the
> > threshold memory. If both are equal then release previously fetched
> > images. but size of the threshold is in MB, while i would require only
> > 500kb to 1 MB for new images.
>
> > Please give me some idea.- Hide quoted text -
>
> - Show quoted text -

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


[android-developers]

2011-03-09 Thread vani reddy
Hi,
I am not able to display the image,after converting to bitmap ,i am getting
the below error
/skia(3679): --- decoder->decode returned false


i am using the below class
import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;

 public  class PlurkInputStream extends FilterInputStream {

protected PlurkInputStream(InputStream in) {

super(in);
System.out.println("inside constructor");
}

public   int read(byte[] buffer, int offset, int count)
throws IOException {
int ret = super.read(buffer, offset, count);
System.out.println("inside read");
for ( int i = 2; i < buffer.length; i++ ) {
if ( buffer[i - 2] == 0x2c && buffer[i - 1] == 0x05
&& buffer[i] == 0 ) {
buffer[i - 1] = 0;
}
}
return ret;
}

}

and i am calling it as
InputStream in =openHttpConnection(urlstr);
  Bitmap bitmap = BitmapFactory.decodeStream(new PlurkInputStream(in));

Please reply :-) Thanks in advance


-- 
 Regards,
Vani Reddy

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

[android-developers] Honeycomb / Fragments: can't remove a fragment added in XML layout

2011-03-09 Thread C. Plantier
Hi,

I can't remove a Fragment that was added in an XML layout file, using
a FragmentTransaction. I don't understand why, I probably
misunderstood something and I would appreciate some explanations.


Here's a simple code to demonstrate my problem :

** Main layout, main.xml:
http://schemas.android.com/apk/res/
android"
android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:id="@+id/root"
>





** Main activity:
public class TestFragmentsActivity extends Activity {

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

TextView helloView = (TextView)
findViewById(R.id.hello_view);
helloView.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {
FragmentManager fragmentManager =
getFragmentManager();
FragmentTransaction transaction =
fragmentManager.beginTransaction();
 
transaction.remove(fragmentManager.findFragmentById(R.id.fragment_a));
transaction.commit();
}
});
}
}

** My fragment class:
public class FragmentA extends Fragment {

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup
container, Bundle savedInstanceState) {
return inflater.inflate(R.layout.layout_a, container,
false);
}
}

** Fragment layout, layout_a.xml:
http://schemas.android.com/apk/res/
android" android:layout_width="match_parent"
android:layout_height="match_parent">




When I click on the text view, the fragment should be removed, but
nothing seems to happen. If I click again, the application crashes
with the following error messages:

03-09 09:48:09.248: ERROR/AndroidRuntime(1222):
java.lang.NullPointerException
03-09 09:48:09.248: ERROR/AndroidRuntime(1222): at
android.app.BackStackRecord.remove(BackStackRecord.java:365)
03-09 09:48:09.248: ERROR/AndroidRuntime(1222): at
test.fragments.TestFragmentsActivity
$1.onClick(TestFragmentsActivity.java:28)


Maybe it's not possible to remove fragments that were added using XML
layouts?

Thanks in advance.

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


[android-developers] Am unable to make breakpoint work in Eclipse

2011-03-09 Thread Bernard T. Higonnet

Hello,

This actually an Eclipse question, but I hope someone will be kind enough to 
answer it.

I have an android application which I'm debugging with Eclipse.

I have defined a number of breakpoints all of which work except one. When I create it (toggle under right button) it 
creates the breakpoint but with a slightly different icon. Instead of getting a little icon which appears to be a circle 
with a little tail towards the lower left (which is what all my working breakpoints have) I get a circle without a tail.


When I inspect the properties of each breakpoint (with tail or without) in the breakpoints view, they all appear to be 
the same. I have searched around in the documentation without success.


The statement in question is executable and reachable.

Help!

Bernard Higonnet

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

2011-03-09 Thread mac-systems
Hello,

i've just cant figure out why this should be wrong ?


wrap_content
@dimen/title_height
@drawable/mv_logo
5dp
5dp


Eclipse complain about the parent :error: Error retrieving parent for
item: No resource found that matches the given name '@android:style/
Widget.ImageView'.

Whats is different for an ImageView ?

Thx,
Jens


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


[android-developers] appwidgets

2011-03-09 Thread b_t
Hi,

some of my users complains that my appwidgets aren't found in the
widget list so they can't add
them to the dashboard.

Does anyone know how it is possible?

I reinstall my app many times from apk - not from the market - during
development and sometimes I
got the same problem and I have to reboot my device. And after
rebooting the widgets are there in the list.

Thanks, T.

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

2011-03-09 Thread Kostya Vasilyev

09.03.2011 13:31, mac-systems пишет:

Eclipse complain about the parent :error: Error retrieving parent for
item: No resource found that matches the given name '@android:style/
Widget.ImageView'.

Whats is different for an ImageView ?


There isn't a Widget.ImageView style in Android as far as I can tell.

Check styles.xml in android-sdk\platforms\android-X\res\values.

Besides, your definition looks quite complete enough to not need a 
parent style.


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

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


Re: [android-developers] Map API Key is not working generated through signup Certificate

2011-03-09 Thread Deepak Kumar
  Hi All,
  Can anyone tell me the *solution for the problem that I
asked above*?I urgently need solution because my app is ready for release
but till now I used debug certificate generated Map API key but before
release it should be sign up certificate generated Map API Key but thats not
working.

   Or *can I release the app that uses Debug certificate
generated Map API Key?If users will download it whether it will work fine or
not*?



On Wed, Mar 9, 2011 at 12:05 PM, Deepak Kumar wrote:

>
>Yeah I did that, I have signed application in eclipse as follows:-
>
>  Android Tools->Export Signed Application Package->Then I followed
> all steps
>
>After that it generated the .apk folder that i think is of no use
> because still I have to generate the key and then replace in xml for
> android:apiKey="..." option.After running that application,whatever .apk
> will be generated that is suitable one according to steps followed.But thats
> not working.
>
>   And as you said-"sign the APK with the custom signing key".Can
> you tell what step you use to follow?Is it same as I have described
> above?What is the custom signing key?
>
>
>  I am getting this type of fingureprint and keys:-
>
>   fingureprint:-
> 2A:3B:6C:4F:15:99:52:00:58:73:4D:60:75:F2:9B:89
>  Keys:-  0b3pliyUX6sZYCUBHro6a9rVrcPscJJlmTLMHSA
>
>
>Even I gave the same Alias name & Keystore name while generating the
> fingureprint to generate Map API Key.
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: startMethodTracing() can't open trace files

2011-03-09 Thread maccoy
I faced similar probelem, removing the uses-sdk... from manifest
solved it.
try removing
 
and check.

On Mar 9, 5:50 am, Mark Murphy  wrote:
> Do not hardcode /sdcard, as that is wrong on most devices nowadays.
> Use Environment.getExternalStorageDirectory().
>
>
>
> On Tue, Mar 8, 2011 at 7:44 PM, fadden  wrote:
> > On Mar 8, 5:04 am, OldSkoolMark  wrote:
> >> I looked at the related posts, but my problem seems more basic. Full
> >> path, or no path, file extension or not, I get a "Unable to open trace
> >> file '/sdcard/traceit.trace': Permission denied" error when I run on
> >> the emulator. Do I need to 'prepare' the emulated sd card?
>
> > Use "adb shell" to get a shell in the emulator.  Type "echo x > /
> > sdcard/foo", then "cat /sdcard/foo".  Does that 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
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training Worldwide:http://commonsware.com/training

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


[android-developers] Re: custom attributes in library projects

2011-03-09 Thread C. Plantier
This has been fixed (tested with latest SDK tools 10, platform API
11).

On Feb 24, 12:41 pm, Romain  wrote:
> Hi,
>
> Any chance this has been fixed - or a workaround is available?
>
> Library projects seem to be the best approach to release multiple versions
> of an app (ex: free/paid),
> and I was really hoping there is a better solution than to duplicate all of
> my custom layouts in both apps.
>
> Many thanks,
>
> Romain

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

2011-03-09 Thread C. Plantier
Can you show us a few lines of code with the position of the
breakpoints?

On Mar 9, 12:01 pm, "Bernard T. Higonnet" 
wrote:
> Hello,
>
> This actually an Eclipse question, but I hope someone will be kind enough to 
> answer it.
>
> I have an android application which I'm debugging with Eclipse.
>
> I have defined a number of breakpoints all of which work except one. When I 
> create it (toggle under right button) it
> creates the breakpoint but with a slightly different icon. Instead of getting 
> a little icon which appears to be a circle
> with a little tail towards the lower left (which is what all my working 
> breakpoints have) I get a circle without a tail.
>
> When I inspect the properties of each breakpoint (with tail or without) in 
> the breakpoints view, they all appear to be
> the same. I have searched around in the documentation without success.
>
> The statement in question is executable and reachable.
>
> Help!
>
> Bernard Higonnet

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

2011-03-09 Thread C. Plantier
See SharedPreferences.Editor.putStringSet(String key, Set
values)

On Mar 4, 9:22 am, manish  wrote:
> Hi, everyone .I am very new in android.I am trying to develop app
> which has a list view of various places name and each have its
> property (name, lat, long, proximity).The first option in list view is
>  and below that saved places.Every places
> should have its own data.I am trying to use Preference class.
>
> Anybody please reply
>
> Thanks in Advance

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


[android-developers] Re: How to set Parent ImageView Style

2011-03-09 Thread mac-systems
I'm still curios about that there is no parent style, my understanding
was
that a lot of the default behaviour comes from this styles?
For example the scaletype has a default value,i think

Thx a lot,
Jens

On 9 Mrz., 11:34, Kostya Vasilyev  wrote:
> 09.03.2011 13:31, mac-systems пишет:
>
> > Eclipse complain about the parent :error: Error retrieving parent for
> > item: No resource found that matches the given name '@android:style/
> > Widget.ImageView'.
>
> > Whats is different for an ImageView ?
>
> There isn't a Widget.ImageView style in Android as far as I can tell.
>
> Check styles.xml in android-sdk\platforms\android-X\res\values.
>
> Besides, your definition looks quite complete enough to not need a
> parent style.
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com

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


[android-developers] Change incoming name in Dialer

2011-03-09 Thread viktor
Hi,

Is it any tricks to change name in Dialer on the fly (when dialer is
in Ringing state )?

In dialer we can see Name with label "Unknown", I want to replace it
on my own label.

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] Xml Parser for Android Layout.

2011-03-09 Thread arindam

Dear Developers,

I am currently trying to parse android layout xml
file using simple xml parser. Actually this layout xml file is in
sdcard. I am unable to parse. Is their any better way to do. Your kind
information will help me a lot.


Thanks & regards
Arindam Ghosh

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

2011-03-09 Thread Kostya Vasilyev

Well, I can only guess but -

Image view attributes have to do with two things: "what" and "how", as 
in, what image to display, and how it should be done. Having defaults 
for those probably doesn't make sense: would you want ImageView to have 
a default image, if "src" is not specified?


The only exception is scaleType, which has a reasonable default value, 
fitCetner, set in the code.


Compare this with, for example, Widget.CompoundButton.CheckBox - the 
default attribute values there are quite useful, since they make the 
widget look and behave as expected, i.e. a check box.


Also see Widget.ImageButton - which is a subclass of ImageView. Again, 
this style provides useful defaults so that all ImageButton's look and 
behave as expected.


-- Kostya

09.03.2011 13:58, mac-systems пишет:

I'm still curios about that there is no parent style, my understanding
was
that a lot of the default behaviour comes from this styles?
For example the scaletype has a default value,i think

Thx a lot,
Jens

On 9 Mrz., 11:34, Kostya Vasilyev  wrote:

09.03.2011 13:31, mac-systems пишет:


Eclipse complain about the parent :error: Error retrieving parent for
item: No resource found that matches the given name '@android:style/
Widget.ImageView'.
Whats is different for an ImageView ?

There isn't a Widget.ImageView style in Android as far as I can tell.

Check styles.xml in android-sdk\platforms\android-X\res\values.

Besides, your definition looks quite complete enough to not need a
parent style.

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



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

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


[android-developers] How android system establish a data connection

2011-03-09 Thread Amit
Hi All,

How android system try to establish a data connection at the time of
power up or when we set up an apn.

 As I checked the framework code, DataConnection.java is a state
machine which interacts with RIL in order to activate/deactivate a
data connection. But when I put up any debug log in the
DataConnection.java ,it never gets hit either in success or failure
case.

When this file is used ?

Thanks,
Amit

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


[android-developers] Identify phone number on web page

2011-03-09 Thread Anndy
Hi All,

I have a html page which i am going to open in a WebView. Is there a
way I can identify a phone number on the page and when click on it,
calls the number.

Regards,
Anndy

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


[android-developers] Menu Help

2011-03-09 Thread Raghav Sood
Hi everyone,

I have a menu in my game which currently has only a New Game option. I
want it to have another option Reset Score. I wrote some code for it
but it fails to work.

My current code is:

@Override
 public boolean onCreateOptionsMenu(Menu menu) {
  super.onCreateOptionsMenu(menu);
  @SuppressWarnings("unused")
MenuItem ng = menu.add("New Game");
@SuppressWarnings("unused")
MenuItem rs = menu.add("reset Scores");
  return true;
 }

 public boolean onOptionsngSelected(MenuItem ng) {
  setBoard();
  return true;
 }

 public boolean onOptionsrsSelected(MenuItem rs){
 wins = 0;
 draws = 0;
 loses = 0;
 won.setText("Won: " + wins);
 lost.setText("Lost: " + loses);
 drawn.setText("Drawn: " + draws);
 setBoard();
 return true;
 }

This code compiles perfectly but when I run it on my phone none of the
menu items work when clicked.

does anyone have any idea as to why my code does not work?

Thanks
-- 
Raghav Sood
http://www.raghavsood.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] Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-09 Thread draf...@gmail.com
I have recently downloaded the add on to Eclipse for the 2.3 SDK. My
minSDK is 2.1update-1.

Previously I only had up to the 2.2 SDK and I could change my XML
files and drawables without hassle and the generated R.java file would
regenerate properly. The same if I changed my aidl files, the stubs
would regenerate properly.

However since the upgrade to 2.3 SDK I cant change or add any XML
files or drawables or aidl files as they wont regenerate causing all
sorts of issues.

I have googled and tried all sorts of suggestions such as:

Using clean.
Deleting the gen files and rebuilding (Just leaves an empty Gen
folder)
Using non automatic build
Using the new Formating parameter in Strings.xml

However none of them work.

Is there something I've missed that I have to do to get the
regeneration working for 2.3 SDK?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] App not showing up Motorola Xoom's Market

2011-03-09 Thread Mark Murphy
The XOOM is not a phone. You are requiring the CALL_PHONE permission
(which, to be honest, makes no sense to me for a aviation weather
app). You probably do not have the proper  element to
make that combination work. More details here:

http://commonsware.com/blog/2011/02/25/xoom-permissions-android-market.html

On Tue, Mar 8, 2011 at 11:03 PM, Felix  wrote:
> Hey,
>
> I got the Motorola Xoom today and noticed that my app wasn't on the
> market. So I looked into my manifest and updated
> android:targetSdkVersion to "11". I tested the app on the device, and
> everything works fine. I resubmitted, and for some reason it still
> isn't there. I can see the app on every other device I own (nexus one,
> droid, samsung galaxy tab), but not on the Xoom. Anyone have any ideas
> what I could be doing wrong for the Market to be filtering out my app?
>
> My app is called "AirWX Aviation Weather".
>
> Thanks
> Felix
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

Android Training Worldwide: http://commonsware.com/training

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


Re: [android-developers] Menu Help

2011-03-09 Thread Mark Murphy
There is no onOptionsngSelected() method in Android. There is no
onOptionsrsSelected() method in Android. If you want to find out when
an options menu item is clicked, you must override
onOptionsItemSelected().

On Wed, Mar 9, 2011 at 7:46 AM, Raghav Sood  wrote:
> Hi everyone,
>
> I have a menu in my game which currently has only a New Game option. I
> want it to have another option Reset Score. I wrote some code for it
> but it fails to work.
>
> My current code is:
>
> @Override
>     public boolean onCreateOptionsMenu(Menu menu) {
>          super.onCreateOptionsMenu(menu);
>          @SuppressWarnings("unused")
>                MenuItem ng = menu.add("New Game");
>        @SuppressWarnings("unused")
>                MenuItem rs = menu.add("reset Scores");
>          return true;
>     }
>
>     public boolean onOptionsngSelected(MenuItem ng) {
>          setBoard();
>          return true;
>     }
>
>     public boolean onOptionsrsSelected(MenuItem rs){
>         wins = 0;
>         draws = 0;
>         loses = 0;
>         won.setText("Won: " + wins);
>         lost.setText("Lost: " + loses);
>         drawn.setText("Drawn: " + draws);
>         setBoard();
>         return true;
>     }
>
> This code compiles perfectly but when I run it on my phone none of the
> menu items work when clicked.
>
> does anyone have any idea as to why my code does not work?
>
> Thanks
> --
> Raghav Sood
> http://www.raghavsood.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
>



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

Android Training Worldwide: http://commonsware.com/training

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


Re: [android-developers] Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-09 Thread Kostya Vasilyev

I'm occasionally seeing this with ADT 10, SDK 2.2 (API 10), Eclipse 3.6.2.

For now, I just clean my project when this happens (usually my code 
blows up in the main activity's setContent because of shifting resource 
IDs).


-- Kostya

09.03.2011 15:52, draf...@gmail.com пишет:

I have recently downloaded the add on to Eclipse for the 2.3 SDK. My
minSDK is 2.1update-1.

Previously I only had up to the 2.2 SDK and I could change my XML
files and drawables without hassle and the generated R.java file would
regenerate properly. The same if I changed my aidl files, the stubs
would regenerate properly.

However since the upgrade to 2.3 SDK I cant change or add any XML
files or drawables or aidl files as they wont regenerate causing all
sorts of issues.

I have googled and tried all sorts of suggestions such as:

Using clean.
Deleting the gen files and rebuilding (Just leaves an empty Gen
folder)
Using non automatic build
Using the new Formating parameter in Strings.xml

However none of them work.

Is there something I've missed that I have to do to get the
regeneration working for 2.3 SDK?




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

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


Re: [android-developers] Menu Help

2011-03-09 Thread Kostya Vasilyev
I don't see any code connecting those menu items with 
"onOptionsngSelected" and "onOptionsrsSelected" (which are not Android 
framework methods).


Read this for more info:

http://developer.android.com/guide/topics/ui/menus.html

-- Kostya

09.03.2011 15:46, Raghav Sood пишет:

Hi everyone,

I have a menu in my game which currently has only a New Game option. I
want it to have another option Reset Score. I wrote some code for it
but it fails to work.

My current code is:

@Override
  public boolean onCreateOptionsMenu(Menu menu) {
   super.onCreateOptionsMenu(menu);
   @SuppressWarnings("unused")
MenuItem ng = menu.add("New Game");
 @SuppressWarnings("unused")
MenuItem rs = menu.add("reset Scores");
   return true;
  }

  public boolean onOptionsngSelected(MenuItem ng) {
   setBoard();
   return true;
  }

  public boolean onOptionsrsSelected(MenuItem rs){
 wins = 0;
 draws = 0;
 loses = 0;
 won.setText("Won: " + wins);
  lost.setText("Lost: " + loses);
  drawn.setText("Drawn: " + draws);
  setBoard();
 return true;
  }

This code compiles perfectly but when I run it on my phone none of the
menu items work when clicked.

does anyone have any idea as to why my code does not work?

Thanks



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

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


Re: [android-developers] Menu Help

2011-03-09 Thread Raghav Sood
I tried that too but it only works if I am checking only 1 of the
options. I can't ghet it to work with both of the options. Any ideas?

On 3/9/11, Mark Murphy  wrote:
> There is no onOptionsngSelected() method in Android. There is no
> onOptionsrsSelected() method in Android. If you want to find out when
> an options menu item is clicked, you must override
> onOptionsItemSelected().
>
> On Wed, Mar 9, 2011 at 7:46 AM, Raghav Sood  wrote:
>> Hi everyone,
>>
>> I have a menu in my game which currently has only a New Game option. I
>> want it to have another option Reset Score. I wrote some code for it
>> but it fails to work.
>>
>> My current code is:
>>
>> @Override
>>     public boolean onCreateOptionsMenu(Menu menu) {
>>          super.onCreateOptionsMenu(menu);
>>          @SuppressWarnings("unused")
>>                MenuItem ng = menu.add("New Game");
>>        @SuppressWarnings("unused")
>>                MenuItem rs = menu.add("reset Scores");
>>          return true;
>>     }
>>
>>     public boolean onOptionsngSelected(MenuItem ng) {
>>          setBoard();
>>          return true;
>>     }
>>
>>     public boolean onOptionsrsSelected(MenuItem rs){
>>         wins = 0;
>>         draws = 0;
>>         loses = 0;
>>         won.setText("Won: " + wins);
>>         lost.setText("Lost: " + loses);
>>         drawn.setText("Drawn: " + draws);
>>         setBoard();
>>         return true;
>>     }
>>
>> This code compiles perfectly but when I run it on my phone none of the
>> menu items work when clicked.
>>
>> does anyone have any idea as to why my code does not work?
>>
>> Thanks
>> --
>> Raghav Sood
>> http://www.raghavsood.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
>>
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training Worldwide: http://commonsware.com/training
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en


-- 
Raghav Sood
http://www.raghavsood.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] Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-09 Thread Donal Rafferty
Clean is of no benefit to me in my case I'm afraid, does nothing. Its as if
there are errors in the XML so the R file cant generate but Eclipse doesn't
show up any errors

On Wed, Mar 9, 2011 at 12:58 PM, Kostya Vasilyev  wrote:

> I'm occasionally seeing this with ADT 10, SDK 2.2 (API 10), Eclipse 3.6.2.
>
> For now, I just clean my project when this happens (usually my code blows
> up in the main activity's setContent because of shifting resource IDs).
>
> -- Kostya
>
> 09.03.2011 15:52, draf...@gmail.com пишет:
>
>  I have recently downloaded the add on to Eclipse for the 2.3 SDK. My
>> minSDK is 2.1update-1.
>>
>> Previously I only had up to the 2.2 SDK and I could change my XML
>> files and drawables without hassle and the generated R.java file would
>> regenerate properly. The same if I changed my aidl files, the stubs
>> would regenerate properly.
>>
>> However since the upgrade to 2.3 SDK I cant change or add any XML
>> files or drawables or aidl files as they wont regenerate causing all
>> sorts of issues.
>>
>> I have googled and tried all sorts of suggestions such as:
>>
>> Using clean.
>> Deleting the gen files and rebuilding (Just leaves an empty Gen
>> folder)
>> Using non automatic build
>> Using the new Formating parameter in Strings.xml
>>
>> However none of them work.
>>
>> Is there something I've missed that I have to do to get the
>> regeneration working for 2.3 SDK?
>>
>>
>
> --
> Kostya Vasilyev -- http://kmansoft.wordpress.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2011-03-09 Thread Raghav Sood
Okay. now I have changed the code to this:

@Override
 public boolean onCreateOptionsMenu(Menu menu) {
  super.onCreateOptionsMenu(menu);
  @SuppressWarnings("unused")
MenuItem ng = menu.add("New Game");
@SuppressWarnings("unused")
MenuItem rs = menu.add("reset Scores");
  return true;
 }

 public boolean onOptionsItemSelected(MenuItem ng, MenuItem rs) {
setBoard();
return true;
//the above should only happen if the Selected MenuItem is ng
wins = 0;
 draws = 0;
 loses = 0;
 won.setText("Won: " + wins);
 lost.setText("Lost: " + loses);
 drawn.setText("Drawn: " + draws);
 setBoard();
 return true;
 //the above till previous comment should only happen if selected item
is rs
 }

I can't figure out how to do the stuff mentioned in the comments.

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

2011-03-09 Thread Mark Murphy
On Wed, Mar 9, 2011 at 8:03 AM, Raghav Sood  wrote:
> I tried that too but it only works if I am checking only 1 of the
> options. I can't ghet it to work with both of the options. Any ideas?

Use a more worthwhile add() method, one that takes an id.

https://github.com/commonsguy/cw-android/tree/master/Menus/Menus

Or, use menu XML resources instead of add() calls:

https://github.com/commonsguy/cw-android/tree/master/Menus/Inflation

Going the latter route will make it easier for you to support the
action bar on Android 3.0+ while simultaneous using traditional menus
on Android 1.x and 2.x.

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

Android Training Worldwide: http://commonsware.com/training

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


[android-developers] Change icon

2011-03-09 Thread iñaki
Hi, is possible you can change the icon when you click on it an overlay of a
Mapview?


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

Re: [android-developers] Menu Help

2011-03-09 Thread Raghav Sood
I went through the XML example that mark provided as that is the way I would
prefer it.
Now my code is
@Override
 public boolean onCreateOptionsMenu(Menu menu) {
 MenuInflater inflater = getMenuInflater();
 inflater.inflate(R.menu.game_menu, menu);
 return true;
 }

 public boolean onOptionsItemSelected(MenuItem item){
 switch (item.getItemId()) {
case R.id.ng:
setBoard();
return true;
case R.id.rs:
wins = 0;
 draws = 0;
 loses = 0;
 won.setText("Won: " + wins);
 lost.setText("Lost: " + loses);
 drawn.setText("Drawn: " + draws);
 setBoard();
return true;
default:
return super.onOptionsItemSelected(item);
}


 }
and the xml is:

http://schemas.android.com/apk/res/android";>





Even now whenever I tap one of the options it fails to do anything.

Anything else I am doing Wrong?

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

2011-03-09 Thread Marcin Orlowski
Hi,

I try to strip all log calls from release app using proguard
(-assumenosideeffects) i noticed not all is removed. Some cases are
clearly understandable to left some traces i.e. Log.i("foo" + bar());
one, but I wonder what I can do (except manually comenting it out)
this:

if( ... )
{
  ... some code ...
} else {
  Log.d("foo");
}

To my understanding there's no reason to not remove Log call, but it
remains there. My first thought was PG got some sort of problems
stripping the only code from the else cause, but I spotted it happened
sometimes when I got some code (method call) around too. For smaller
apps I can track these left-overs down by hand but for bigger is pure
time consuming process to reverse own app and go thru smali code.
Anyone got idea what could I can do to get above sorted

-- 
Regards,
Marcin Orlowski

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

2011-03-09 Thread Mark Murphy
Use breakpoints or log statements to debug your code. I see nothing
obviously wrong with what you have here. Perhaps your difficulty lies
in setBoard().

On Wed, Mar 9, 2011 at 8:27 AM, Raghav Sood  wrote:
>
> I went through the XML example that mark provided as that is the way I would
> prefer it.
> Now my code is
> @Override
>  public boolean onCreateOptionsMenu(Menu menu) {
>  MenuInflater inflater = getMenuInflater();
>  inflater.inflate(R.menu.game_menu, menu);
>  return true;
>  }
>
>  public boolean onOptionsItemSelected(MenuItem item){
>          switch (item.getItemId()) {
>             case R.id.ng:
>             setBoard();
>             return true;
>             case R.id.rs:
>                 wins = 0;
>                  draws = 0;
>                  loses = 0;
>                  won.setText("Won: " + wins);
>          lost.setText("Lost: " + loses);
>          drawn.setText("Drawn: " + draws);
>          setBoard();
>             return true;
>             default:
>             return super.onOptionsItemSelected(item);
>             }
>
>
>  }
> and the xml is:
> 
> http://schemas.android.com/apk/res/android";>
>        android:title="New Game" />
>        android:title="Reset Score" />
> 
>
>
> Even now whenever I tap one of the options it fails to do anything.
>
> Anything else I am doing Wrong?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

Android Training Worldwide: http://commonsware.com/training

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


Re: [android-developers] Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-09 Thread Donal Rafferty
Just to add to this I have now also deleted every single XML file under my
res folder and the R.java file still did not rebuild, what is going on!??

On Wed, Mar 9, 2011 at 1:07 PM, Donal Rafferty  wrote:

> Clean is of no benefit to me in my case I'm afraid, does nothing. Its as if
> there are errors in the XML so the R file cant generate but Eclipse doesn't
> show up any errors
>
>
> On Wed, Mar 9, 2011 at 12:58 PM, Kostya Vasilyev wrote:
>
>> I'm occasionally seeing this with ADT 10, SDK 2.2 (API 10), Eclipse 3.6.2.
>>
>> For now, I just clean my project when this happens (usually my code blows
>> up in the main activity's setContent because of shifting resource IDs).
>>
>> -- Kostya
>>
>> 09.03.2011 15:52, draf...@gmail.com пишет:
>>
>>  I have recently downloaded the add on to Eclipse for the 2.3 SDK. My
>>> minSDK is 2.1update-1.
>>>
>>> Previously I only had up to the 2.2 SDK and I could change my XML
>>> files and drawables without hassle and the generated R.java file would
>>> regenerate properly. The same if I changed my aidl files, the stubs
>>> would regenerate properly.
>>>
>>> However since the upgrade to 2.3 SDK I cant change or add any XML
>>> files or drawables or aidl files as they wont regenerate causing all
>>> sorts of issues.
>>>
>>> I have googled and tried all sorts of suggestions such as:
>>>
>>> Using clean.
>>> Deleting the gen files and rebuilding (Just leaves an empty Gen
>>> folder)
>>> Using non automatic build
>>> Using the new Formating parameter in Strings.xml
>>>
>>> However none of them work.
>>>
>>> Is there something I've missed that I have to do to get the
>>> regeneration working for 2.3 SDK?
>>>
>>>
>>
>> --
>> Kostya Vasilyev -- http://kmansoft.wordpress.com
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>

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

2011-03-09 Thread TreKing
On Wed, Mar 9, 2011 at 1:54 AM, DraganA  wrote:

> On the other hand, maybe Google realized that a lot of people are bored
> with seeeing the same old apps on the front Market page week in week out.
>

Seriously. Every time I see the giant promo graphic for "Talking Tom Cat" on
the Market main screen, I want to punch my phone in the face. It's been
there since the new Market was released. Apparently no other apps are worth
featuring.

However, Zsolt is talking about ranking per category, which makes no goddamn
sense. The app above mine has the same download range, but 1/5 the number of
ratings and 4 star ratings vs my 4.5. Someone riddle me that.

And to throw in another "me too", I was fine at the beginning of this
thread, when I took note of my %. It had actually been trending up, so I'd
assumed the gnomes finally fixed something. As of this post, it's dropped
8%, 5 of which was literally overnight, and I'm down 3 spots as well.
Fortunately sales remain fairly consistent.

Oh well, as usual, there's nothing but complaining to be done about it. Just
keep doing what you're doing and hope to succeed in spite of the Android
Market being utter garbage.

Psst, hey Amazon, can you open up already?

-
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] Change icon

2011-03-09 Thread TreKing
On Wed, Mar 9, 2011 at 7:26 AM, iñaki  wrote:

> Hi, is possible you can change the icon when you click on it an overlay of
> a Mapview?


Yes, it is possible.

-
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: Install % drop again?

2011-03-09 Thread Marcin Orlowski
>> On the other hand, maybe Google realized that a lot of people are bored
>> with seeeing the same old apps on the front Market page week in week out.
>
> Seriously. Every time I see the giant promo graphic for "Talking Tom Cat" on
> the Market main screen, I want to punch my phone in the face. It's been
> there since the new Market was released. Apparently no other apps are worth
> featuring.

You apparently have to add "Talking" to your app title to make things
work better.


PS: yes, I envy the sales of that talking bloatware
-- 
Regards,
Marcin Orlowski

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


[android-developers] Bitmap recycle

2011-03-09 Thread b_t
Hi,

when I use

imageView.setImageResource(int) or
imageView.setImageDrawable(packageManager.getApplicationIcon(packageName))
or
imageView.setImageDrawable(resolveInfo.loadIcon(packageManager))

should I recycle bitmap inside the imageView when I change the image?
Or not because the returned bitmaps are cached inside and
can be used again?

How can I decide if I have to recycle bitmaps or not?

I don't have memory problems on my Desire but I can see that some
Nexus One users have.

T.

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

2011-03-09 Thread appel
Follow up to my OT reply. It seems like I'm not the only one experiencing 
the "no more pmem available" error since updating to 2.3.3. Happens even 
when using only built-in applications (with market updates). 

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-09 Thread C. Plantier
Does the console show any error?

On Mar 9, 3:04 pm, Donal Rafferty  wrote:
> Just to add to this I have now also deleted every single XML file under my
> res folder and the R.java file still did not rebuild, what is going on!??
>
>
>
>
>
>
>
> On Wed, Mar 9, 2011 at 1:07 PM, Donal Rafferty  wrote:
> > Clean is of no benefit to me in my case I'm afraid, does nothing. Its as if
> > there are errors in the XML so the R file cant generate but Eclipse doesn't
> > show up any errors
>
> > On Wed, Mar 9, 2011 at 12:58 PM, Kostya Vasilyev wrote:
>
> >> I'm occasionally seeing this with ADT 10, SDK 2.2 (API 10), Eclipse 3.6.2.
>
> >> For now, I just clean my project when this happens (usually my code blows
> >> up in the main activity's setContent because of shifting resource IDs).
>
> >> -- Kostya
>
> >> 09.03.2011 15:52, draf...@gmail.com пишет:
>
> >>  I have recently downloaded the add on to Eclipse for the 2.3 SDK. My
> >>> minSDK is 2.1update-1.
>
> >>> Previously I only had up to the 2.2 SDK and I could change my XML
> >>> files and drawables without hassle and the generated R.java file would
> >>> regenerate properly. The same if I changed my aidl files, the stubs
> >>> would regenerate properly.
>
> >>> However since the upgrade to 2.3 SDK I cant change or add any XML
> >>> files or drawables or aidl files as they wont regenerate causing all
> >>> sorts of issues.
>
> >>> I have googled and tried all sorts of suggestions such as:
>
> >>> Using clean.
> >>> Deleting the gen files and rebuilding (Just leaves an empty Gen
> >>> folder)
> >>> Using non automatic build
> >>> Using the new Formating parameter in Strings.xml
>
> >>> However none of them work.
>
> >>> Is there something I've missed that I have to do to get the
> >>> regeneration working for 2.3 SDK?
>
> >> --
> >> Kostya Vasilyev --http://kmansoft.wordpress.com
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-developers?hl=en

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

2011-03-09 Thread Raghav Sood
Thanks Mark,

I am reasonably sure there is nothing wrong with setBoard(); but I may be
wrong so here is setVoard():
private void setBoard() {
  ai = new AI();
  b = new Button[4][4];
  c = new int[4][4];
  won = (TextView) findViewById(R.id.won);
  drawn = (TextView) findViewById(R.id.drawn);
  lost = (TextView) findViewById(R.id.lost);
  textView = (TextView) findViewById(R.id.dialogue);

  b[1][3] = (Button) findViewById(R.id.one);
  b[1][2] = (Button) findViewById(R.id.two);
  b[1][1] = (Button) findViewById(R.id.three);

  b[2][3] = (Button) findViewById(R.id.four);
  b[2][2] = (Button) findViewById(R.id.five);
  b[2][1] = (Button) findViewById(R.id.six);

  b[3][3] = (Button) findViewById(R.id.seven);
  b[3][2] = (Button) findViewById(R.id.eight);
  b[3][1] = (Button) findViewById(R.id.nine);

  for (i = 1; i <= 3; i++) {
   for (j = 1; j <= 3; j++)
c[i][j] = 2;
  }
  AdView adView = (AdView)findViewById(R.id.ad);
  adView.requestFreshAd();
  textView.setText("Touch a button to start.");
  won.setText("Won: " + wins);
  lost.setText("Lost: " + loses);
  drawn.setText("Drawn: " + draws);
  // add the click listeners for each button
  for (i = 1; i <= 3; i++) {
   for (j = 1; j <= 3; j++) {
b[i][j].setOnClickListener(new MyClickListener(i, j));
if(!b[i][j].isEnabled()) {
 b[i][j].setText(" ");
 b[i][j].setEnabled(true);
}
   }
  }
 }

Please tell me if you see anything wrong. Also Since I am testing on actual
hardware and not an emulator how to I write to the log file and where is it
located?

Thanks
--
Raghav Sood
http://www.raghavsood.com/

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

[android-developers] Re: Sharing data across Activities

2011-03-09 Thread DebUggEr
Seems like heres the answer. I am not an expert but do consider and let me 
know too.

ANDROID.APP.APPLICATION CLASS

Each Android application can have at most one android.app.Applicationassociated 
with it. You are responsible for sub-classing the Application Class, and it 
is used to maintain a global state of the application across all Activites. 
Conceptually, you can think of it as a non-static singleton its life cycle 
being managed by Android OS.
*Benefits:*

   - Gives you complete control over the management of application 
   life-cycle, so resources can be properly initialised and disposed of.
   - Provides a single entry point where *any* Activity or Service within 
   the application can gain access to the desired object

*Drawbacks:*

   - Can only expose information to Activities and Services within the 
   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] Menu Help

2011-03-09 Thread Mark Murphy
android.util.Log, and you access it no differently than you do
anywhere else (adb logcat, DDMS, or the DDMS perspective in Eclipse).

On Wed, Mar 9, 2011 at 9:27 AM, Raghav Sood  wrote:
> Thanks Mark,
>
> I am reasonably sure there is nothing wrong with setBoard(); but I may be
> wrong so here is setVoard():
> private void setBoard() {
>   ai = new AI();
>   b = new Button[4][4];
>   c = new int[4][4];
>   won = (TextView) findViewById(R.id.won);
>   drawn = (TextView) findViewById(R.id.drawn);
>   lost = (TextView) findViewById(R.id.lost);
>   textView = (TextView) findViewById(R.id.dialogue);
>
>   b[1][3] = (Button) findViewById(R.id.one);
>   b[1][2] = (Button) findViewById(R.id.two);
>   b[1][1] = (Button) findViewById(R.id.three);
>
>   b[2][3] = (Button) findViewById(R.id.four);
>   b[2][2] = (Button) findViewById(R.id.five);
>   b[2][1] = (Button) findViewById(R.id.six);
>
>   b[3][3] = (Button) findViewById(R.id.seven);
>   b[3][2] = (Button) findViewById(R.id.eight);
>   b[3][1] = (Button) findViewById(R.id.nine);
>
>   for (i = 1; i <= 3; i++) {
>    for (j = 1; j <= 3; j++)
>     c[i][j] = 2;
>   }
>   AdView adView = (AdView)findViewById(R.id.ad);
>           adView.requestFreshAd();
>   textView.setText("Touch a button to start.");
>   won.setText("Won: " + wins);
>   lost.setText("Lost: " + loses);
>   drawn.setText("Drawn: " + draws);
>   // add the click listeners for each button
>   for (i = 1; i <= 3; i++) {
>    for (j = 1; j <= 3; j++) {
>     b[i][j].setOnClickListener(new MyClickListener(i, j));
>     if(!b[i][j].isEnabled()) {
>  b[i][j].setText(" ");
>  b[i][j].setEnabled(true);
>     }
>    }
>   }
>  }
>
> Please tell me if you see anything wrong. Also Since I am testing on actual
> hardware and not an emulator how to I write to the log file and where is it
> located?
>
> Thanks
> --
> Raghav Sood
> http://www.raghavsood.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



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

Android Training Worldwide: http://commonsware.com/training

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


[android-developers] Re: Which Mobile Advertising Site?

2011-03-09 Thread Jake Colman

Miguel,

I did do some googling and I ended up getting confused!  :-)

Some general questions about this sort of thing, not vendor-specific:

1) Do developers integrate more than one SDK into an app in order to
   maximize impressions?  Or do you pick one and stick with it?

2) The developer gets paid for every banner that is displayed on an
   Activity's screen?  Or only if the user clicks through?

3) It seems like there is no guarantee that an ad will be displayed
   which means, of course, I may not get paid.  Is that correct?  The
   chance of an ad actually appearing depends on something outside of my
   control?

4) My app is a widget that runs all the time plus an activity that the
   user may or may not wish to view in order to see some extra
   information.  If the user does display that activity it is likely to
   be displayed for just 20 seconds or so - it is view-only with no
   additional interaction.  Is this the wrong sort of app to consider
   integrating with AdMob?

Thanks.

...Jake


> "MM" == Miguel Morales  writes:

   MM> I use admob and mobclix.  They're both super easy to integrate.
   MM> Just google some things like admob vs mobclix and you'll see what
   MM> people have to say.

   MM> On Tue, Mar 8, 2011 at 11:48 AM, Jake Colman  wrote:

   >> 
   >> Would anyone mind sharing their experiences with the various
   >> Mobile Advertising sites and the pros and cons?  Seems like most
   >> people use AdMob.  Any reason why them over someone else?
   >> 
   >> --
   >> Jake Colman -- Android Tinkerer
   >> 
   >> --
   >> You received this message because you are subscribed to the Google
   >> Groups "Android Developers" group.
   >> To post to this group, send email to android-developers@googlegroups.com
   >> To unsubscribe from this group, send email to
   >> android-developers+unsubscr...@googlegroups.com
   >> For more options, visit this group at
   >> http://groups.google.com/group/android-developers?hl=en

   MM> -- 
   MM> ~ Jeremiah:9:23-24
   MM> Android 2D MMORPG: http://solrpg.com/ 
http://www.youtube.com/user/revoltingx

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

-- 
Jake Colman -- Android Tinkerer

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-09 Thread Donal Rafferty
No, the console is blank and there are no problems reported in the problems
tab

On Wed, Mar 9, 2011 at 2:27 PM, C. Plantier  wrote:

> Does the console show any error?
>
> On Mar 9, 3:04 pm, Donal Rafferty  wrote:
> > Just to add to this I have now also deleted every single XML file under
> my
> > res folder and the R.java file still did not rebuild, what is going on!??
> >
> >
> >
> >
> >
> >
> >
> > On Wed, Mar 9, 2011 at 1:07 PM, Donal Rafferty 
> wrote:
> > > Clean is of no benefit to me in my case I'm afraid, does nothing. Its
> as if
> > > there are errors in the XML so the R file cant generate but Eclipse
> doesn't
> > > show up any errors
> >
> > > On Wed, Mar 9, 2011 at 12:58 PM, Kostya Vasilyev  >wrote:
> >
> > >> I'm occasionally seeing this with ADT 10, SDK 2.2 (API 10), Eclipse
> 3.6.2.
> >
> > >> For now, I just clean my project when this happens (usually my code
> blows
> > >> up in the main activity's setContent because of shifting resource
> IDs).
> >
> > >> -- Kostya
> >
> > >> 09.03.2011 15:52, draf...@gmail.com пишет:
> >
> > >>  I have recently downloaded the add on to Eclipse for the 2.3 SDK. My
> > >>> minSDK is 2.1update-1.
> >
> > >>> Previously I only had up to the 2.2 SDK and I could change my XML
> > >>> files and drawables without hassle and the generated R.java file
> would
> > >>> regenerate properly. The same if I changed my aidl files, the stubs
> > >>> would regenerate properly.
> >
> > >>> However since the upgrade to 2.3 SDK I cant change or add any XML
> > >>> files or drawables or aidl files as they wont regenerate causing all
> > >>> sorts of issues.
> >
> > >>> I have googled and tried all sorts of suggestions such as:
> >
> > >>> Using clean.
> > >>> Deleting the gen files and rebuilding (Just leaves an empty Gen
> > >>> folder)
> > >>> Using non automatic build
> > >>> Using the new Formating parameter in Strings.xml
> >
> > >>> However none of them work.
> >
> > >>> Is there something I've missed that I have to do to get the
> > >>> regeneration working for 2.3 SDK?
> >
> > >> --
> > >> Kostya Vasilyev --http://kmansoft.wordpress.com
> >
> > >> --
> > >> You received this message because you are subscribed to the Google
> > >> Groups "Android Developers" group.
> > >> To post to this group, send email to
> android-developers@googlegroups.com
> > >> To unsubscribe from this group, send email to
> > >> android-developers+unsubscr...@googlegroups.com
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: App not showing up Motorola Xoom's Market

2011-03-09 Thread andrew_esh
Is there a way to gain CALL_PHONE permission when the program runs?
For instance, could this app get CALL_PHONE when it happens to be
running on a phone, and when it's on the XOOM, it does not provide the
feature set that requires CALL_PHONE? If that decision can't be made
at runtime, then two separate apps would have to be developed.

BTW: CALL_PHONE makes a lot of sense to me for an aviation weather
app. Weather is usually the determining factor for when you file a
flight plan, and you can a lot get a lot of extra weather information
by calling the weather office. The app could dial from a list of
station phone numbers along the route you're looking at.

On Mar 9, 6:52 am, Mark Murphy  wrote:
> The XOOM is not a phone. You are requiring the CALL_PHONE permission
> (which, to be honest, makes no sense to me for a aviation weather
> app). You probably do not have the proper  element to
> make that combination work. More details here:
>
> http://commonsware.com/blog/2011/02/25/xoom-permissions-android-marke...
>
>
>
>
>
>
>
>
>
> On Tue, Mar 8, 2011 at 11:03 PM, Felix  wrote:
> > Hey,
>
> > I got the Motorola Xoom today and noticed that my app wasn't on the
> > market. So I looked into my manifest and updated
> > android:targetSdkVersion to "11". I tested the app on the device, and
> > everything works fine. I resubmitted, and for some reason it still
> > isn't there. I can see the app on every other device I own (nexus one,
> > droid, samsung galaxy tab), but not on the Xoom. Anyone have any ideas
> > what I could be doing wrong for the Market to be filtering out my app?
>
> > My app is called "AirWX Aviation Weather".
>
> > Thanks
> > Felix
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training Worldwide:http://commonsware.com/training

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


Re: [android-developers] Re: Which Mobile Advertising Site?

2011-03-09 Thread TreKing
On Wed, Mar 9, 2011 at 8:32 AM, Jake Colman  wrote:

> 4) My app is a widget that runs all the time plus an activity that the user
> may or may not wish to view in order to see some extra information. If the
> user does display that activity it is likely to   be displayed for just 20
> seconds or so - it is view-only with no additional interaction. Is this the
> wrong sort of app to consider integrating with AdMob?
>

I think you answered your own question: using ads this way is utterly
pointless. Most of us make nearly nothing on ads in full-blown, interactive
apps. You will probably make exactly nothing. I would consider a "donate"
option in there instead. Or a link to the full version, if you have one.

-
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: App not showing up Motorola Xoom's Market

2011-03-09 Thread Marcin Orlowski
On 9 March 2011 15:41, andrew_esh  wrote:
> Is there a way to gain CALL_PHONE permission when the program runs?
> For instance, could this app get CALL_PHONE when it happens to be
> running on a phone, and when it's on the XOOM, it does not provide the
> feature set that requires CALL_PHONE? If that decision can't be made
> at runtime, then two separate apps would have to be developed.

You may delegate calling to external app ("add-on" app you create -
you can hide its icon from launcher to not confuse users), so your app
will no longer need CALL_PHONE permission. Users with phones will
install this add-on and your app will check for its presence and fire
intenet to make add on do the reall call.

-- 
Regards,
Marcin Orlowski

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: App not showing up Motorola Xoom's Market

2011-03-09 Thread Mark Murphy
On Wed, Mar 9, 2011 at 9:41 AM, andrew_esh  wrote:
> Is there a way to gain CALL_PHONE permission when the program runs?

No, but you can still ask for the CALL_PHONE permission. You just need
to adjust your manifest to include the proper  element
to say that you can work without a phone. Please read the blog post I
linked to.

> Weather is usually the determining factor for when you file a
> flight plan, and you can a lot get a lot of extra weather information
> by calling the weather office. The app could dial from a list of
> station phone numbers along the route you're looking at.

Which does not require CALL_PHONE. Use ACTION_DIAL to place the call
by putting the number in the dialer. There may be value in simplifying
placing the call, but IMHO there is no need for an aviation weather
app to have to place phone calls directly. CALL_PHONE is a scary
permission (compared to, say, VIBRATE), and developers should be
avoiding scary permissions wherever possible.

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

Android Training Worldwide: http://commonsware.com/training

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


Re: [android-developers] Re: Which Mobile Advertising Site?

2011-03-09 Thread Justin Giles
I think you answered your own question: using ads this way is utterly
> pointless. Most of us make nearly nothing on ads in full-blown, interactive
> apps. You will probably make exactly nothing. I would consider a "donate"
> option in there instead. Or a link to the full version, if you have one.
>
>
I concur with that assessment.  The user is more likely to click on an ad
that has been there a while after they have "experienced" the app.  Very
unlikely they will click in 20 seconds.

Also, in regards to using multiple ad networks it is best to use multiple ad
providers and use a moderation service like Mobclix or AdWhirl to maximize
your impressions.  For instance if AdMob is giving very few impressions one
day, these services will rollback to another provider you have specified and
try go get an impression from them, etc.  Great way to maximize impressions,
but also adds some bloat to your application.  Another thing you need to be
aware of is that several of the ad companies require *A LOT* of permissions
that, IMHO, are not needed.  I typically stick with the ad companies that
only require the INTERNET permission.  Users are usually OK with that
permission, it's the others like READ_PHONE_STATE that gets them complaining
quite a lot.

Anyway, there are a lot of ad companies out there.  The best thing to do is
sign up with both AdWhirl and Mobclix (free to sign up, no obligation
required) and take a peek at the ad providers they support.  Pick and choose
from those lists, implement, and watch the pennies roll in!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-09 Thread Aitor Mendaza Ormaza
This once happened to me once. I had an error in the AndroidManifest.xml
file, but eclipse didn't show the error.
Once fixed, everything went back to work again :)

On Wed, Mar 9, 2011 at 3:34 PM, Donal Rafferty  wrote:

> No, the console is blank and there are no problems reported in the problems
> tab
>
>
> On Wed, Mar 9, 2011 at 2:27 PM, C. Plantier wrote:
>
>> Does the console show any error?
>>
>> On Mar 9, 3:04 pm, Donal Rafferty  wrote:
>> > Just to add to this I have now also deleted every single XML file under
>> my
>> > res folder and the R.java file still did not rebuild, what is going
>> on!??
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > On Wed, Mar 9, 2011 at 1:07 PM, Donal Rafferty 
>> wrote:
>> > > Clean is of no benefit to me in my case I'm afraid, does nothing. Its
>> as if
>> > > there are errors in the XML so the R file cant generate but Eclipse
>> doesn't
>> > > show up any errors
>> >
>> > > On Wed, Mar 9, 2011 at 12:58 PM, Kostya Vasilyev > >wrote:
>> >
>> > >> I'm occasionally seeing this with ADT 10, SDK 2.2 (API 10), Eclipse
>> 3.6.2.
>> >
>> > >> For now, I just clean my project when this happens (usually my code
>> blows
>> > >> up in the main activity's setContent because of shifting resource
>> IDs).
>> >
>> > >> -- Kostya
>> >
>> > >> 09.03.2011 15:52, draf...@gmail.com пишет:
>> >
>> > >>  I have recently downloaded the add on to Eclipse for the 2.3 SDK. My
>> > >>> minSDK is 2.1update-1.
>> >
>> > >>> Previously I only had up to the 2.2 SDK and I could change my XML
>> > >>> files and drawables without hassle and the generated R.java file
>> would
>> > >>> regenerate properly. The same if I changed my aidl files, the stubs
>> > >>> would regenerate properly.
>> >
>> > >>> However since the upgrade to 2.3 SDK I cant change or add any XML
>> > >>> files or drawables or aidl files as they wont regenerate causing all
>> > >>> sorts of issues.
>> >
>> > >>> I have googled and tried all sorts of suggestions such as:
>> >
>> > >>> Using clean.
>> > >>> Deleting the gen files and rebuilding (Just leaves an empty Gen
>> > >>> folder)
>> > >>> Using non automatic build
>> > >>> Using the new Formating parameter in Strings.xml
>> >
>> > >>> However none of them work.
>> >
>> > >>> Is there something I've missed that I have to do to get the
>> > >>> regeneration working for 2.3 SDK?
>> >
>> > >> --
>> > >> Kostya Vasilyev --http://kmansoft.wordpress.com
>> >
>> > >> --
>> > >> You received this message because you are subscribed to the Google
>> > >> Groups "Android Developers" group.
>> > >> To post to this group, send email to
>> android-developers@googlegroups.com
>> > >> To unsubscribe from this group, send email to
>> > >> android-developers+unsubscr...@googlegroups.com
>> > >> For more options, visit this group at
>> > >>http://groups.google.com/group/android-developers?hl=en
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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
>



-- 
---
http://aitorTheRed.blogspot.com
http://www.last.fm/user/aitorTheRed/

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

2011-03-09 Thread TreKing
On Wed, Mar 9, 2011 at 5:29 AM, arindam  wrote:

> I am currently trying to parse android layout xml file using simple xml
> parser.
>

Why?


> Actually this layout xml file is in sdcard.
>

Why?


> I am unable to parse.
>

Why?


> Is their any better way to do.
>

Better than what? You've haven't really explained anything.


> Your kind information will help me a lot.
>

Your kind information, regarding what you're actually trying to do, will
help us a lot.

-
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] Please help me test my app

2011-03-09 Thread Raghav Sood
HI everyone,

I have recently made a Knots and Crosses game. I have only one Android
device and would like to get feedback on other devices. Also if anyone has
suggestions for the AI please tell me. You can download it at
https://www.raghavsood.com/downloads/android/apps/kac.

Thanks
-- 
Raghav Sood
http://www.raghavsood.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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-09 Thread Donal Rafferty
I was hoping it would be something like that but its not, regeneration works
fine on 2.2 SDK + a previous ADT but fails on 2.3 SDK + ADT 10, is there
something in the Manifest I have to change for 2.3 SDK?

On Wed, Mar 9, 2011 at 3:10 PM, Aitor Mendaza Ormaza
wrote:

> This once happened to me once. I had an error in the AndroidManifest.xml
> file, but eclipse didn't show the error.
> Once fixed, everything went back to work again :)
>
> On Wed, Mar 9, 2011 at 3:34 PM, Donal Rafferty  wrote:
>
>> No, the console is blank and there are no problems reported in the
>> problems tab
>>
>>
>> On Wed, Mar 9, 2011 at 2:27 PM, C. Plantier wrote:
>>
>>> Does the console show any error?
>>>
>>> On Mar 9, 3:04 pm, Donal Rafferty  wrote:
>>> > Just to add to this I have now also deleted every single XML file under
>>> my
>>> > res folder and the R.java file still did not rebuild, what is going
>>> on!??
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > On Wed, Mar 9, 2011 at 1:07 PM, Donal Rafferty 
>>> wrote:
>>> > > Clean is of no benefit to me in my case I'm afraid, does nothing. Its
>>> as if
>>> > > there are errors in the XML so the R file cant generate but Eclipse
>>> doesn't
>>> > > show up any errors
>>> >
>>> > > On Wed, Mar 9, 2011 at 12:58 PM, Kostya Vasilyev >> >wrote:
>>> >
>>> > >> I'm occasionally seeing this with ADT 10, SDK 2.2 (API 10), Eclipse
>>> 3.6.2.
>>> >
>>> > >> For now, I just clean my project when this happens (usually my code
>>> blows
>>> > >> up in the main activity's setContent because of shifting resource
>>> IDs).
>>> >
>>> > >> -- Kostya
>>> >
>>> > >> 09.03.2011 15:52, draf...@gmail.com пишет:
>>> >
>>> > >>  I have recently downloaded the add on to Eclipse for the 2.3 SDK.
>>> My
>>> > >>> minSDK is 2.1update-1.
>>> >
>>> > >>> Previously I only had up to the 2.2 SDK and I could change my XML
>>> > >>> files and drawables without hassle and the generated R.java file
>>> would
>>> > >>> regenerate properly. The same if I changed my aidl files, the stubs
>>> > >>> would regenerate properly.
>>> >
>>> > >>> However since the upgrade to 2.3 SDK I cant change or add any XML
>>> > >>> files or drawables or aidl files as they wont regenerate causing
>>> all
>>> > >>> sorts of issues.
>>> >
>>> > >>> I have googled and tried all sorts of suggestions such as:
>>> >
>>> > >>> Using clean.
>>> > >>> Deleting the gen files and rebuilding (Just leaves an empty Gen
>>> > >>> folder)
>>> > >>> Using non automatic build
>>> > >>> Using the new Formating parameter in Strings.xml
>>> >
>>> > >>> However none of them work.
>>> >
>>> > >>> Is there something I've missed that I have to do to get the
>>> > >>> regeneration working for 2.3 SDK?
>>> >
>>> > >> --
>>> > >> Kostya Vasilyev --http://kmansoft.wordpress.com
>>> >
>>> > >> --
>>> > >> You received this message because you are subscribed to the Google
>>> > >> Groups "Android Developers" group.
>>> > >> To post to this group, send email to
>>> android-developers@googlegroups.com
>>> > >> To unsubscribe from this group, send email to
>>> > >> android-developers+unsubscr...@googlegroups.com
>>> > >> For more options, visit this group at
>>> > >>http://groups.google.com/group/android-developers?hl=en
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, 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
>>
>
>
>
> --
> ---
> http://aitorTheRed.blogspot.com
> http://www.last.fm/user/aitorTheRed/
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Problem stripping Log calls with ProGuard

2011-03-09 Thread Daniel Drozdzewski
Marcin,

You have an interesting problem.
ProGuard analyses the calls you have specified and only if it can
determine that there is no return value, then the call gets removed.
It is hard to speculate, what each call to Log.d("foo") can cause, and
whether ProGuard can actually trace that there are no side effects.


You can help ProGuard by having a central singleton Logger and each
class requesting child Logger from this one. Then, when you release,
setting the logger level to OFF on that master logger should give
ProGuard enough to establish that none of the Log calls will ever take
place therefore removing them.

If that does not work, static final boolean IF switch around each call
to Log is your only help.

Hope it helps somehow.


Daniel



On Wed, Mar 9, 2011 at 1:29 PM, Marcin Orlowski
 wrote:
> Hi,
>
> I try to strip all log calls from release app using proguard
> (-assumenosideeffects) i noticed not all is removed. Some cases are
> clearly understandable to left some traces i.e. Log.i("foo" + bar());
> one, but I wonder what I can do (except manually comenting it out)
> this:
>
> if( ... )
> {
>  ... some code ...
> } else {
>  Log.d("foo");
> }
>
> To my understanding there's no reason to not remove Log call, but it
> remains there. My first thought was PG got some sort of problems
> stripping the only code from the else cause, but I spotted it happened
> sometimes when I got some code (method call) around too. For smaller
> apps I can track these left-overs down by hand but for bigger is pure
> time consuming process to reverse own app and go thru smali code.
> Anyone got idea what could I can do to get above sorted
>
> --
> Regards,
> Marcin Orlowski
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Daniel Drozdzewski

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


Re: [android-developers] Re: Create native typeface in 2.31

2011-03-09 Thread Nikolay Elenkov
On Mon, Mar 7, 2011 at 4:11 AM, kernelpanic  wrote:
> yep, I already rescinded my statement, jumped the gun there - my
> apologies.
>

My font is actually a TrueType collection (ttc file). I see you are having
problems with a regular ttf file so that may not be the issue, but still:
does anyone know if TrueType collection files are supported on 2.3?

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

2011-03-09 Thread Jeremy Cowgar
I tested on my Droid X. It would be nice for the tiles to scale. The
game only occupied the upper left side of the screen. Also, the bottom
text entry displays text that I cannot read because the text is maybe
2x larger than the entry widget. Thus, I can only see the bottom half
of the text.

Jeremy

On Wed, Mar 9, 2011 at 10:17 AM, Raghav Sood  wrote:
> HI everyone,
>
> I have recently made a Knots and Crosses game. I have only one Android
> device and would like to get feedback on other devices. Also if anyone has
> suggestions for the AI please tell me. You can download it at
> https://www.raghavsood.com/downloads/android/apps/kac.
>
> Thanks
> --
> Raghav Sood
> http://www.raghavsood.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] Please help me test my app

2011-03-09 Thread Raghav Sood
Thanks Jeremy,

I was expecting the layout problem as I am using an absolute layout for now
but will change it to relative in the next version.
As for the text widget that was unexpected but I shall try to fix it. I also
know that my AI often lets go of obvious wins but haven't been able to fix
that. Anyone else has any feedback?

Thanks

--
Raghav Sood
http://www.raghavsood.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] Develop Software or Systems? Earn Guaranteed $10 or have $10 donated to FIRST; Chance to Win an iPad 2

2011-03-09 Thread OnTargetEmbedded
VDC Research is conducting its annual survey of embedded engineers,
and if you are involved in the engineering of mobile or embedded
systems/software, this is your chance to influence key embedded
solution suppliers. The research covers embedded software, hardware,
tools, and development practices and of particular importance to VDC
this year is the development of Android-based devices.

In appreciation of your participation -

The first 400 respondents who complete the survey will receive:
-Choice of a $10 Amazon.com gift certificate or elect to make a $10
donation to FIRST (a charitable organization helping to promote the
sciences to the next generation of engineers and developers).

All respondents (including the first 400) who complete the survey will
receive:
-Entry into the grand prize drawing for an Apple iPad 2;
-Immediate access to a summary of VDC's 2010 Embedded Engineering
Survey results at the end of the survey; and
-A summary of the 2011 Embedded Engineering survey findings once the
survey is complete later this year.


To begin the survey, go to: http://bit.ly/gs5eGG


Thank you very much for your assistance.


Best Regards,

The VDC Embedded Software and Tools Research Team

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Eclipse wont regenerate files since downloading the 2.3 SDK

2011-03-09 Thread ericharlow
I am using the 1.6 SDK + ADT 10 just downloaded it yesterday.
I have the same issue with no generated R.java file after cleaning the
project.
But if I click on the project and press F5 to refresh the error goes
away and the project builds fine and R.java is present.
Is this an error in ADT 10?

On Mar 9, 8:20 am, Donal Rafferty  wrote:
> I was hoping it would be something like that but its not, regeneration works
> fine on 2.2 SDK + a previous ADT but fails on 2.3 SDK + ADT 10, is there
> something in the Manifest I have to change for 2.3 SDK?
>
> On Wed, Mar 9, 2011 at 3:10 PM, Aitor Mendaza Ormaza
> wrote:
>
> > This once happened to me once. I had an error in the AndroidManifest.xml
> > file, but eclipse didn't show the error.
> > Once fixed, everything went back to work again :)
>
> > On Wed, Mar 9, 2011 at 3:34 PM, Donal Rafferty  wrote:
>
> >> No, the console is blank and there are no problems reported in the
> >> problems tab
>
> >> On Wed, Mar 9, 2011 at 2:27 PM, C. Plantier wrote:
>
> >>> Does the console show any error?
>
> >>> On Mar 9, 3:04 pm, Donal Rafferty  wrote:
> >>> > Just to add to this I have now also deleted every single XML file under
> >>> my
> >>> > res folder and the R.java file still did not rebuild, what is going
> >>> on!??
>
> >>> > On Wed, Mar 9, 2011 at 1:07 PM, Donal Rafferty 
> >>> wrote:
> >>> > > Clean is of no benefit to me in my case I'm afraid, does nothing. Its
> >>> as if
> >>> > > there are errors in the XML so the R file cant generate but Eclipse
> >>> doesn't
> >>> > > show up any errors
>
> >>> > > On Wed, Mar 9, 2011 at 12:58 PM, Kostya Vasilyev  >>> >wrote:
>
> >>> > >> I'm occasionally seeing this with ADT 10, SDK 2.2 (API 10), Eclipse
> >>> 3.6.2.
>
> >>> > >> For now, I just clean my project when this happens (usually my code
> >>> blows
> >>> > >> up in the main activity's setContent because of shifting resource
> >>> IDs).
>
> >>> > >> -- Kostya
>
> >>> > >> 09.03.2011 15:52, draf...@gmail.com пишет:
>
> >>> > >>  I have recently downloaded the add on to Eclipse for the 2.3 SDK.
> >>> My
> >>> > >>> minSDK is 2.1update-1.
>
> >>> > >>> Previously I only had up to the 2.2 SDK and I could change my XML
> >>> > >>> files and drawables without hassle and the generated R.java file
> >>> would
> >>> > >>> regenerate properly. The same if I changed my aidl files, the stubs
> >>> > >>> would regenerate properly.
>
> >>> > >>> However since the upgrade to 2.3 SDK I cant change or add any XML
> >>> > >>> files or drawables or aidl files as they wont regenerate causing
> >>> all
> >>> > >>> sorts of issues.
>
> >>> > >>> I have googled and tried all sorts of suggestions such as:
>
> >>> > >>> Using clean.
> >>> > >>> Deleting the gen files and rebuilding (Just leaves an empty Gen
> >>> > >>> folder)
> >>> > >>> Using non automatic build
> >>> > >>> Using the new Formating parameter in Strings.xml
>
> >>> > >>> However none of them work.
>
> >>> > >>> Is there something I've missed that I have to do to get the
> >>> > >>> regeneration working for 2.3 SDK?
>
> >>> > >> --
> >>> > >> Kostya Vasilyev --http://kmansoft.wordpress.com
>
> >>> > >> --
> >>> > >> You received this message because you are subscribed to the Google
> >>> > >> Groups "Android Developers" group.
> >>> > >> To post to this group, send email to
> >>> android-developers@googlegroups.com
> >>> > >> To unsubscribe from this group, send email to
> >>> > >> android-developers+unsubscr...@googlegroups.com
> >>> > >> For more options, visit this group at
> >>> > >>http://groups.google.com/group/android-developers?hl=en
>
> >>> --
> >>> You received this message because you are subscribed to the Google
> >>> Groups "Android Developers" group.
> >>> To post to this group, send email to android-developers@googlegroups.com
> >>> To unsubscribe from this group, 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
>
> > --
> > ---
> >http://aitorTheRed.blogspot.com
> >http://www.last.fm/user/aitorTheRed/
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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 Develop

[android-developers] Fragment.onActivityResult is not called

2011-03-09 Thread drasticp
I have an application that targets 2.1. I'm using the Android
Compatibility Package to migrate the code in my Activities to
Fragments. I had an Activity which was launching a contact picker as
follows:

Intent contactPickerIntent = new Intent(Intent.ACTION_PICK,
Contacts.CONTENT_URI);
startActivityForResult(contactPickerIntent, CONTACT_PICKER_RESULT);

The result was appropriately handled in the onActivityResult for the
Activity:

@Override
public void onActivityResult(int requestCode, int resultCode, Intent
data) {
if (resultCode != Activity.RESULT_OK) return;
switch (requestCode) {
case CONTACT_PICKER_RESULT:
handleResult(data);
break;
}
}

Now, I've migrated both the startActivityForResult call and the
onActivityResult into a Fragment. I have also extended
FragmentActivity in the hosting Activity.

The contact picker still launches correctly, but onActivityResult in
the fragment is never called. If I override onActivityResult in the
FragmentActivity, it *IS* called. However, I don't want to handle the
result there because it breaks the encapsulation philosophy of the new
fragments.

Shouldn't onActivityResult in the fragment be called? Am I missing
something? Thanks for your assistance!

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


[android-developers] Gingerbread phone call recording?

2011-03-09 Thread Hank
I tried to make an app to record phone conversations using the
MediaRecorder class for Froyo on my Nexus One, and it turned out
unsuccessfully. I was wondering with the new firmware Gingerbread, if
it was possible to record phone conversations now?

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


[android-developers] Re: Lost libraries after updating ADT and SDK

2011-03-09 Thread Nathan
In preferences, under Java->Compiler, it most definitely says 1.6.

But since Helios supports 64 bit now, there is just a chance that I
need the 64 bit JDK now.

Otherwise I'm not sure where to look.

Nathan

On Mar 8, 11:01 pm, Kostya Vasilyev  wrote:
> Should 1.6, this error means you have it set to 1.5.
> 09.03.2011 8:05 пользователь "Nathan"  написал:
>
>
>
>
>
>
>
> > I've installed 3.6.2. Still not getting clean builds.
>
> > I am getting a zillion 'method must override a superclass method'. I
> > think that means that the JDK compliance level is off or something
> > like that, but I can't remember what it should be.
>
> > 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

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


[android-developers] Re: Is Nexus S NFC card sharing done with P2P or card emulation?

2011-03-09 Thread Dominik
It is P2P. The application can register an NDEF message with
   adapter.enableForegroundNdefPush.
Typically this feature is enabled in onResume and disabled in onPause,
but I expect that the P2P mode can also be active when the activity is
not in the foreground.
Dominik

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

2011-03-09 Thread drasticp
Take a look at the Linkify class. It may be quite useful. You would
need to use it to add markup to the html before the webview renders
it.

http://developer.android.com/reference/android/text/util/Linkify.html

On Mar 9, 6:22 am, Anndy  wrote:
> Hi All,
>
> I have a html page which i am going to open in a WebView. Is there a
> way I can identify a phone number on the page and when click on it,
> calls the number.
>
> Regards,
> Anndy

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Honeycomb / Fragments: can't remove a fragment added in XML layout

2011-03-09 Thread drasticp
I reproduced your issue. It seems the same for me.
FragmentTransaction.hide(Fragment) seems to work, but remove does not.
Also, the second attempt generates an exception as you described.

1up.

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

2011-03-09 Thread Dianne Hackborn
That description is pretty misleading.  It doesn't give you complete control
over management of application lifecycle, and I really have no idea what it
means in the second bullet point (you could just as well do what I think it
is describing using a static global).

On Wed, Mar 9, 2011 at 6:31 AM, DebUggEr  wrote:

> Seems like heres the answer. I am not an expert but do consider and let me
> know too.
>
> ANDROID.APP.APPLICATION CLASS
>
> Each Android application can have at most one 
> android.app.Applicationassociated
> with it. You are responsible for sub-classing the Application Class, and
> it is used to maintain a global state of the application across all
> Activites. Conceptually, you can think of it as a non-static singleton its
> life cycle being managed by Android OS.
> *Benefits:*
>
>- Gives you complete control over the management of application
>life-cycle, so resources can be properly initialised and disposed of.
>- Provides a single entry point where *any* Activity or Service within
>the application can gain access to the desired object
>
> *Drawbacks:*
>
>- Can only expose information to Activities and Services within the
>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
>



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

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

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

Re: [android-developers] Re: Lost libraries after updating ADT and SDK

2011-03-09 Thread Kostya Vasilyev

09.03.2011 17:54, Nathan пишет:

In preferences, under Java->Compiler, it most definitely says 1.6.


Did you check project-specific settings as well?

Right click on a project, select Properties, then Java compiler. Make 
sure that project-specific settings are either off, or are also set to 1.6.


-- Kostya


But since Helios supports 64 bit now, there is just a chance that I
need the 64 bit JDK now.

Otherwise I'm not sure where to look.

Nathan



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

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


Re: [android-developers] Honeycomb / Fragments: can't remove a fragment added in XML layout

2011-03-09 Thread Dianne Hackborn
To be honest, I'm not sure if this should work.  Defining fragments in XML
is mostly intended for things that are going to stay around.  If you are
going to add and remove, you should probably consistently do it dynamically.

I can look into this for a future release, but please note that whatever I
do you can easily get yourself into bad situations using this -- for example
if you don't have a unique containing view group for the fragment, what
happens as you remove/add fragments at that point in the hierarchy is going
to behave inconsistently.

On Wed, Mar 9, 2011 at 2:04 AM, C. Plantier  wrote:

> Hi,
>
> I can't remove a Fragment that was added in an XML layout file, using
> a FragmentTransaction. I don't understand why, I probably
> misunderstood something and I would appreciate some explanations.
>
> 
> Here's a simple code to demonstrate my problem :
>
>** Main layout, main.xml:
>http://schemas.android.com/apk/res/
> android"
>android:orientation="vertical"
> android:layout_width="fill_parent" android:layout_height="fill_parent"
>android:id="@+id/root"
>>
>android:layout_width="fill_parent"
>android:layout_height="wrap_content"
>android:text="@string/hello"
>/>
>
>android:id="@+id/fragment_a"
>android:layout_width="fill_parent"
>android:layout_height="wrap_content"
>/>
>
>
>** Main activity:
>public class TestFragmentsActivity extends Activity {
>
>@Override
>public void onCreate(Bundle savedInstanceState) {
>super.onCreate(savedInstanceState);
>setContentView(R.layout.main);
>
>TextView helloView = (TextView)
> findViewById(R.id.hello_view);
>helloView.setOnClickListener(new OnClickListener() {
>
>@Override
>public void onClick(View v) {
>FragmentManager fragmentManager =
> getFragmentManager();
>FragmentTransaction transaction =
> fragmentManager.beginTransaction();
>
> transaction.remove(fragmentManager.findFragmentById(R.id.fragment_a));
>transaction.commit();
>}
>});
>}
>}
>
>** My fragment class:
>public class FragmentA extends Fragment {
>
>@Override
>public View onCreateView(LayoutInflater inflater, ViewGroup
> container, Bundle savedInstanceState) {
>return inflater.inflate(R.layout.layout_a, container,
> false);
>}
>}
>
>** Fragment layout, layout_a.xml:
>http://schemas.android.com/apk/res/
> android" android:layout_width="match_parent"
> android:layout_height="match_parent">
> android:layout_height="wrap_content">
>
> 
>
> When I click on the text view, the fragment should be removed, but
> nothing seems to happen. If I click again, the application crashes
> with the following error messages:
>
>03-09 09:48:09.248: ERROR/AndroidRuntime(1222):
> java.lang.NullPointerException
>03-09 09:48:09.248: ERROR/AndroidRuntime(1222): at
> android.app.BackStackRecord.remove(BackStackRecord.java:365)
>03-09 09:48:09.248: ERROR/AndroidRuntime(1222): at
> test.fragments.TestFragmentsActivity
> $1.onClick(TestFragmentsActivity.java:28)
>
>
> Maybe it's not possible to remove fragments that were added using XML
> layouts?
>
> 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
>



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

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

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

Re: [android-developers] Fragment.onActivityResult is not called

2011-03-09 Thread Dianne Hackborn
Does the API demo for this work wherever you are running it?  I have tested
it on 3.0, 2.3, and 1.6, and it works in those places, not would I expect it
to have any trouble elsewhere.   (How this works is very simple, it just
masks out the top X bits of the request code to determine which fragment to
deliver the result to.)

Also of course if you are overriding FragmentActivity.onActivityResult(),
you *do* need to be sure to call the inherited version.  The behavior here
is slightly different than the HC implementation; the activity method will
always be called first.

On Wed, Mar 9, 2011 at 8:14 AM, drasticp  wrote:

> I have an application that targets 2.1. I'm using the Android
> Compatibility Package to migrate the code in my Activities to
> Fragments. I had an Activity which was launching a contact picker as
> follows:
>
> Intent contactPickerIntent = new Intent(Intent.ACTION_PICK,
> Contacts.CONTENT_URI);
> startActivityForResult(contactPickerIntent, CONTACT_PICKER_RESULT);
>
> The result was appropriately handled in the onActivityResult for the
> Activity:
>
> @Override
> public void onActivityResult(int requestCode, int resultCode, Intent
> data) {
>if (resultCode != Activity.RESULT_OK) return;
>switch (requestCode) {
>case CONTACT_PICKER_RESULT:
>handleResult(data);
>break;
>}
> }
>
> Now, I've migrated both the startActivityForResult call and the
> onActivityResult into a Fragment. I have also extended
> FragmentActivity in the hosting Activity.
>
> The contact picker still launches correctly, but onActivityResult in
> the fragment is never called. If I override onActivityResult in the
> FragmentActivity, it *IS* called. However, I don't want to handle the
> result there because it breaks the encapsulation philosophy of the new
> fragments.
>
> Shouldn't onActivityResult in the fragment be called? Am I missing
> something? Thanks for your assistance!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] How to update the media database

2011-03-09 Thread Abhishek Talwar
Can we update the database??
Since i am deleting the songs from sdcard so i would like to show the
updated list when delete button is clicked

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

2011-03-09 Thread dirk
I don't believe so. If it's a known number, the only thing I can think
of is to add a contact for that number (with the user's approval, of
course).

Dirk

On Mar 9, 2:58 am, viktor  wrote:
> Hi,
>
> Is it any tricks to change name in Dialer on the fly (when dialer is
> in Ringing state )?
>
> In dialer we can see Name with label "Unknown", I want to replace it
> on my own label.
>
> 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] App Testing

2011-03-09 Thread DanielleM
Hello all:

I saw that some people on this forum were asking for the help of
others on here to test their apps on different devices and I was
hoping to also get some help with this.

You can download my app here:

http://www.wusf.org/Android_App/WUSF_Android.html

I've been having issues getting the live streams to play on some 2.2
devices, so if you are able to help me out can you please send back
specific info on what device and version of Android you are using?

I really appreciate any help anyone can provide.

Thanks,
DanielleM

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


[android-developers] Experiences with Application Licensing?

2011-03-09 Thread Chris Stewart
I had initially enabled Copy Protection prior to it being listed as
deprecated and I have a growing concern over piracy when I compare my sales
numbers from Checkout, to what the Android Market shows, and what Flurry is
reporting.  The numbers simply don't add up, and aren't even close really,
so I want to explore measures to keep this more in line.

I'm looking into implementing application licensing and I'm wondering what
experiences people have had with it.  It appears that the physical
implementation will be rather easy.  From what I can gather, StrictPolicy
makes the most sense for my situation.  My application requires an active
Internet connection at all times due to the nature of what it's doing.

If you've evaluated application licensing and have thoughts on how it has
worked out for you, or perhaps why you decided not to implement it, I'd
appreciate hearing them.

--
Chris Stewart
http://chriswstewart.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] Experiences with Application Licensing?

2011-03-09 Thread TreKing
On Wed, Mar 9, 2011 at 11:33 AM, Chris Stewart wrote:

> If you've evaluated application licensing and have thoughts on how it has
> worked out for you, or perhaps why you decided not to implement it, I'd
> appreciate hearing them.


http://groups.google.com/group/android-discuss/browse_thread/thread/229bbfaa78036f72

-
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] Gingerbread phone call recording?

2011-03-09 Thread TreKing
On Wed, Mar 9, 2011 at 10:24 AM, Hank  wrote:

> I was wondering with the new firmware Gingerbread, if it was possible to
> record phone conversations now?
>

http://developer.android.com/sdk/android-2.3.html
 
http://developer.android.com/sdk/android-2.3.3.html

-
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: Install % drop again?

2011-03-09 Thread DraganA
When I made my earlier post, the bloody cat was exactly what I had in
mind ;)

On Mar 9, 2:04 pm, TreKing  wrote:
> On Wed, Mar 9, 2011 at 1:54 AM, DraganA  wrote:
> > On the other hand, maybe Google realized that a lot of people are bored
> > with seeeing the same old apps on the front Market page week in week out.
>
> Seriously. Every time I see the giant promo graphic for "Talking Tom Cat" on
> the Market main screen, I want to punch my phone in the face. It's been
> there since the new Market was released. Apparently no other apps are worth
> featuring.
>
> However, Zsolt is talking about ranking per category, which makes no goddamn
> sense. The app above mine has the same download range, but 1/5 the number of
> ratings and 4 star ratings vs my 4.5. Someone riddle me that.
>
> And to throw in another "me too", I was fine at the beginning of this
> thread, when I took note of my %. It had actually been trending up, so I'd
> assumed the gnomes finally fixed something. As of this post, it's dropped
> 8%, 5 of which was literally overnight, and I'm down 3 spots as well.
> Fortunately sales remain fairly consistent.
>
> Oh well, as usual, there's nothing but complaining to be done about it. Just
> keep doing what you're doing and hope to succeed in spite of the Android
> Market being utter garbage.
>
> Psst, hey Amazon, can you open up already?
>
> -
> 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] Status Bar Notifications

2011-03-09 Thread Brad Stintson
How to create status bar notification which notifies me every day at 10 am?

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

2011-03-09 Thread Kostya Vasilyev

09.03.2011 20:53, Brad Stintson пишет:
How to create status bar notification which notifies me every day at 
10 am? 


1 - Use AlarmManager to schedule reliable, persistent (until reboot) 
alarms that trigger a BroadcastReceiver in your application.


http://developer.android.com/reference/android/app/AlarmManager.html

2 - Use NotificationManager to display the notification.

http://developer.android.com/guide/topics/ui/notifiers/index.html

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

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


Re: [android-developers] Status Bar Notifications

2011-03-09 Thread Brad Stintson
Can u please provide sample code?
I am new to this.

On Wed, Mar 9, 2011 at 11:31 PM, Kostya Vasilyev  wrote:

> 09.03.2011 20:53, Brad Stintson пишет:
>
>  How to create status bar notification which notifies me every day at 10
>> am?
>>
>
> 1 - Use AlarmManager to schedule reliable, persistent (until reboot) alarms
> that trigger a BroadcastReceiver in your application.
>
> http://developer.android.com/reference/android/app/AlarmManager.html
>
> 2 - Use NotificationManager to display the notification.
>
> http://developer.android.com/guide/topics/ui/notifiers/index.html
>
> --
> Kostya Vasilyev -- http://kmansoft.wordpress.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2011-03-09 Thread TreKing
On Wed, Mar 9, 2011 at 12:14 PM, Brad Stintson wrote:

> Can u please provide sample code?


Can u please read the links Kostya provided and attempt to do something on
your own?
Or use Google, there are plenty of examples to be found in the documentation
and internets.

-
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] problem in parsing two xml files

2011-03-09 Thread Siva Kannabiran
I am a new developer. In my app I am trying to parse two xml files. The
first xml file contains some list of data as follows:




A
B




The data will be showed in a listview manner. When I touch A it moves to B,
and when I touch B it moves over to the next XML file:




ABC
abc
QWE
abc


I want view the second xml file to be an String.

Here I want to do a flip order; the question must be one side and the answer
must be of other side.

Now the problem is that I am getting the first XML file correctly but the
later one is not getting parsed. Should i have to create a separate for list
XML handler file for both  xml files. I have placed both the xml files in
res->raw and its beeen mentioned in the coding as:

//getting the path of xml to parse
inputstream = this.getResources().openRawResource(R.raw.list);
resID = getResources().getIdentifier(name, "raw", "com.gis.flash");

Can anyone explain me what errors I have committed and how to parse two xml
files ?
-- 
Siva Shankar K

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

2011-03-09 Thread Hank
That's used for VOIP, which isn't the same as recording a phone
conversation from a call using the mobile carrier network.

On Mar 9, 12:46 pm, TreKing  wrote:
> On Wed, Mar 9, 2011 at 10:24 AM, Hank  wrote:
> > I was wondering with the new firmware Gingerbread, if it was possible to
> > record phone conversations now?
>
> http://developer.android.com/sdk/android-2.3.html
>  http://developer.android.com/sdk/android-2.3.3.html
>
> -
> 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] Status Bar Notifications

2011-03-09 Thread Kostya Vasilyev

Here is one example that does pretty much what you asked for:

http://www.androidcompetencycenter.com/tag/alarmmanager/

-- Kostya

09.03.2011 21:14, Brad Stintson пишет:

Can u please provide sample code?
I am new to this.

On Wed, Mar 9, 2011 at 11:31 PM, Kostya Vasilyev > wrote:


09.03.2011 20:53, Brad Stintson пишет:

How to create status bar notification which notifies me every
day at 10 am?


1 - Use AlarmManager to schedule reliable, persistent (until
reboot) alarms that trigger a BroadcastReceiver in your application.

http://developer.android.com/reference/android/app/AlarmManager.html

2 - Use NotificationManager to display the notification.

http://developer.android.com/guide/topics/ui/notifiers/index.html

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


-- 
You received this message because you are subscribed to the Google

Groups "Android Developers" group.
To post to this group, send email to
android-developers@googlegroups.com

To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com

For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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



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

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

Re: [android-developers] Re: Gingerbread phone call recording?

2011-03-09 Thread TreKing
On Wed, Mar 9, 2011 at 12:21 PM, Hank  wrote:

> That's used for VOIP, which isn't the same as recording a
> phone conversation from a call using the mobile carrier network.
>

I think my point was lost.

You asked if "X" was possible wit "Y" version of the API.

To answer this question, you go to the documentation that describes "Y"
version of the API and look for mention of "X". If you find it, the answer
is "yes". If you don't, it's likely a "no". Either way, you get an answer,
quickly and easily.

-
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] Status Bar Notifications

2011-03-09 Thread Kostya Vasilyev

09.03.2011 21:18, TreKing пишет:


Can u please read the links Kostya provided and attempt to do 
something on your own?


Thank you, Major, sir :)

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


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


[android-developers] Re: Change incoming name in Dialer

2011-03-09 Thread viktor
Thank, I can add contact without approval, but I don't know if Dialer
sync contact by change or only at Dialer startup.



On 9 Бер, 19:22, dirk  wrote:
> I don't believe so. If it's a known number, the only thing I can think
> of is to add a contact for that number (with the user's approval, of
> course).
>
> Dirk
>
> On Mar 9, 2:58 am, viktor  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > Is it any tricks to change name in Dialer on the fly (when dialer is
> > in Ringing state )?
>
> > In dialer we can see Name with label "Unknown", I want to replace it
> > on my own label.
>
> > Thanks

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


[android-developers] Re: Status Bar Notifications

2011-03-09 Thread roberto
Hi Brad,
you might want to consider using the BuzzBox SDK to do schedule a Task
very quickly.
You can use a cron string to schedule your task, in your case it would
be:

SchedulerManager.getInstance()
.saveTask(this, "0 10 * * 1,2,3,4,5,6,7", YourTask.class);

The BuzzBox SDK takes care of registering your task in the Alarm
Manager.
More info:
http://hub.buzzbox.com/android-sdk/

Let me know what you think.

Roberto

On Mar 9, 9:53 am, Brad Stintson  wrote:
> How to create status bar notification which notifies me every day at 10 am?

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

2011-03-09 Thread LAM_Creations
I have been using Admob but recently I tried Ad/Leads by Pontiflex. It is a 
different type of advertising the has much higher payouts. For me the payout 
has been 10 to 20 times greater than Admob. It allows users to select 
products they would like to hear more about with out ever leaving your app. 
They are full screen ads that show three ads at once. You could have it 
launch when ever the user launched your activity or every X number of 
launches. The developer functions are kinda a pain to work with but the 
payout is worth 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

Re: [android-developers] Experiences with Application Licensing?

2011-03-09 Thread Chris Stewart
Great thread, thanks for posting that.  I guess more than anything the false
positives (or, negatives?) scare me the most.  Last thing I want to do is
piss off a paid customer.  Maybe for now I'll just wait and see how LVL
improves in the future and consider it in the future.

--
Chris Stewart
http://chriswstewart.com



On Wed, Mar 9, 2011 at 12:41 PM, TreKing  wrote:

> On Wed, Mar 9, 2011 at 11:33 AM, Chris Stewart wrote:
>
>> If you've evaluated application licensing and have thoughts on how it has
>> worked out for you, or perhaps why you decided not to implement it, I'd
>> appreciate hearing them.
>
>
>
> http://groups.google.com/group/android-discuss/browse_thread/thread/229bbfaa78036f72
>
>
> -
> 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

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

2011-03-09 Thread Gregg Reno
Also make sure you have android:debuggable="true" in the 
element of your manifest.

-Gregg

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

2011-03-09 Thread Marcin Orlowski
On 9 March 2011 19:59, roberto  wrote:

> http://hub.buzzbox.com/android-sdk/

Looks interesting but I personally am not happy with it being closed
source (which I could stand) but integration with their analics. Who
knows what it analites when your app got internet permission. But can
be I am simply exaggerating :)

-- 
Regards,
Marcin Orlowski

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Repeating alarms with AlarmManager and daylight saving / leap years

2011-03-09 Thread roberto
Check out the BuzzBox SDK http://hub.buzzbox.com/android-sdk/

You can actually use a cron string to schedule your task:

SchedulerManager.getInstance()
.saveTask(this, "0 8-19 * * 1,2,3,4,5", YourTask.class);


I'm actively working on this, so I would love your personal feedback.
Roberto

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

2011-03-09 Thread Marcin Orlowski
> ProGuard analyses the calls you have specified and only if it can
> determine that there is no return value, then the call gets removed.

Maybe I mistunderstood "return value" concept there, but I created Log
wrapper class and all its public method "return" void. So to my
understanding all calls qualifies for removal. To ensure all wrapper
calls are as primitive as possible Method("string"), so PG would have
no doubts. I told PG to remove the wrapper class as whole by specifing
"-assumenosideeffects class WrapperLog" to the PG config. And I still
see some log calls remaining and I am unable to find a reason why is
this happening.

> It is hard to speculate, what each call to Log.d("foo") can cause, and
> whether ProGuard can actually trace that there are no side effects.

That's my question. To me all shall be stripped, because I told so no
call return value exists and I wonder if anyone else tried what I do
and got any comments. I consider asking on PG's ML though anyway, to
find out how PG evaluates this

> You can help ProGuard by having a central singleton Logger and each
> class requesting child Logger from this one. Then, when you release,
> setting the logger level to OFF on that master logger should give
> ProGuard enough to establish that none of the Log calls will ever take
> place therefore removing them.
>
> If that does not work, static final boolean IF switch around each call
> to Log is your only help.

Will try this but this sort of against of my former idea. I miss #ifdef

-- 
Regards,
Marcin Orlowski

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