[android-developers] Re: adding custom view in main.xml

2011-03-21 Thread Vishwesh R.
my code:-

main.xml



http://schemas.android.com/apk/res/android";
android:layout_height="fill_parent"
android:clickable="true"
/>


Myview.java

package com.MyPack.canvasexample;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;

public class Myview extends View {

public Myview(Context context) {
super(context);
// TODO Auto-generated constructor stub
this.invalidate();
}


public Myview(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
// TODO Auto-generated constructor stub
this.invalidate();
}

public Myview(Context context, AttributeSet attrs) {
super(context, attrs);
// TODO Auto-generated constructor stub
this.invalidate();
}

@Override
protected void onDraw(Canvas canvas) {
// TODO Auto-generated method stub
super.onDraw(canvas);

canvas.drawLine(100, 100, 200, 200, new Paint());
}

@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
{
// TODO Auto-generated method stub
super.onMeasure(widthMeasureSpec, heightMeasureSpec);

}
}

canvasexample.java

package com.MyPack.canvasexample;

import android.app.Activity;
import android.os.Bundle;

public class canvasexample extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
 View v= findViewById(R.id.view1);
if(v==null)
Log.w("isnull", "null");
else
Log.w("isnull", "not null");

}
}

this is my code
the log displays "not null"  for "isnull" tag that is view to b not
null...
do we need to write anything in manifest file.
in graphical view of main.xml i can see a line drawn on the canvas but
when i execute my program it shows nothing on canvas...
ya we knw that we can draw a line without creating an extra view but
we r trying to do it by creating a custom view...




On Mar 18, 9:55 pm, Aisthesis  wrote:
> did you use the fully qualified name when you put it in main.xml?
> e.g.: com.google.myapp.MyView
> if that doesn't do it, it's hard to debug without any code--also there
> are ways to draw a line without creating an extra custom view
>
> On Mar 17, 8:05 am, "Vishwesh R."  wrote:
>
> > hi,
> >     im a beginner
> >    i have created a Myview wich extends View class. i have drawn a
> > line on this view (that is Myview) in its onDraw() method.
> > i included my view in its main.xml
>
> > it shows no error but when i run this application, it loads the canvas
> > but im unable to see the line wich i have drawn in Myview
> > the coordinate of the line do lie on canvas but it not visible after
> > the application is run..

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

2011-03-21 Thread trans
My app is based on the SoftKeyboard example. Problem is the way the 
KeyboardView class is designed in the Android API, as far as I can see it 
only allows for one key background for all keys.

As of yet the only way around it I can see is to create a IME from the 
ground up and dump the Keyboard classes the Andorid API provides out of the 
box.



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

2011-03-21 Thread Lance Nanek
I just draw a character at a time, so I can draw anything. I use
char[] instead of String so I can preallocate and avoid garbage
collection. You asked for code, so here it is. Mine's horrendously
ugly, but I wrote it once and it never needed much revising, so I
never really needed to clean it up. Anyway the methods look like this:

/**
 * Draw a character array.
 *
 * @param chars char[] to draw
 * @param offset int offset into the array specifying where to start
 * @param count int number of characters to draw from the array
 * @param startX int x position to start drawing from
 * @param bottom int y position of bottom of first line of text
 * @param alignedLeft boolean true to draw text toward the right,
false to draw toward the left
 * @return y position to use to draw a line below the drawn text
 */
public int drawChars(final char[] chars, final int offset, final int
count,
final Text font, final int startX, final int bottom,
final boolean alignedLeft, final boolean nextLineDown,
final int scaleFP, final byte alpha) {

final int scaledFontHeightFP = FP.Mul(scaleFP, font.mHeightFP);
final int scaledFontWidthFP = FP.Mul(scaleFP, font.mWidthFP);
final int scaledFontHeightDifference = scaledFontHeightFP -
font.mHeightFP;

final int lineIncrement = scaledFontHeightFP;

final int limit = offset + count;
int drawingX = startX;
int drawingBottom = bottom - scaledFontHeightDifference;

final int charsStart = alignedLeft ? offset : limit - 1;
final int charsEnd = alignedLeft ? limit : offset - 1;
final int charsInc = alignedLeft ? 1 : -1;

for(int i = charsStart; i != charsEnd; i += charsInc) {
final char c = chars[i];
if ( '\n' == c ) {
if ( LOG ) Log.i(TAG, "Line return detected, 
bottom = " + bottom);
drawingBottom -= lineIncrement;
if ( LOG ) Log.i(TAG, "Line return detected, 
bottom = " + bottom);
drawingX = startX;

continue;
}

final int charTexture = font.texture(c);

if ( !alignedLeft ) {
drawingX -= scaledFontWidthFP;
}

quad(drawingX, drawingBottom, scaledFontWidthFP,
scaledFontHeightFP, font.mAtlas, charTexture, alpha);

if ( alignedLeft ) {
drawingX += scaledFontWidthFP;
}
}

drawingBottom -= lineIncrement;
if ( nextLineDown ) {
return drawingBottom - lineIncrement;
}

return drawingBottom + lineIncrement + scaledFontHeightFP;
}

public int drawChars(final char[] chars, final int offset, final int
count,
final Text font,
final int startX, final int bottom, final boolean alignedLeft, 
final
boolean nextLineDown) {

return drawChars(chars, offset, count, font, startX, bottom,
alignedLeft, nextLineDown, FP.ONE, ColorBytes.COMPONENT_MAX);
}

public void number(final int number, final Text font, final int
startX, final int bottom,
final boolean alignedLeft) {

number(number, font, startX, bottom, alignedLeft, FP.ONE);
}

public void number(final int number, final Text font, final int
startX, final int bottom,
final boolean alignedLeft, final int scaleFP) {

int numberStart = CharUtil.prepend(number, charBuffer.length, 1,
charBuffer);

int count = charBuffer.length - numberStart;
drawChars(charBuffer, numberStart, count, font, startX, bottom,
alignedLeft, true, scaleFP, ColorBytes.COMPONENT_MAX);
}

public void quad(final int left, final int bottom, final Atlas atlas,
final int texture) {
quad(left, bottom, atlas.widthFP[texture], 
atlas.heightFP[texture],
atlas, texture, ColorBytes.COMPONENT_MAX);
}

public void quad(final int left, final int bottom, final Atlas atlas,
final int texture, boolean flipHorizontal) {
final int textureWFP = atlas.widthFP[texture];
final int adjustedLeft = flipHorizontal ? left + textureWFP : 
left;
final int wFP = flipHorizontal ? -textureWFP : textureWFP;
quad(adjustedLeft, bottom, wFP, atlas.heightFP[texture], atlas,
texture, ColorBytes.COMPONENT_MAX);
}

public void quad(final int leftFP, final int bottomFP, fin

[android-developers] LocationManager.addNmeaListener (GpsStatus.NmeaListener listener) not working on Android 3.01 ?

2011-03-21 Thread gjs
Hi,

I got a Motorola Xoom today (yipee:-) but find that GPS NMEA sentences
are not being received for LocationManager.addNmeaListener
(GpsStatus.NmeaListener listener)  with Android 3.01.

This is working ok on Nexus One & Nexus S with Android 2.3.2.

I know I asked before, but now I have a Xoom device I see no NMEA
sentences being received, Location Manager is working for
requestLocationUpdates (String provider, long minTime, float
minDistance, LocationListener listener) and receiving GPS updates ok.

Anybody else able to confirm GPS NMEA sentences not working in Android
3.0.1

I also starred -

Issue 15500:NMEA Listener no longer working after upgrade to
Gingerbread

- and added a comment about same problem with Honeycomb.

Thanks

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] Re: How to install market app in emulator?

2011-03-21 Thread Justin Anderson
*> Just Do what has been said... Forget the Copyrights..
> as we are using the same for research and currently atleast for "NON
> COMMERICAL" use.*

How fitting... when this message showed up in my email, Google said it was
from "Satan"

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


On Sun, Mar 20, 2011 at 12:43 AM, satan wrote:

> Just Do what has been said... Forget the Copyrights..
> as we are using the same for research and currently atleast for "NON
> COMMERICAL" use.
>
> Regards,
> Hemant Kshirsagar
>
>
> On Mar 19, 2:35 am, Justin Anderson  wrote:
> > LOL... Sounds like somebody has some candy bars to return to the 7-11!
> >
> > Thanks,
> > Justin Anderson
> > MagouyaWare Developerhttp://sites.google.com/site/magouyaware
> >
> > On Fri, Mar 18, 2011 at 8:12 PM, TreKing  wrote:
> > > On Fri, Mar 18, 2011 at 12:08 AM, Maps.Huge.Info (Maps API Guru) <
> > > cor...@gmail.com> wrote:
> >
> > >> If you steal candy from a 7-11 and don't get caught, does that make it
> ok?
> >
> > > Wait ... that's not OK ... ?
> >
> > >
> -
> > > 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
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Need help on T-mobile HTC G1 (Developer Unlock code)

2011-03-21 Thread Justin Anderson
*> Can somebody help me with a Developer Unlock code for T-mobile HTC G1.*
I was not aware such a thing existed...

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


On Mon, Mar 21, 2011 at 6:34 AM, clarence  wrote:

> Can somebody help me with a Developer Unlock code for T-mobile HTC G1.
> It always shows me "Emergency Calls only".
> I just need to access the phone offline.
> I was using this phone earlier offline but since the last factory
> reset i did, the phone seems to be locked.
> Can somebody help me on this.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] "Package file was not signed correctly" error

2011-03-21 Thread Justin Anderson
Or vice-versa...  It happens either way.

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


On Mon, Mar 21, 2011 at 10:47 PM, Justin Anderson wrote:

> I usually run into this when I have a debug version on my phone already
> installed from doing development and then forgetting to uninstall it before
> trying to install the release version.
>
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
>
> On Mon, Mar 21, 2011 at 5:59 AM, Anders  wrote:
>
>> My application refuses to install from the Market since I uploaded a
>> new version.
>>
>> First, I had trouble finding the right keystore again after a few
>> months of not touching the app. Market finally stopped halting the
>> uploads with messages about the wrong signature, so everything seemed
>> okay. But the new version refuses to install. Logcat dump in debug
>> mode from trying it on my own phone:
>>
>>
>>
>>
>> 03-21 07:15:59.740: DEBUG/vending(1401): [14]
>> LocalAssetDatabase.notifyListener(): -5180615462709890363 /
>> DOWNLOAD_PENDING
>> 03-21 07:15:59.890: INFO/vending(1401): [14] RequestDispatcher
>> $RequestContext.(): Some requests use secure token but dont
>> require SSL. Forcing SSL.
>> 03-21 07:16:01.010: DEBUG/RC_WifiBroadcastReceiver(20453):  action
>> android.net.wifi.SCAN_RESULTS
>> 03-21 07:16:01.010: DEBUG/RC_WifiService(20453): notifyScanResults()
>> 760811490
>> 03-21 07:16:01.330: DEBUG/MobileDataStateTracker(158): hipri Received
>> state= CONNECTED, old= CONNECTED, reason= (unspecified), apnTypeList=
>> default,supl,mms
>> 03-21 07:16:01.360: DEBUG/MobileDataStateTracker(158): replacing old
>> mInterfaceName (rmnet0) with rmnet0 for supl
>> 03-21 07:16:01.380: DEBUG/MobileDataStateTracker(158): replacing old
>> mInterfaceName (rmnet0) with rmnet0 for mms
>> 03-21 07:16:01.380: DEBUG/MobileDataStateTracker(158): default
>> Received state= CONNECTED, old= CONNECTED, reason= (unspecified),
>> apnTypeList= default,supl,mms
>> 03-21 07:16:01.550: DEBUG/NetworkLocationProvider(158):
>> onDataConnectionStateChanged 3
>> 03-21 07:16:02.810: DEBUG/vending(1401): [87]
>> AssetDownloader.downloadAndInstall(): Initiating Download for 1
>> applications.
>> 03-21 07:16:02.810: INFO/vending(1401): [87]
>> DownloadManagerUtil.enqueueDownload(): Enqueue for download
>> com.android.vending.util.DownloadManagerUtil$Request@43de9668
>> 03-21 07:16:03.020: DEBUG/vending(1401): [87]
>> LocalAssetDatabase.notifyListener(): -5180615462709890363 / null
>> 03-21 07:16:03.460: DEBUG/vending(1401): [87]
>> LocalAssetDatabase.notifyListener(): -5180615462709890363 /
>> DOWNLOADING
>> 03-21 07:16:06.820: DEBUG/dalvikvm(2573): GC_FOR_MALLOC freed 7137
>> objects / 439928 bytes in 116ms
>> 03-21 07:16:08.750: DEBUG/dalvikvm(2557): GC_EXPLICIT freed 328
>> objects / 16528 bytes in 96ms
>> 03-21 07:16:09.670: DEBUG/dalvikvm(158): GC_EXPLICIT freed 22964
>> objects / 1049192 bytes in 284ms
>> 03-21 07:16:10.100: INFO/vending(1401): [96] AssetDownloader
>> $DownloadManagerBroadcastReceiver.startNextDownload(): Found Paused
>> URI null
>> 03-21 07:16:10.110: INFO/vending(1401): [96] AssetDownloader
>> $DownloadManagerBroadcastReceiver.startNextDownload(): No more paused
>> downloads.
>> 03-21 07:16:10.110: DEBUG/vending(1401): [96] AssetDownloader
>> $DownloadManagerBroadcastReceiver.handleDownloadCompletedAction(): Got
>> a download completed intent.
>> 03-21 07:16:10.260: DEBUG/vending(1401): [96]
>> LocalAssetDatabase.notifyListener(): -5180615462709890363 / null
>> 03-21 07:16:10.340: DEBUG/vending(1401): [97] AssetDownloader
>> $DownloadManagerBroadcastReceiver.installFromUri(): Calling install
>> uri=content://downloads/download/812 src=null
>> asset=-5180615462709890363 (RobotMoose.TennisScore:8) [DOWNLOADING]
>> name=Tennis Score last=TRUE
>> 03-21 07:16:10.730: DEBUG/vending(1401): [97]
>> LocalAssetDatabase.notifyListener(): -5180615462709890363 / INSTALLING
>> 03-21 07:16:10.880: DEBUG/vending(1401): [97]
>> VendingNotificationManager.showNotification(): Showing notification:
>> [AssetID=-5180615462709890363, NotificationID=-1700280694,
>> Title=Tennis Score, Message=Installing…]
>> 03-21 07:16:11.260: DEBUG/MobileDataStateTracker(158): hipri Received
>> state= CONNECTED, old= CONNECTED, reason= (unspecified), apnTypeList=
>> default,supl,mms
>> 03-21 07:16:11.280: DEBUG/MobileDataStateTracker(158): replacing old
>> mInterfaceName (rmnet0) with rmnet0 for supl
>> 03-21 07:16:11.280: DEBUG/MobileDataStateTracker(158): replacing old
>> mInterfaceName (rmnet0) with rmnet0 for mms
>> 03-21 07:16:11.290: DEBUG/MobileDataStateTracker(158): default
>> Received state= CONNECTED, old= CONNECTED, reason= (unspecified),
>> apnTypeList= default,supl,mms
>> 03-21 07:16:11.650: DEBUG/dalvikvm(248): GC_FOR_MALLOC freed 10547
>> objects / 534800 bytes in 334ms
>> 03-21 07:16:11.760: DEBUG/dalvikvm(2708): GC_EXPLICIT freed 79
>> objects / 4104 bytes in 321ms
>> 03-21 07:16:11.820: DEBUG/

Re: [android-developers] "Package file was not signed correctly" error

2011-03-21 Thread Justin Anderson
I usually run into this when I have a debug version on my phone already
installed from doing development and then forgetting to uninstall it before
trying to install the release version.


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


On Mon, Mar 21, 2011 at 5:59 AM, Anders  wrote:

> My application refuses to install from the Market since I uploaded a
> new version.
>
> First, I had trouble finding the right keystore again after a few
> months of not touching the app. Market finally stopped halting the
> uploads with messages about the wrong signature, so everything seemed
> okay. But the new version refuses to install. Logcat dump in debug
> mode from trying it on my own phone:
>
>
>
>
> 03-21 07:15:59.740: DEBUG/vending(1401): [14]
> LocalAssetDatabase.notifyListener(): -5180615462709890363 /
> DOWNLOAD_PENDING
> 03-21 07:15:59.890: INFO/vending(1401): [14] RequestDispatcher
> $RequestContext.(): Some requests use secure token but dont
> require SSL. Forcing SSL.
> 03-21 07:16:01.010: DEBUG/RC_WifiBroadcastReceiver(20453):  action
> android.net.wifi.SCAN_RESULTS
> 03-21 07:16:01.010: DEBUG/RC_WifiService(20453): notifyScanResults()
> 760811490
> 03-21 07:16:01.330: DEBUG/MobileDataStateTracker(158): hipri Received
> state= CONNECTED, old= CONNECTED, reason= (unspecified), apnTypeList=
> default,supl,mms
> 03-21 07:16:01.360: DEBUG/MobileDataStateTracker(158): replacing old
> mInterfaceName (rmnet0) with rmnet0 for supl
> 03-21 07:16:01.380: DEBUG/MobileDataStateTracker(158): replacing old
> mInterfaceName (rmnet0) with rmnet0 for mms
> 03-21 07:16:01.380: DEBUG/MobileDataStateTracker(158): default
> Received state= CONNECTED, old= CONNECTED, reason= (unspecified),
> apnTypeList= default,supl,mms
> 03-21 07:16:01.550: DEBUG/NetworkLocationProvider(158):
> onDataConnectionStateChanged 3
> 03-21 07:16:02.810: DEBUG/vending(1401): [87]
> AssetDownloader.downloadAndInstall(): Initiating Download for 1
> applications.
> 03-21 07:16:02.810: INFO/vending(1401): [87]
> DownloadManagerUtil.enqueueDownload(): Enqueue for download
> com.android.vending.util.DownloadManagerUtil$Request@43de9668
> 03-21 07:16:03.020: DEBUG/vending(1401): [87]
> LocalAssetDatabase.notifyListener(): -5180615462709890363 / null
> 03-21 07:16:03.460: DEBUG/vending(1401): [87]
> LocalAssetDatabase.notifyListener(): -5180615462709890363 /
> DOWNLOADING
> 03-21 07:16:06.820: DEBUG/dalvikvm(2573): GC_FOR_MALLOC freed 7137
> objects / 439928 bytes in 116ms
> 03-21 07:16:08.750: DEBUG/dalvikvm(2557): GC_EXPLICIT freed 328
> objects / 16528 bytes in 96ms
> 03-21 07:16:09.670: DEBUG/dalvikvm(158): GC_EXPLICIT freed 22964
> objects / 1049192 bytes in 284ms
> 03-21 07:16:10.100: INFO/vending(1401): [96] AssetDownloader
> $DownloadManagerBroadcastReceiver.startNextDownload(): Found Paused
> URI null
> 03-21 07:16:10.110: INFO/vending(1401): [96] AssetDownloader
> $DownloadManagerBroadcastReceiver.startNextDownload(): No more paused
> downloads.
> 03-21 07:16:10.110: DEBUG/vending(1401): [96] AssetDownloader
> $DownloadManagerBroadcastReceiver.handleDownloadCompletedAction(): Got
> a download completed intent.
> 03-21 07:16:10.260: DEBUG/vending(1401): [96]
> LocalAssetDatabase.notifyListener(): -5180615462709890363 / null
> 03-21 07:16:10.340: DEBUG/vending(1401): [97] AssetDownloader
> $DownloadManagerBroadcastReceiver.installFromUri(): Calling install
> uri=content://downloads/download/812 src=null
> asset=-5180615462709890363 (RobotMoose.TennisScore:8) [DOWNLOADING]
> name=Tennis Score last=TRUE
> 03-21 07:16:10.730: DEBUG/vending(1401): [97]
> LocalAssetDatabase.notifyListener(): -5180615462709890363 / INSTALLING
> 03-21 07:16:10.880: DEBUG/vending(1401): [97]
> VendingNotificationManager.showNotification(): Showing notification:
> [AssetID=-5180615462709890363, NotificationID=-1700280694,
> Title=Tennis Score, Message=Installing…]
> 03-21 07:16:11.260: DEBUG/MobileDataStateTracker(158): hipri Received
> state= CONNECTED, old= CONNECTED, reason= (unspecified), apnTypeList=
> default,supl,mms
> 03-21 07:16:11.280: DEBUG/MobileDataStateTracker(158): replacing old
> mInterfaceName (rmnet0) with rmnet0 for supl
> 03-21 07:16:11.280: DEBUG/MobileDataStateTracker(158): replacing old
> mInterfaceName (rmnet0) with rmnet0 for mms
> 03-21 07:16:11.290: DEBUG/MobileDataStateTracker(158): default
> Received state= CONNECTED, old= CONNECTED, reason= (unspecified),
> apnTypeList= default,supl,mms
> 03-21 07:16:11.650: DEBUG/dalvikvm(248): GC_FOR_MALLOC freed 10547
> objects / 534800 bytes in 334ms
> 03-21 07:16:11.760: DEBUG/dalvikvm(2708): GC_EXPLICIT freed 79
> objects / 4104 bytes in 321ms
> 03-21 07:16:11.820: DEBUG/NetworkLocationProvider(158):
> onDataConnectionStateChanged 3
> 03-21 07:16:11.860: DEBUG/VoldCmdListener(117): asec list
> 03-21 07:16:12.130: INFO/PackageHelper(2708): Size of container 2 MB
> 476117 bytes
> 03-21 07:16:12.130: DEBUG/VoldCmdListener(117): asec create smdl2tmp1
> 2 fat {} 10014
> 

Re: [android-developers] Re: TextView at the bottom of a Layout, like a status bar of sorts

2011-03-21 Thread Chris Stewart
The only point is that's what I've found to work, nothing more.  Perhaps I'm
not doing it correctly, but it's like pulling teeth trying to get layouts to
work like I want them to, so when I find something that works I'm hard
pressed to sit there for hours trying to optimize it 100%.

--
Chris Stewart
http://chriswstewart.com



On Tue, Mar 22, 2011 at 12:42 AM, Justin Anderson wrote:

> Maybe it is just me, but what is the point of putting a LinearLayout inside
> a RelativeLayout?  And for that matter, what is the point of having a
> RelativeLayout inside another RelativeLayout that contains only a single
> view?
>
> I don't know really know what the requirements of your app, but you should
> be able to achieve the same thing with just a single RelativeLayout and all
> your other fragments/views inside of that...
>
> One of the big advantages of RelativeLayout is that there is less need for
> nesting layouts...
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Mon, Mar 21, 2011 at 9:28 PM, Chris Stewart wrote:
>
>> I wanted to follow up on this question.  I got it working tonight by using
>> RelativeLayout.  The overall design is as such:
>>
>> RelativeLayout
>>  -- LinearLayout
>>-- Fragment A
>>-- Fragment B
>>-- Fragment C
>>  -- /LinearLayout
>>  -- RelativeLayout (with android:layout_alignParentBottom="true")
>>-- TextView
>>  -- /RelativeLayout
>> /RelativeLayout
>>
>> --
>> Chris Stewart
>> http://chriswstewart.com
>>
>>
>>
>> On Mon, Mar 21, 2011 at 4:07 PM, Chris Stewart wrote:
>>
>>> I'm working on a Honeycomb app and I'd like to have a scrolling ticker at
>>> the bottom of the screen.  I did something similar with a phone app, where I
>>> effectively had a LinearLayout that took up the bottom of the screen and
>>> contained a TextView inside of it.  I attempted to reuse that code in this
>>> situation and couldn't get the Layout or TextView to display.  The only real
>>> differences here are the use of Android 3.0 and fragments in the layout
>>> file.
>>>
>>> Unfortunately I'm at work, so I'm unable to post the specific code in
>>> question.  But, I wanted to see if anyone has already encountered this while
>>> working with Android 3.0/fragments or if you've seen an example somewhere
>>> online I can explore for answers.
>>>
>>> --
>>> 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
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: write tag with opengl on android

2011-03-21 Thread Nightwolf
If text is static then you need texture (picture) with label "Dog",
apply it to a quad (two triangles that form up a rectangle).

On Mar 21, 11:48 am, a a  wrote:
> Hi all,
>
>   How can i write a tag like string "Dog" on the picture. Can anyone
> paste his/her code on here?

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


Re: [android-developers] Re: TextView at the bottom of a Layout, like a status bar of sorts

2011-03-21 Thread Justin Anderson
Maybe it is just me, but what is the point of putting a LinearLayout inside
a RelativeLayout?  And for that matter, what is the point of having a
RelativeLayout inside another RelativeLayout that contains only a single
view?

I don't know really know what the requirements of your app, but you should
be able to achieve the same thing with just a single RelativeLayout and all
your other fragments/views inside of that...

One of the big advantages of RelativeLayout is that there is less need for
nesting layouts...

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


On Mon, Mar 21, 2011 at 9:28 PM, Chris Stewart wrote:

> I wanted to follow up on this question.  I got it working tonight by using
> RelativeLayout.  The overall design is as such:
>
> RelativeLayout
>  -- LinearLayout
>-- Fragment A
>-- Fragment B
>-- Fragment C
>  -- /LinearLayout
>  -- RelativeLayout (with android:layout_alignParentBottom="true")
>-- TextView
>  -- /RelativeLayout
> /RelativeLayout
>
> --
> Chris Stewart
> http://chriswstewart.com
>
>
>
> On Mon, Mar 21, 2011 at 4:07 PM, Chris Stewart wrote:
>
>> I'm working on a Honeycomb app and I'd like to have a scrolling ticker at
>> the bottom of the screen.  I did something similar with a phone app, where I
>> effectively had a LinearLayout that took up the bottom of the screen and
>> contained a TextView inside of it.  I attempted to reuse that code in this
>> situation and couldn't get the Layout or TextView to display.  The only real
>> differences here are the use of Android 3.0 and fragments in the layout
>> file.
>>
>> Unfortunately I'm at work, so I'm unable to post the specific code in
>> question.  But, I wanted to see if anyone has already encountered this while
>> working with Android 3.0/fragments or if you've seen an example somewhere
>> online I can explore for answers.
>>
>> --
>> 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
>

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

2011-03-21 Thread a a
may be we can ask this hero which is better, the game engine or
openGL? anyone know what's his facebook account?

2011/3/22 a a :
> a ha, i know this guy, he is the author with "replica island", he is a
> hero for many developer.
>
> This code write by openGL, not use game engine which provided by Riyad kalla.
>
>
> 2011/3/22 Miguel Morales :
>> Good place to start: http://www.youtube.com/watch?v=U4Bk5rmIpic
>>
>> On Mon, Mar 21, 2011 at 6:16 PM, a a  wrote:
>>>
>>> so, do you think your provider below url is a "bare bones" ?
>>>
>>> http://code.google.com/p/libgdx/
>>>
>>> 2011/3/21 Riyad Kalla :
>>> > Any game engine you look at will have a considerable code base... that
>>> > is like asking "I would like to do a GUI" and someone suggesting Swing
>>> > or SWT to you and you saying "My god the API is huge!"
>>> >
>>> > Yes... they are... they cover a lot. Everything from 3D/2D
>>> > abstractions to file I/O.
>>> >
>>> > libgdx has a good number of games in the market place, you can check
>>> > the "Showcase" forum for examples of Apps people are working on.
>>> >
>>> > AndEngine is another one and if you don't mind paying a licensing fee,
>>> > Unity I believe has a preview Android version, but it's not cheap.
>>> >
>>> > Alternatively, you can just hand-roll something yourself ontop of
>>> > Canvas and learn all the ins and outs first THEN find the game engine
>>> > that solves your biggest headaches for you, that way you don't waste
>>> > your time learning an engine that isn't making your life easier.
>>> >
>>> > If you are just learning, I always think learning the "bare bones"
>>> > approach to things first before learning a framework is best so you
>>> > understand who-does-what.
>>> >
>>> > Just my 2 cents.
>>> >
>>> > On Mar 21, 2:10 am, a a  wrote:
>>> >> 2011/3/2 Riyad :> In addition to TreKing's reply, you
>>> >> will want to decide if you are
>>> >> > going to hand draw this stuff or use OpenGL, I'm going to assume you
>>> >> > will be using OpenGL if you want lots of layers and spirtes moving
>>> >> > performantly across each other and possibly add some effects.
>>> >>
>>> >> > So the next part of your question is "how do I get started with
>>> >> > OpenGL" -- I'd suggest searching around for it, and you will probably
>>> >> > want to start with a good game engine that'll make your life easier;
>>> >> > some framework that makes loading images, animating them, etc. etc.
>>> >> > easier.
>>> >>
>>> >> > For that, I'd look at libgdx as a jumping off point.
>>> >> >http://code.google.com/p/libgdx/
>>> >>
>>> >> My god, this code is too large, as a new member game developer, it is
>>> >> very hard to understand.
>>> >>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> > The forums for the engine are fantastic:
>>> >> >http://www.badlogicgames.com/forum/
>>> >>
>>> >> > and the wiki is chalk full of information:
>>> >> >http://www.badlogicgames.com/wiki/index.php/Main_Page
>>> >>
>>> >> > If you have done Java 2D in depth before, a lot of that knowledge
>>> >> > gets
>>> >> > you off the ground pretty quick (as far as being familiar with how
>>> >> > graphic basics work, painting, etc.) if you have done very little
>>> >> > Java
>>> >> > and no Java 2D, you'll want to grab a good OpenGL ES book and start
>>> >> > from scratch. Just get familiar with things.
>>> >>
>>> >> > and after you get through the first few tutorials, write the next
>>> >> > Gears of War for Android, shoot for the moon!
>>> >>
>>> >> > On Feb 25, 9:43 pm, CONORxx  wrote:
>>> >> >> Is it possible to create a 2d, touch based game for android devices
>>> >> >> using Eclips and xml. And where about do new comers go to learn to
>>> >> >> write the xml code for android apps and games.
>>> >>
>>> >> > --
>>> >> > You received this message because you are subscribed to the Google
>>> >> > Groups "Android Developers" group.
>>> >> > To post to this group, send email to
>>> >> > android-developers@googlegroups.com
>>> >> > To unsubscribe from this group, 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=

Re: [android-developers] Re: 2d game development

2011-03-21 Thread a a
a ha, i know this guy, he is the author with "replica island", he is a
hero for many developer.

This code write by openGL, not use game engine which provided by Riyad kalla.


2011/3/22 Miguel Morales :
> Good place to start: http://www.youtube.com/watch?v=U4Bk5rmIpic
>
> On Mon, Mar 21, 2011 at 6:16 PM, a a  wrote:
>>
>> so, do you think your provider below url is a "bare bones" ?
>>
>> http://code.google.com/p/libgdx/
>>
>> 2011/3/21 Riyad Kalla :
>> > Any game engine you look at will have a considerable code base... that
>> > is like asking "I would like to do a GUI" and someone suggesting Swing
>> > or SWT to you and you saying "My god the API is huge!"
>> >
>> > Yes... they are... they cover a lot. Everything from 3D/2D
>> > abstractions to file I/O.
>> >
>> > libgdx has a good number of games in the market place, you can check
>> > the "Showcase" forum for examples of Apps people are working on.
>> >
>> > AndEngine is another one and if you don't mind paying a licensing fee,
>> > Unity I believe has a preview Android version, but it's not cheap.
>> >
>> > Alternatively, you can just hand-roll something yourself ontop of
>> > Canvas and learn all the ins and outs first THEN find the game engine
>> > that solves your biggest headaches for you, that way you don't waste
>> > your time learning an engine that isn't making your life easier.
>> >
>> > If you are just learning, I always think learning the "bare bones"
>> > approach to things first before learning a framework is best so you
>> > understand who-does-what.
>> >
>> > Just my 2 cents.
>> >
>> > On Mar 21, 2:10 am, a a  wrote:
>> >> 2011/3/2 Riyad :> In addition to TreKing's reply, you
>> >> will want to decide if you are
>> >> > going to hand draw this stuff or use OpenGL, I'm going to assume you
>> >> > will be using OpenGL if you want lots of layers and spirtes moving
>> >> > performantly across each other and possibly add some effects.
>> >>
>> >> > So the next part of your question is "how do I get started with
>> >> > OpenGL" -- I'd suggest searching around for it, and you will probably
>> >> > want to start with a good game engine that'll make your life easier;
>> >> > some framework that makes loading images, animating them, etc. etc.
>> >> > easier.
>> >>
>> >> > For that, I'd look at libgdx as a jumping off point.
>> >> >http://code.google.com/p/libgdx/
>> >>
>> >> My god, this code is too large, as a new member game developer, it is
>> >> very hard to understand.
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> > The forums for the engine are fantastic:
>> >> >http://www.badlogicgames.com/forum/
>> >>
>> >> > and the wiki is chalk full of information:
>> >> >http://www.badlogicgames.com/wiki/index.php/Main_Page
>> >>
>> >> > If you have done Java 2D in depth before, a lot of that knowledge
>> >> > gets
>> >> > you off the ground pretty quick (as far as being familiar with how
>> >> > graphic basics work, painting, etc.) if you have done very little
>> >> > Java
>> >> > and no Java 2D, you'll want to grab a good OpenGL ES book and start
>> >> > from scratch. Just get familiar with things.
>> >>
>> >> > and after you get through the first few tutorials, write the next
>> >> > Gears of War for Android, shoot for the moon!
>> >>
>> >> > On Feb 25, 9:43 pm, CONORxx  wrote:
>> >> >> Is it possible to create a 2d, touch based game for android devices
>> >> >> using Eclips and xml. And where about do new comers go to learn to
>> >> >> write the xml code for android apps and games.
>> >>
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups "Android Developers" group.
>> >> > To post to this group, send email to
>> >> > android-developers@googlegroups.com
>> >> > To unsubscribe from this group, 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
>
>
> --
> ~ Jeremiah:9:23-24
> Android 2D MMORPG: http://solrpg.com/ http://www.youtube.com/user/revoltingx
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group

Re: [android-developers] how to reload previous activity on back button click

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 10:49 PM, Ranveer  wrote:

> I want to reload the previous activity (history) on back button click.


http://developer.android.com/reference/android/app/Activity.html#StartingActivities

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] how to reload previous activity on back button click

2011-03-21 Thread Ranveer

Dear all,

I want to reload the previous activity (history) on back button click. 
Right now When I am pressing back (Phone) it going to previous activity 
but showing from history.

So every time I click back I want to reload the history page.

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] Re: installing sdk

2011-03-21 Thread Chris Stewart
What version of Eclipse are you using?

Did you start with this page (http://developer.android.com/sdk/index.html),
download the package, and follow the steps below?  Then, proceed to the SDK
install page (http://developer.android.com/sdk/installing.html)?  Which step
are you stuck at?

--
Chris Stewart
http://chriswstewart.com



On Mon, Mar 21, 2011 at 12:38 PM, learner1980 wrote:

> Hi,
>
> I have recently downloaded the SDK starter pack 'android-sdk_r10-
> windows' for Android development. I have Windows Vista OS. But now
> when I am starting the SDK Manager to install the Platform tools i am
> getting the below erorrs -
>
> XML verification failed for
> https://dl-ssl.google.com/android/repository/repository.xml.
> Line -१:-१, Error: org.xml.sax.SAXParseException: schema_reference.4:
> Failed to read schema document 'null', because 1) could not find the
> document; 2) the document could not be read; 3) the root element of
> the document is not .
>
> XML verification failed for
> https://dl-ssl.google.com/android/repository/addons_list.xml.
>
> Line -१:-१, Error: org.xml.sax.SAXParseException: schema_reference.4:
> Failed to read schema document 'null', because 1) could not find the
> document; 2) the document could not be read; 3) the root element of
> the document is not .
>
> I also tried the Force settings in Settings -> Misc, but it too didn't
> help.
>
> Can someone throw some pointers. I am a bit stuck as I have downloaded
> the Starter pack and not able to figure out what could be wrong.
>
> Thanks in advance.
>
> On Feb 26, 2:49 am, Marcin Orlowski  wrote:
> > On 25 February 2011 14:46, Ashwin Menkudle 
> wrote:
> >
> > > i am trying to install addon after install of sdk.
> > > i am behind firewall there is no support for https
> >
> > See settings "Tag", 1st checkbox
> >
> > --
> > Regards,
> > Marcin
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Android Development Kit

2011-03-21 Thread Chris Stewart
You'll want to start here for the SDK and tools:
http://developer.android.com/index.html.  This list is a good place for well
thought out questions.  General or vague questions will likely go
unanswered.

--
Chris Stewart
http://chriswstewart.com



On Mon, Mar 21, 2011 at 8:09 AM, Samir Ghodasara
wrote:

> Hi ,
>
> I am a new user of Android and searching for the Android development board
> kit, in Google i can find some names/vendors but not on the Android
> developer website.
>
> Searching for some info/doc to get the concrete information (which one is
> good ) for Android.basic tutorials for start-up.
>
> We wanted to build our own Android tablet device with very specific
> application and theme , start-up screen customization.
>
> Could you tell me the best way to start and which way to proceed on this.
>
> Thanks in Advance.
>
> Regards,
> Samir.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Android Application Sold to 100,000 Users

2011-03-21 Thread Chris Stewart
> Individual Developer may not have that much resources as a company
> have.
> not only for marketing but also a work done by individual and a Team
> might result in a concrete application.
> I guess...so

I must interject here... :)

>From experience, I can say very confidently that a single developer with a
genuine passion for building apps can do fantastic work if not better than
your typical, or even solid, corporate team can.  Frankly, doing this is
more fun than an average day at work.  These apps line our individual
pockets with customer dollars and we put serious effort into making them the
best they can be.

--
Chris Stewart
http://chriswstewart.com



On Sun, Mar 20, 2011 at 11:59 PM, varinag gold wrote:

> > What difference does it make?
>
> Individual Developer may not have that much resources as a company
> have.
> not only for marketing but also a work done by individual and a Team
> might result in a concrete application.
> I guess...so
>
> On Mar 21, 11:37 am, TreKing  wrote:
> > On Sun, Mar 20, 2011 at 10:18 PM, varinag gold  >wrote:
> >
> > > I'd like to know if any one of you (Individual Developer) have crossed
> this
> > > limit to sell android application to 100,000 users? If so how long it
> took
> > > to cross this limit .
> >
> > What difference does it make?
> >
> >
> -
> > 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

Re: [android-developers] NFC Question

2011-03-21 Thread Zhihong GUO
hi all, the exception is due to the intent action, it is
NfcAdapter.ACTION_NDEF_DISCOVERED, not ACTION_TAG_DISCOVERED, which is
listened by tag or tagwriter app.

2011/3/22 Zhihong GUO 

> Hi all, I have the same issue. I write the tag by Ndef class, but the tag
> can't be read by any readers application, it cause them crash.
>
> The source code is below:
> ...
> Tag tagFromIntent = null;
>
> void writeTag(){
> NdefRecord record = new NdefRecord(NdefRecord.TNF_WELL_KNOWN,
> NdefRecord.RTD_TEXT, new byte[0], "this is a write tag".getBytes());
> try {
> NdefRecord[] records = {record};
> NdefMessage message = new NdefMessage(records);
> Ndef tag = Ndef.get(tagFromIntent);
> tag.connect();
> if(tag.isConnected() && tag.isWritable()){
> tag.writeNdefMessage(message);
> tag.close();
> Log.d(TAG, "write tag successfully");
> }else{
> Log.d(TAG, "the tag is not connected or not writeable");
> }
> }
> catch (Exception e){
> //do error handling
> e.printStackTrace();
> }
> }
>
> public void onNewIntent(Intent intent) {
> tagFromIntent = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
> }
>
> the log write tag successfully print out.
>
>
> 2011/3/17 Nick Pelly 
>
>> Hi Manuel,
>>
>> You can write to a formatted card using the Ndef technology class (as long
>> as it was not made read-only).
>>
>> Nick
>>
>> On Tue, Mar 15, 2011 at 4:50 PM, Manuel Roman wrote:
>>
>>> Hi,
>>>
>>> I am writing an NFC application on Gingerbread 2.3.3. The application
>>> writes and reads data to and from tags. I am using the white plastic
>>> tags
>>> that look like a badge.
>>>
>>> I have been able to write data to the tags. However, it only works when
>>> the
>>> tag is unformatted. That is, I get a brand new tag, use my app and write
>>> data using NDEFFormatable. Data is properly written and I can see it
>>> with
>>> any reader app. However, when I try to write again into the same
>>> tag, NDEFFormatable.get() returns null so I cannot write to it. The
>>> reason is
>>> because after I write into the tag, the second time I try to write again
>>> the tag
>>> only displays 3 technologies and NDEFFormatable is not one of them. Do
>>> you
>>> know why the tag does not show NDEFFormatable as one of its
>>> technologies?
>>> The only technologies it shows at this point is MyFareClassic and I
>>> believe NfcA.
>>>
>>> Using the NXP tag writer app I can re-write the tags but they show up as
>>> MifareClassic.
>>>
>>> Manuel
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] Can somebody suggest the best book or online resource for beginning android apps development?

2011-03-21 Thread Chris Stewart
I sound like a fanboy, and I suppose it's true in many ways, but I would
recommend Mark's books on Android development: http://commonsware.com.  In
addition to the books, he's here on the list constantly with a number of
other helpful regulars providing great information.

--
Chris Stewart
http://chriswstewart.com



On Mon, Mar 21, 2011 at 10:39 PM, sogan xie  wrote:

> http://www.android.com/
>
>
>
> On Mon, Mar 21, 2011 at 7:51 PM, Narendra Padala <
> checksumandr...@gmail.com> wrote:
>
>> Hi Flocks,
>>
>> Can somebody suggest the best book or online resource for beginning
>> android apps development?
>>
>> Regard's
>> Narendra
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> B.R.
> Sogan.X
> 
> Mail:soga...@gmail.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: Service stops after 10 minutes of standby

2011-03-21 Thread Chris Stewart
As Nick mentioned, you'll want to look into a wake lock.  I would highly
recommend Mark's implementation with WakefulIntentService (
https://github.com/commonsguy/cwac-wakeful).  I'm using it in my app with no
issues at all.

--
Chris Stewart
http://chriswstewart.com



On Mon, Mar 21, 2011 at 11:14 PM, Roger Podacter wrote:

> I think there is something extra that needs to be added to keep your
> service running in deep sleep standby. Cause my service also stops
> running on my nexus one once the phone goes into deep sleep. My
> service actually takes 2 second sample readings of battery current so
> it would be nice to see standby readings.
>
> On Mar 21, 8:05 pm, Nick Kulikaev  wrote:
> > Hi,
> > You probably need to obtain a wake lock to keep your service running
> > if you want to stick to the design you've already made, but i guess
> > what you are trying to do could be also done with  alarm manager which
> > can wake you up whenever you want. This can save you some battery.
> >
> > Nick
> >
> > On Mar 21, 1:56 am, stefan jakober  wrote:
> >
> >
> >
> > > Hey there,
> >
> > > I've got a wired problem. I've got a tracking service which sends geo-
> > > data to a server every 5 seconds.
> > > When I run this service on the HTC Wildfire, there are no problems at
> > > all (even when the phone goes standby), but when I use the HTC Desire,
> > > the service seems to stop after 10 minutes standby though there is no
> > > problem with the service when the phone's active.
> >
> > > I will try to figure out the problem with testing some other phones,
> > > but you guys might have an idea where the problem is and I would be so
> > > thankful for every kind of help. I'm stuck on this problem for weeks.
> >
> > > thank you
> > > stefan
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: TextView at the bottom of a Layout, like a status bar of sorts

2011-03-21 Thread Chris Stewart
I wanted to follow up on this question.  I got it working tonight by using
RelativeLayout.  The overall design is as such:

RelativeLayout
 -- LinearLayout
   -- Fragment A
   -- Fragment B
   -- Fragment C
 -- /LinearLayout
 -- RelativeLayout (with android:layout_alignParentBottom="true")
   -- TextView
 -- /RelativeLayout
/RelativeLayout

--
Chris Stewart
http://chriswstewart.com



On Mon, Mar 21, 2011 at 4:07 PM, Chris Stewart wrote:

> I'm working on a Honeycomb app and I'd like to have a scrolling ticker at
> the bottom of the screen.  I did something similar with a phone app, where I
> effectively had a LinearLayout that took up the bottom of the screen and
> contained a TextView inside of it.  I attempted to reuse that code in this
> situation and couldn't get the Layout or TextView to display.  The only real
> differences here are the use of Android 3.0 and fragments in the layout
> file.
>
> Unfortunately I'm at work, so I'm unable to post the specific code in
> question.  But, I wanted to see if anyone has already encountered this while
> working with Android 3.0/fragments or if you've seen an example somewhere
> online I can explore for answers.
>
> --
> 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

[android-developers] Gmail loading spinner in Honeycomb

2011-03-21 Thread Chris Stewart
In the Gmail client for Honeycomb, I've noticed that when you select an
email there's a brief blue progress circle that spins while the content is
loaded in the content fragment.  I'd like to implement similar functionality
for a WebView fragment in my app.  Is this something available to the rest
of the system, or was it specifically built into the Gmail client?

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

[android-developers] Re: Canvas frame rate very choppy in Live Wallpaper

2011-03-21 Thread Peter Webb
I don't think OpenGL will help.

I use canvas.translate and canvas.rotate extensively in my wallpaper,
which runs very smoothly. AFAIK these commands just set mostly
hardware flags for where to draw, and appear to execute
instantaneously.

You haven't posted any code, but I would make a bet on why it is
running at 3fps.

You are displaying images. I bet you do a jpeg rendering every time
through your animation loop, and this is what is killing your
performance.

Draw the image to a bitmap, only once at the start (when a new image
is first to be displayed). Persist it for the liefetime of the
animation loop. Only do another jpeg rendering when you have a new
image to display.

In your animation loop:

Translate the canvas
Draw the bitmap
Translate the canvas back

If you have checked and you are *not* doing jpeg rendering in your
animation loop then you should find out what line is causing your 300
mS delay (shouldn't be too hard!) and fix that.

Peter Webb




On Mar 22, 7:58 am, Jeffrey  wrote:
> I am not getting any speed improvements over just changing the top/
> left coordinates of the .drawbitmap() command. I'm going to look into
> using OpenGL as I think part of my problem is the (relatively) low
> resolution makes even fluid movement seem choppy when it's moving by 1
> pixel increments.
>
> On Mar 20, 11:35 pm, Peter Webb  wrote:
>
>
>
> > Call canvas.translate(-x), draw, then call canvas.translate(x)
>
> > You are moving the location on the canvas underneath where you draw,
> > after you have drawn whatever you need to move the canvas back.
>
> > On Mar 21, 8:47 am, Jeffrey  wrote:
>
> > > Is there a way around having to call canvas.drawbitmap() every time?
> > > And if I call canvas.translate() after drawing the image doesn't move,
> > > it instead moves everything that would draw *after* the call to
> > > canvas.translate().
>
> > > Thank you for your help so far, and I'm hoping you have just a little
> > > bit left in you :)
>
> > > On Mar 20, 9:12 am, Riyad Kalla  wrote:
>
> > > > Jeffrey,
>
> > > > To what Peter said, mobile devices are very fill-rate-limited (at
> > > > least these current gen of phones) so depending on how you are
> > > > repainting that image over and over and over again to the Canvas, that
> > > > could explain the speed issue.
>
> > > > If you tried a tiny little 16x16 icon and it went much faster with the
> > > > same code, then I think you've found your culprit.
>
> > > > Regardless, Peter's approach sounds like the right way; upload image
> > > > data to the GPU one, then just move your "view" of it around in a
> > > > circle, panning across the image.
>
> > > > On Mar 19, 3:07 pm, Jeffrey  wrote:
>
> > > > > I'm trying to make a simple (or so I thought) live wallpaper that
> > > > > takes an image and moves it slowly in a circular motion, to make the
> > > > > picture seem less static and more like looking out a window. I took
> > > > > the live wallpaper tutorial from the SDK and stripped it down to the
> > > > > bare bones so I could add to it. But the issue is that no matter what
> > > > > size the image I'm moving, or what format (drawable or bitmap), it is
> > > > > only getting about 3 fps.
>
> > > > > I don't know what to do to make this run faster, I have very limited
> > > > > programming knowledge so I don't know if I'm missing something stupid.
>
> > > > > Also, this is the code I'm using to calculate the circular movement:
>
> > > > > int NewX = (int) (OffsetX + Math.sin(Dist)*19);
> > > > > int NewY = (int) (OffsetY + Math.cos(Dist)*19);
>
> > > > > where Dist is the speed it's moving and 19 is the radius of the
> > > > > circle.
>
> > > > > Is there an easier way? I looked into Tween animation but I don't know
> > > > > how I would implement my circle code into it.- Hide quoted text -
>
> > > - Show quoted text -- 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: Service stops after 10 minutes of standby

2011-03-21 Thread Roger Podacter
I think there is something extra that needs to be added to keep your
service running in deep sleep standby. Cause my service also stops
running on my nexus one once the phone goes into deep sleep. My
service actually takes 2 second sample readings of battery current so
it would be nice to see standby readings.

On Mar 21, 8:05 pm, Nick Kulikaev  wrote:
> Hi,
> You probably need to obtain a wake lock to keep your service running
> if you want to stick to the design you've already made, but i guess
> what you are trying to do could be also done with  alarm manager which
> can wake you up whenever you want. This can save you some battery.
>
> Nick
>
> On Mar 21, 1:56 am, stefan jakober  wrote:
>
>
>
> > Hey there,
>
> > I've got a wired problem. I've got a tracking service which sends geo-
> > data to a server every 5 seconds.
> > When I run this service on the HTC Wildfire, there are no problems at
> > all (even when the phone goes standby), but when I use the HTC Desire,
> > the service seems to stop after 10 minutes standby though there is no
> > problem with the service when the phone's active.
>
> > I will try to figure out the problem with testing some other phones,
> > but you guys might have an idea where the problem is and I would be so
> > thankful for every kind of help. I'm stuck on this problem for weeks.
>
> > thank you
> > stefan

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

2011-03-21 Thread TreKing
On Sun, Mar 20, 2011 at 6:08 PM, g0m3z  wrote:

> I'm wondering whether there's a way to create custom tiles for
> android google maps app, kind of like the MapBox tool for the google maps
> API.
>

You can add an overlay that does custom drawing over the default tiles set.


> Or does it cause a licencing issue for the maps app?
>

Read the terms.

-
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: Service stops after 10 minutes of standby

2011-03-21 Thread Nick Kulikaev
Hi,
You probably need to obtain a wake lock to keep your service running
if you want to stick to the design you've already made, but i guess
what you are trying to do could be also done with  alarm manager which
can wake you up whenever you want. This can save you some battery.

Nick

On Mar 21, 1:56 am, stefan jakober  wrote:
> Hey there,
>
> I've got a wired problem. I've got a tracking service which sends geo-
> data to a server every 5 seconds.
> When I run this service on the HTC Wildfire, there are no problems at
> all (even when the phone goes standby), but when I use the HTC Desire,
> the service seems to stop after 10 minutes standby though there is no
> problem with the service when the phone's active.
>
> I will try to figure out the problem with testing some other phones,
> but you guys might have an idea where the problem is and I would be so
> thankful for every kind of help. I'm stuck on this problem for weeks.
>
> thank you
> stefan

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

2011-03-21 Thread Zhihong GUO
Hi all, I have the same issue. I write the tag by Ndef class, but the tag
can't be read by any readers application, it cause them crash.

The source code is below:
...
Tag tagFromIntent = null;

void writeTag(){
NdefRecord record = new NdefRecord(NdefRecord.TNF_WELL_KNOWN,
NdefRecord.RTD_TEXT, new byte[0], "this is a write tag".getBytes());
try {
NdefRecord[] records = {record};
NdefMessage message = new NdefMessage(records);
Ndef tag = Ndef.get(tagFromIntent);
tag.connect();
if(tag.isConnected() && tag.isWritable()){
tag.writeNdefMessage(message);
tag.close();
Log.d(TAG, "write tag successfully");
}else{
Log.d(TAG, "the tag is not connected or not writeable");
}
}
catch (Exception e){
//do error handling
e.printStackTrace();
}
}

public void onNewIntent(Intent intent) {
tagFromIntent = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
}

the log write tag successfully print out.

2011/3/17 Nick Pelly 

> Hi Manuel,
>
> You can write to a formatted card using the Ndef technology class (as long
> as it was not made read-only).
>
> Nick
>
> On Tue, Mar 15, 2011 at 4:50 PM, Manuel Roman wrote:
>
>> Hi,
>>
>> I am writing an NFC application on Gingerbread 2.3.3. The application
>> writes and reads data to and from tags. I am using the white plastic tags
>> that look like a badge.
>>
>> I have been able to write data to the tags. However, it only works when
>> the
>> tag is unformatted. That is, I get a brand new tag, use my app and write
>> data using NDEFFormatable. Data is properly written and I can see it with
>> any reader app. However, when I try to write again into the same
>> tag, NDEFFormatable.get() returns null so I cannot write to it. The reason
>> is
>> because after I write into the tag, the second time I try to write again
>> the tag
>> only displays 3 technologies and NDEFFormatable is not one of them. Do
>> you
>> know why the tag does not show NDEFFormatable as one of its technologies?
>> The only technologies it shows at this point is MyFareClassic and I
>> believe NfcA.
>>
>> Using the NXP tag writer app I can re-write the tags but they show up as
>> MifareClassic.
>>
>> Manuel
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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: Activity lifecycle... still a mystery to me

2011-03-21 Thread DulcetTone
My app responds to speech commands.

I want the behavior to be that

1.  if back is hit on my initial activity, it exits.
2.  My app has a few sub-activities it may launch on user speech- or
GUI input
3.  if home is hit on ANY of my activities, I want all of them to
finish.

That's basically it.
Why I want this is uninteresting... few users of the app would find
the desired behavior anything other than the one they'd want.

It's possible that I could get some of this to happen by use of the
activity flags/modes (single-top, etc), but their documentation also
reads like Sanskrit after 10 reads through.

tone

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

2011-03-21 Thread PatternMusic
The Honeycomb emulator is reportedly quite slow on all systems. Your laptop is 
probably fine. You should probably spring for a real Xoom. The Wifi-only model 
is due in US stores by the end of March. I can vouch that the 3G model is quite 
nice and works fine for development.

- Richard Lawler

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

2011-03-21 Thread sogan xie
A good Application, I like it.

On Mon, Mar 21, 2011 at 7:36 PM, francois jacob <
francois.jacob.he...@gmail.com> wrote:

> Hi there,
>
>  I'm a french android developer. I've published an app in the market
> (DRAWTOOLS). I know french websites where to publish test and reviews
> of my app, but i don't know for other countries. That's not so easy to
> find... So I'm looking for some people who can help give me links to
> such websites, and can help me to publish on those sites (when not in
> english language).
>
>  Then I could help you for french publishing and french translation
> for your app if you need. I think this could be interresting for both
> of us.
>
> Here's the link for my app:
> https://market.android.com/details?id=com.zarathoustroy.drawTools
>
> Thanks in advance,
> François
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
B.R.
Sogan.X

Mail:soga...@gmail.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] Can somebody suggest the best book or online resource for beginning android apps development?

2011-03-21 Thread sogan xie
http://www.android.com/


On Mon, Mar 21, 2011 at 7:51 PM, Narendra Padala
wrote:

> Hi Flocks,
>
> Can somebody suggest the best book or online resource for beginning android
> apps development?
>
> Regard's
> Narendra
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
B.R.
Sogan.X

Mail:soga...@gmail.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] RecognizerIntent, free-form, returning "ok" for all input

2011-03-21 Thread DulcetTone
A user, running

Google Services Framework ver. 2.2.1
Voice Search ver.  2.0.2

finds that my app's use of the RecognizerIntent for voice-to-text
returns "ok" no matter what he says.  The same code, on my test phones
(running VS 1.5.0 and 1.6.0) produce plausible text versions of what I
said.

What could cause this?

tone

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


Re: [android-developers] Android Application Sold to 100,000 Users

2011-03-21 Thread sogan xie
Hi,
Maybe the first thing you want to consider is the popular degree of your
application. And make sure your application has some special features in.

On Mon, Mar 21, 2011 at 11:18 AM, varinag gold wrote:

> Hi Guys,
>
> I'd like to know if any one of you (Individual Developer) have crossed
> this limit to sell android application to 100,000 users? If so how
> long it took to cross this limit .
>
> I plan to put my application in the market soon for all countries.
>
> Kind regards,
> varinag
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
B.R.
Sogan.X

Mail:soga...@gmail.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: Android Application Sold to 100,000 Users

2011-03-21 Thread brian purgert
86 apps have sold over 50,000, correct me if im wrong... what is your app
anyways that really will determin it
On Mar 21, 2011 10:02 PM, "Anu Nigam"  wrote:
> I looked at this to get an idea of distribution of app downloads.
> It's not the most accurate, but it shows you how hard it can be to get
> to 100K
> http://www.androlib.com/appstats.aspx
>
> Anu Nigam
>
> On Mar 21, 9:06 am, nemik  wrote:
>> I think the general trend is that you won't make much money; though
>> you never know until you try. Remember that all those huge successes
>> you read about are outliers. The majority of apps just sorta get by or
>> flop. Just throw your best hat into the ring and see what happens.
>> What other kind of answer are you looking for?
>>
>> On Mar 20, 11:03 pm, varinag gold  wrote:
>>
>> > > You realize this is going to vary wildly between different apps and
will
>> > > give you absolutely no indication how your own app will perform ...
right?
>>
>> > I agree with it but I want to see general trend of Android Market and
>> > users for priced applications.
>>
>> > On Mar 21, 11:48 am, TreKing  wrote:
>>
>> > > On Sun, Mar 20, 2011 at 10:43 PM, varinag gold wrote:
>>
>> > > > I am looking data for applications with some price tag such as 1.00
USD or
>> > > > 0.99 USD.
>> > > > with a market access all over the world (provided
selling/purchasing is
>> > > > permitted in those countries).
>>
>> > > You realize this is going to vary wildly between different apps and
will
>> > > give you absolutely no indication how your own app will perform ...
right?
>>
>> > >
---
--
>> > > 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

Re: [android-developers] Re: Hi... Flocks

2011-03-21 Thread sogan xie
Maybe he want to say " Hi Folks", a typo.


On Tue, Mar 22, 2011 at 10:20 AM, Zsolt Vasvari  wrote:

> Flocks?
>
> On Mar 21, 7:34 pm, Narendra Padala  wrote:
> > Hi..Flocks,
> >
> >   I am new to android, up to now i am java/j2ee/php/cakephp web
> > developer now i move on to android, please give some suggestion to
> > learn very quickly Android,
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
B.R.
Sogan.X

Mail:soga...@gmail.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] Hi... Flocks

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 6:34 AM, Narendra Padala
wrote:

> please give some suggestion to learn very quickly Android
>

RTM, very quickly.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Hi... Flocks

2011-03-21 Thread Zsolt Vasvari
Flocks?

On Mar 21, 7:34 pm, Narendra Padala  wrote:
> Hi..Flocks,
>
>       I am new to android, up to now i am java/j2ee/php/cakephp web
> developer now i move on to android, please give some suggestion to
> learn very quickly Android,

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


[android-developers] bluetooth in emulator

2011-03-21 Thread yash
Hi ,


we require to establish bluetooth connection,using 2.2 sdk. The
problem is

BluetoothAdapter mBluetoothAdapter =
BluetoothAdapter.getDefaultAdapter(); in emultor.

The above line of code returns NULL, mBluetoothAdapter is null,

so then please guide me on how to get the bluetooth adapter ..

We are stuck here for more than a day, help needed.

Thanks..

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


[android-developers] Android 3.0 Starter Pack - XML Verification Error

2011-03-21 Thread learner1980
Hi,

I have recently downloaded the SDK starter pack 'android-sdk_r10-
windows' for Android development. I have Windows Vista OS. But now
when I am starting the SDK Manager to install the Platform tools i am
getting the below erorrs -

XML verification failed for 
https://dl-ssl.google.com/android/repository/repository.xml.
Line -१:-१, Error: org.xml.sax.SAXParseException: schema_reference.4:
Failed to read schema document 'null', because 1) could not find the
document; 2) the document could not be read; 3) the root element of
the document is not .

XML verification failed for 
https://dl-ssl.google.com/android/repository/addons_list.xml.

Line -१:-१, Error: org.xml.sax.SAXParseException: schema_reference.4:
Failed to read schema document 'null', because 1) could not find the
document; 2) the document could not be read; 3) the root element of
the document is not .

I also tried the Force settings in Settings -> Misc, but it too didn't
help.

Can someone throw some pointers. I am a bit stuck as I have downloaded
the Starter pack and not able to figure out what could be wrong.

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] Need help on T-mobile HTC G1 (Developer Unlock code)

2011-03-21 Thread clarence
Can somebody help me with a Developer Unlock code for T-mobile HTC G1.
It always shows me "Emergency Calls only".
I just need to access the phone offline.
I was using this phone earlier offline but since the last factory
reset i did, the phone seems to be locked.
Can somebody help me on this.

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


[android-developers] "Package file was not signed correctly" error

2011-03-21 Thread Anders
My application refuses to install from the Market since I uploaded a
new version.

First, I had trouble finding the right keystore again after a few
months of not touching the app. Market finally stopped halting the
uploads with messages about the wrong signature, so everything seemed
okay. But the new version refuses to install. Logcat dump in debug
mode from trying it on my own phone:




03-21 07:15:59.740: DEBUG/vending(1401): [14]
LocalAssetDatabase.notifyListener(): -5180615462709890363 /
DOWNLOAD_PENDING
03-21 07:15:59.890: INFO/vending(1401): [14] RequestDispatcher
$RequestContext.(): Some requests use secure token but dont
require SSL. Forcing SSL.
03-21 07:16:01.010: DEBUG/RC_WifiBroadcastReceiver(20453):  action
android.net.wifi.SCAN_RESULTS
03-21 07:16:01.010: DEBUG/RC_WifiService(20453): notifyScanResults()
760811490
03-21 07:16:01.330: DEBUG/MobileDataStateTracker(158): hipri Received
state= CONNECTED, old= CONNECTED, reason= (unspecified), apnTypeList=
default,supl,mms
03-21 07:16:01.360: DEBUG/MobileDataStateTracker(158): replacing old
mInterfaceName (rmnet0) with rmnet0 for supl
03-21 07:16:01.380: DEBUG/MobileDataStateTracker(158): replacing old
mInterfaceName (rmnet0) with rmnet0 for mms
03-21 07:16:01.380: DEBUG/MobileDataStateTracker(158): default
Received state= CONNECTED, old= CONNECTED, reason= (unspecified),
apnTypeList= default,supl,mms
03-21 07:16:01.550: DEBUG/NetworkLocationProvider(158):
onDataConnectionStateChanged 3
03-21 07:16:02.810: DEBUG/vending(1401): [87]
AssetDownloader.downloadAndInstall(): Initiating Download for 1
applications.
03-21 07:16:02.810: INFO/vending(1401): [87]
DownloadManagerUtil.enqueueDownload(): Enqueue for download
com.android.vending.util.DownloadManagerUtil$Request@43de9668
03-21 07:16:03.020: DEBUG/vending(1401): [87]
LocalAssetDatabase.notifyListener(): -5180615462709890363 / null
03-21 07:16:03.460: DEBUG/vending(1401): [87]
LocalAssetDatabase.notifyListener(): -5180615462709890363 /
DOWNLOADING
03-21 07:16:06.820: DEBUG/dalvikvm(2573): GC_FOR_MALLOC freed 7137
objects / 439928 bytes in 116ms
03-21 07:16:08.750: DEBUG/dalvikvm(2557): GC_EXPLICIT freed 328
objects / 16528 bytes in 96ms
03-21 07:16:09.670: DEBUG/dalvikvm(158): GC_EXPLICIT freed 22964
objects / 1049192 bytes in 284ms
03-21 07:16:10.100: INFO/vending(1401): [96] AssetDownloader
$DownloadManagerBroadcastReceiver.startNextDownload(): Found Paused
URI null
03-21 07:16:10.110: INFO/vending(1401): [96] AssetDownloader
$DownloadManagerBroadcastReceiver.startNextDownload(): No more paused
downloads.
03-21 07:16:10.110: DEBUG/vending(1401): [96] AssetDownloader
$DownloadManagerBroadcastReceiver.handleDownloadCompletedAction(): Got
a download completed intent.
03-21 07:16:10.260: DEBUG/vending(1401): [96]
LocalAssetDatabase.notifyListener(): -5180615462709890363 / null
03-21 07:16:10.340: DEBUG/vending(1401): [97] AssetDownloader
$DownloadManagerBroadcastReceiver.installFromUri(): Calling install
uri=content://downloads/download/812 src=null
asset=-5180615462709890363 (RobotMoose.TennisScore:8) [DOWNLOADING]
name=Tennis Score last=TRUE
03-21 07:16:10.730: DEBUG/vending(1401): [97]
LocalAssetDatabase.notifyListener(): -5180615462709890363 / INSTALLING
03-21 07:16:10.880: DEBUG/vending(1401): [97]
VendingNotificationManager.showNotification(): Showing notification:
[AssetID=-5180615462709890363, NotificationID=-1700280694,
Title=Tennis Score, Message=Installing…]
03-21 07:16:11.260: DEBUG/MobileDataStateTracker(158): hipri Received
state= CONNECTED, old= CONNECTED, reason= (unspecified), apnTypeList=
default,supl,mms
03-21 07:16:11.280: DEBUG/MobileDataStateTracker(158): replacing old
mInterfaceName (rmnet0) with rmnet0 for supl
03-21 07:16:11.280: DEBUG/MobileDataStateTracker(158): replacing old
mInterfaceName (rmnet0) with rmnet0 for mms
03-21 07:16:11.290: DEBUG/MobileDataStateTracker(158): default
Received state= CONNECTED, old= CONNECTED, reason= (unspecified),
apnTypeList= default,supl,mms
03-21 07:16:11.650: DEBUG/dalvikvm(248): GC_FOR_MALLOC freed 10547
objects / 534800 bytes in 334ms
03-21 07:16:11.760: DEBUG/dalvikvm(2708): GC_EXPLICIT freed 79
objects / 4104 bytes in 321ms
03-21 07:16:11.820: DEBUG/NetworkLocationProvider(158):
onDataConnectionStateChanged 3
03-21 07:16:11.860: DEBUG/VoldCmdListener(117): asec list
03-21 07:16:12.130: INFO/PackageHelper(2708): Size of container 2 MB
476117 bytes
03-21 07:16:12.130: DEBUG/VoldCmdListener(117): asec create smdl2tmp1
2 fat {} 10014
03-21 07:16:12.210: DEBUG/MediaScannerService(2573):
IMediaScannerService.scanFile: /mnt/sdcard/download/downloadfile-9.apk
mimeType: application/vnd.android.package-archive
03-21 07:16:12.270: INFO//system/bin/newfs_msdos(117): /system/bin/
newfs_msdos: warning, /dev/block/dm-22 is not a character device
03-21 07:16:12.270: INFO//system/bin/newfs_msdos(117): /system/bin/
newfs_msdos: Skipping mount checks
03-21 07:16:12.280: INFO//system/bin/newfs_msdos(117): Bogus heads
from kernel - setting sane value
03

Re: [android-developers] Android App Tracker - market rank tool

2011-03-21 Thread Marc Lester Tan
Hi, looks good. I've built a similar one a few months ago using the
andorid-market-api library.

Check it out http://appalert.co


On Mon, Mar 21, 2011 at 12:42 PM, Corey Ledin, LLC
wrote:

> Hi All,
>
> I have yet to contribute to this group just start off by saying hi and
> if you haven't heard of me I developed Beer Pong Free for the android
> and iPhone etc. Recently I was trying to find a decent app rank
> website for the android like that of all of iPhone pones with not
> really any luck besides that one app. So I said what the heck and
> built my own...
> It is still in beta / testing phase since i only started the project
> with my partner 4 days ago lol. But go check it out!
>
> http://androidapptracker.com
>
> Let me know what you think and if you have any ideas.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Cheers,

*Marc Lester Tan *

Singapore #: +6597896575

http://www.appalert.co
http://www.appcellar.com
http://moonphase.pendukosoftware.com
http://blogs.marctan.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] Android WebView with CSS modification of hr tag

2011-03-21 Thread Dale
I am working on an app which needs to display some dynamically queried
HTML content, including CSS.
WebView seems to be the best implementation for this type of work.

I ran into an error when testing it out, and tracked it down to the
following css tag:

hr{width:100%!important}


Android WebView seems to be incapable of displaying any html that
includes this line.
Some research shows that the  attribute was depricated
(link: http://www.w3schools.com/tags/att_hr_width.asp), but it works
on all browsers.

Below is some html, including this line.  It will render fine in any
browser.


hr{width:100%!important}

Some text



And, in Android:

String exampleCSS = "" +
"hr{width:100%!important}" +
"" +
"Some text" +
"";
WebView webView = (WebView) findViewById(R.id.web_html_about);
webView.loadData(exampleCSS, "text/html", "utf-8");


The result is a "Web page not available" error in the webview.


Is this a known issue due to deprecation?  Is it a bug with WebView?
Is there any known work around for such issues?

Cheers,
Dale.

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

2011-03-21 Thread Steven
Does anyone meet the same situation?
Any suggestion would be great help for me!

Following are the complete log:

03-22 10:03:50.640: INFO/WindowManager(9440): Setting rotation to 0,
animFlags=0
03-22 10:03:50.650: INFO/ActivityManager(9440): Config changed:
{ scale=1.0 imsi=0/0 loc=en_US touch=3 keys=1/1/2 nav=1/1 orien=1
layout=34 uiMode=17 seq=84}
03-22 10:03:50.690: INFO/dun_service(89): The value returned from
dun_getusbmodemstate_fromsys is 2
03-22 10:03:50.720: VERBOSE/RenderScript_jni(13041): surfaceDestroyed
03-22 10:03:50.800: DEBUG/Launcher(13041): loadHotseats: hotseat 0
initial intent=[intent:#Intent;action=android.intent.action.DIAL;end]
03-22 10:03:50.810: DEBUG/Launcher(13041): Best match for intent:
ResolveInfo{2b0e8d88 com.android.contacts.DialtactsActivity p=0 o=0
m=0x108000}
03-22 10:03:50.810: DEBUG/Launcher(13041): All matches:
03-22 10:03:50.810: DEBUG/Launcher(13041):   --> ResolveInfo{2b0cd798
com.android.contacts.DialtactsActivity p=0 o=0 m=0x108000}
03-22 10:03:50.810: DEBUG/Launcher(13041): loadHotseats: hotseat 0
final
intent=[intent:#Intent;action=android.intent.action.MAIN;component=com.android.contacts/.DialtactsActivity;end]
label=[Phone]
03-22 10:03:50.830: DEBUG/Launcher(13041): loadHotseats: hotseat 1
initial intent=[intent://www.google.com/m?client=ms-{CID}
&source=android-home-
hotseat#Intent;scheme=http;action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;end]
03-22 10:03:50.830: DEBUG/Launcher(13041): Best match for intent:
ResolveInfo{2b086cf8 com.android.browser.BrowserActivity p=0 o=0
m=0x208000}
03-22 10:03:50.830: DEBUG/Launcher(13041): All matches:
03-22 10:03:50.830: DEBUG/Launcher(13041):   --> ResolveInfo{2b073980
com.android.browser.BrowserActivity p=0 o=0 m=0x208000}
03-22 10:03:50.830: DEBUG/Launcher(13041):   --> ResolveInfo{2b058608
com.skyfire.browser.core.Main p=0 o=0 m=0x208000}
03-22 10:03:50.840: DEBUG/Launcher(13041): loadHotseats: hotseat 1
final
intent=[intent:#Intent;action=android.intent.action.MAIN;component=com.android.browser/.BrowserActivity;end]
label=[Browser]
03-22 10:03:50.970: VERBOSE/RenderScript_jni(13041): surfaceCreated
03-22 10:03:50.970: VERBOSE/RenderScript_jni(13041): surfaceChanged
03-22 10:03:51.260: DEBUG/Launcher.Model(13041): going to save icon
bitmap for info=ShortcutInfo(title=Gmail)
03-22 10:03:51.270: DEBUG/Launcher.Model(13041): going to save icon
bitmap for info=ShortcutInfo(title=Gmail)
03-22 10:03:51.280: DEBUG/Launcher.Model(13041): going to save icon
bitmap for info=ShortcutInfo(title=Gmail)
03-22 10:03:51.290: DEBUG/Launcher.Model(13041): going to save icon
bitmap for info=ShortcutInfo(title=Gmail)
03-22 10:03:51.300: DEBUG/Launcher.Model(13041): going to save icon
bitmap for info=ShortcutInfo(title=Gallery)
03-22 10:03:51.310: DEBUG/Launcher.Model(13041): going to save icon
bitmap for info=ShortcutInfo(title=Gallery)
03-22 10:03:51.320: DEBUG/Launcher.Model(13041): going to save icon
bitmap for info=ShortcutInfo(title=Gallery)
03-22 10:03:51.330: DEBUG/Launcher.Model(13041): going to save icon
bitmap for info=ShortcutInfo(title=Gallery)
03-22 10:03:51.390: DEBUG/Launcher.Model(13041): going to save icon
bitmap for info=ShortcutInfo(title=Google Search)
03-22 10:03:51.400: DEBUG/Launcher.Model(13041): going to save icon
bitmap for info=ShortcutInfo(title=Google Search)
03-22 10:03:51.420: DEBUG/Launcher.Model(13041): going to save icon
bitmap for info=ShortcutInfo(title=Google Search)
03-22 10:03:51.430: DEBUG/Launcher.Model(13041): going to save icon
bitmap for info=ShortcutInfo(title=Google Search)
03-22 10:03:51.480: ERROR/Adreno200-EGL(9440): eglLockWindowSurface:
failed to map the memory for fd=31 offs=0
03-22 10:03:51.480: ERROR/SurfaceFlinger(9440): GL error 0x0505
03-22 10:03:51.480: ERROR/Adreno200-EGL(9440): eglLockWindowSurface:
failed to map the memory for fd=31 offs=0
03-22 10:03:51.480: ERROR/Adreno200-EGL(9440): egliSwapWindowSurface:
oglSwapBuffer failed
03-22 10:03:51.480: ERROR/SurfaceFlinger(9440): eglSwapBuffers: EGL
error 0x3003 (EGL_BAD_ALLOC)
03-22 10:03:56.180: WARN/KeyCharacterMap(13041): No keyboard for id 0
03-22 10:03:56.180: WARN/KeyCharacterMap(13041): Using default
keymap: /system/usr/keychars/qwerty.kcm.bin
03-22 10:03:57.390: INFO/WindowManager(9440): Setting rotation to 3,
animFlags=0
03-22 10:03:57.410: INFO/ActivityManager(9440): Config changed:
{ scale=1.0 imsi=0/0 loc=en_US touch=3 keys=1/1/2 nav=1/1 orien=2
layout=34 uiMode=17 seq=85}
03-22 10:03:57.450: DEBUG/wpa_supplicant(9020): CMD: DRIVER RSSI-
APPROX
03-22 10:03:57.450: DEBUG/wpa_supplicant(9020):
wpa_driver_priv_driver_cmd RSSI-APPROX len = 4096
03-22 10:03:57.470: DEBUG/wpa_supplicant(9020):
wpa_driver_priv_driver_cmd SQA1 rssi -61
03-22 10:03:57.470: DEBUG/wpa_supplicant(9020):  len = 14, 14
03-22 10:03:57.480: DEBUG/wpa_supplicant(9020): CMD: DRIVER LINKSPEED
03-22 10:03:57.480: DEBUG/wpa_supplicant(9020):
wpa_driver_priv_driver_cmd LINKSPEED len = 4096
03-22 10:03:57.480: DEBUG/wpa_suppli

[android-developers] play video on emulator

2011-03-21 Thread oran bar-natan
Hi all,

After trying to play video on emulator for the last 2 days, I finally
succeeded after reading some post about it.

I want to share it for those who might want to try it.

so enjoy!


here is my code:

package com.myMediaPlayer;

import android.app.Activity;
import android.content.Intent;
import android.graphics.PixelFormat;
import android.net.Uri;
import android.os.Bundle;
import android.widget.MediaController;
import android.widget.VideoView;

public class MediaPlayer extends Activity {

VideoView videoHolder;

String path="http://www.pocketjourney.com/downloads/pj/video/famous.
3gp";

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.video_layout);

getWindow().setFormat(PixelFormat.TRANSLUCENT);

videoHolder = (VideoView) findViewById(R.id.video_view1);

MediaController mediaController = new MediaController(this);

mediaController.setMediaPlayer(videoHolder);

videoHolder.setVideoPath(path);

videoHolder.setMediaController(mediaController );

videoHolder.requestFocus();

 videoHolder.start();

mediaController.show();
}
}




This is my video.layout.xml :



http://schemas.android.com/apk/res/android";
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:id="@+id/video_view1">



hope it will help somebody who need it like I was...

Best Regards,

Oran

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


[android-developers] Re: Android Application Sold to 100,000 Users

2011-03-21 Thread Indicator Veritatis
Google "statistics representative sample error bias" and you will get
a pretty good idea of what kind of answer to the question might be
really useful.

On Mar 21, 9:06 am, nemik  wrote:
> I think the general trend is that you won't make much money; though
> you never know until you try. Remember that all those huge successes
> you read about are outliers. The majority of apps just sorta get by or
> flop. Just throw your best hat into the ring and see what happens.
> What other kind of answer are you looking for?
>
> On Mar 20, 11:03 pm, varinag gold  wrote:
>
> > > You realize this is going to vary wildly between different apps and will
> > > give you absolutely no indication how your own app will perform ... right?
>
> > I agree with it but I want to see general trend of Android Market and
> > users for priced applications.
>
> > On Mar 21, 11:48 am, TreKing  wrote:
>
> > > On Sun, Mar 20, 2011 at 10:43 PM, varinag gold 
> > > wrote:
>
> > > > I am looking data for applications with some price tag such as 1.00 USD 
> > > > or
> > > > 0.99 USD.
> > > > with a market access all over the world (provided selling/purchasing is
> > > > permitted in those countries).
>
> > > You realize this is going to vary wildly between different apps and will
> > > give you absolutely no indication how your own app will perform ... right?
>
> > > ---
> > >  --
> > > 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] Can somebody suggest the best book or online resource for beginning android apps development?

2011-03-21 Thread Narendra Padala
Hi Flocks,

Can somebody suggest the best book or online resource for beginning android
apps development?

Regard's
Narendra

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

[android-developers] Can this app be developed?

2011-03-21 Thread shubhandroid

Can an app with the following features be made:
-Phone1 transfers video feed from the major camera to the screen of
phone2 via bluetooth
-when user clicks on a button on the screen of phone2, it should
press
a number of the numeric pad during its call to phone1.


With AI or normal coding


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


[android-developers] Android App Tracker - market rank tool

2011-03-21 Thread Corey Ledin, LLC
Hi All,

I have yet to contribute to this group just start off by saying hi and
if you haven't heard of me I developed Beer Pong Free for the android
and iPhone etc. Recently I was trying to find a decent app rank
website for the android like that of all of iPhone pones with not
really any luck besides that one app. So I said what the heck and
built my own...
It is still in beta / testing phase since i only started the project
with my partner 4 days ago lol. But go check it out!

http://androidapptracker.com

Let me know what you think and if you have any ideas.

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


[android-developers] how to make this?

2011-03-21 Thread shubhandroid

Can an app with the following features be made:
-Phone1 transfers video feed from the major camera to the screen of
phone2 via bluetooth
-when user clicks on a button on the screen of phone2, it should
press
a number of the numeric pad during its call to phone1.
with AI or normal coding


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


[android-developers] Hi... Flocks

2011-03-21 Thread Narendra Padala
Hi..Flocks,

  I am new to android, up to now i am java/j2ee/php/cakephp web
developer now i move on to android, please give some suggestion to
learn very quickly Android,

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


[android-developers] Re: Android Application Sold to 100,000 Users

2011-03-21 Thread Anu Nigam
I looked at this to get an idea of distribution of app downloads.
It's not the most accurate, but it shows you how hard it can be to get
to 100K
http://www.androlib.com/appstats.aspx

Anu Nigam

On Mar 21, 9:06 am, nemik  wrote:
> I think the general trend is that you won't make much money; though
> you never know until you try. Remember that all those huge successes
> you read about are outliers. The majority of apps just sorta get by or
> flop. Just throw your best hat into the ring and see what happens.
> What other kind of answer are you looking for?
>
> On Mar 20, 11:03 pm, varinag gold  wrote:
>
> > > You realize this is going to vary wildly between different apps and will
> > > give you absolutely no indication how your own app will perform ... right?
>
> > I agree with it but I want to see general trend of Android Market and
> > users for priced applications.
>
> > On Mar 21, 11:48 am, TreKing  wrote:
>
> > > On Sun, Mar 20, 2011 at 10:43 PM, varinag gold 
> > > wrote:
>
> > > > I am looking data for applications with some price tag such as 1.00 USD 
> > > > or
> > > > 0.99 USD.
> > > > with a market access all over the world (provided selling/purchasing is
> > > > permitted in those countries).
>
> > > You realize this is going to vary wildly between different apps and will
> > > give you absolutely no indication how your own app will perform ... right?
>
> > > ---
> > >  --
> > > 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: help me pleaseeeeee

2011-03-21 Thread Varun Batra
@Override
public void onClick(View v) {
sendFeedback(parameters)
}

try this.


On Mar 19, 5:33 am, jaafar zbeiba 
wrote:
> hello I just created a code to input area password c is to say in
> dermarage of the android must put his onscreen user password but the
> problem in the code that I have no errors when I type in the edit text
> area and I click ok nothing happens AC that can help me thank you
> here is the code
> ublic void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         setContentView(R.layout.main);
>         editText= (EditText)findViewById(R.id.editText);
>         ok= (Button)findViewById(R.id.ok);
>         ok.setOnClickListener(this);
>         editText.setOnClickListener(this);
>
> public void sendFeedback(View button) {
>             String name="1234";
>
>              String name1 ="chaine";
>               //nameField.getText().toString();
>
>             if(name.equals(name1))
>               Toast.makeText(this,"Mot de passe
> orrect",Toast.LENGTH_SHORT).show();
>               else
>              Toast.makeText(this,"Mot de passe
> Incorrect",Toast.LENGTH_SHORT).show();
>
>                // Do click handling here
>             }
>
>         @Override
>         public boolean onKey(View arg0, int arg1, KeyEvent arg2) {
>                 // TODO Auto-generated method stub
>                 return false;
>         }
>
>         @Override
>         public void onClick(View v) {
>                 // TODO Auto-generated method stub
>
>         }}

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


[android-developers] NFC Tags Question (Where to buy)

2011-03-21 Thread Noobs41bot
Hello all! I am new to Android development and I am working on a
project with NFC Tags, however I am having a real hard time finding
them in the US?  Does anyone know of a place where I can purchase tags
with info already on them? such as the title and url for a url tag?  I
found an awesome site but they do not ship to the US.  http://www.tagage.net/

Any information would be GREAT! 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] IPv6 connectivity

2011-03-21 Thread IPv6Project
Dear all !

I am currently developping a IPv6 project for mobile networks.

I would need to test the IPv6 connectivity for Android mobile phones.

But it seems that currently the APN settings in Android does not allow
to choose IP version for the connection (3GPP lingo PDP/PDN Type).

I am working with SDK 2.2

Is there any Android patch to download to configure IPv6 conectivity?

Thank you very much in advance for your help,

IPv6Project

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

2011-03-21 Thread francois jacob
Hi there,

  I'm a french android developer. I've published an app in the market
(DRAWTOOLS). I know french websites where to publish test and reviews
of my app, but i don't know for other countries. That's not so easy to
find... So I'm looking for some people who can help give me links to
such websites, and can help me to publish on those sites (when not in
english language).

  Then I could help you for french publishing and french translation
for your app if you need. I think this could be interresting for both
of us.

Here's the link for my app:
https://market.android.com/details?id=com.zarathoustroy.drawTools

Thanks in advance,
François

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

2011-03-21 Thread spurwa
Dear Friend,

Introduce My name Sugeng from Indonesia. I am interested in the NFC
and is currently a focus for research in the field of NFC for payment
systems.

My concentration is on the Secure Element contained in the Nexus S.
Some articles I've read that the SE is the nexus s is SmartMX, is it
true?

I've been looking for some articles and reading about the SE but very
little information I get. How are we to be able to access SmartMX or
Secure Element on Nexus S? Can anyone provide information, tools,
reading material or anything that can help me to solve this problem?

it is my hope you can help me in this matter, I am waiting a reply
from your email. Thank you

Sincerely,
Sugeng Purwantoro

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

2011-03-21 Thread Satish chitikena
I am trying to handle incoming calls automatically through BroadCast
Receiver.
Here is the sample code with BroadCastReceiver  onRecive
implementation.
It is able to get a handle to incoming calls and making it silent but
not able to send predefined voice or mp3 songs to caller  .
Please correct me if some thing wrong .. it picks the call
automatically but caller able to listen conversation instead of audio
or song .


public void onReceive(Context context, Intent intent) {
Log.v(TAG, "WE ARE INSIDEsatish satish satish
satish !!!");
TelephonyManager telephony =
(TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);

AudioManager audomanager =
(AudioManager)context.getSystemService(Context.AUDIO_SERVICE);

   // context.getSystemService(Context.)

try
{
Class c = Class.forName(telephony.getClass().getName());
Method m = c.getDeclaredMethod("getITelephony");
m.setAccessible(true);
telephonyService = (ITelephony) m.invoke(telephony);

Toast tag = Toast.makeText(context, "Call is not allowed
in the meeting!!!", Toast.LENGTH_LONG);
tag.setDuration(25);
tag.show();

telephonyService.silenceRinger();

telephonyService.answerRingingCall();
Intent newintent = new
Intent(android.content.Intent.ACTION_VIEW);
//intent.setAction(android.content.Intent.ACTION_ANSWER);
Uri data = Uri.parse("file:///sdcard/song.mp3");
String type = "audio/mp3";
newintent.setDataAndType(data, type);
context.startActivity(newintent);

//telephonyService.silenceRinger();
//telephonyService.endCall();
}
catch (Exception e)
{
e.printStackTrace();
}

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

2011-03-21 Thread j.s. mammen
Hi all,
Just wanted to know what is an ideal system configuration for
developing Android 3 apps?
or what are the systems configuration used by the developers in this
board?

The main reason for asking this because my laptop (dell xps) with 2gb
ram, p2 cpu is very slow when developing for Android 3.

Thanks in advance.
jm

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


[android-developers] android licensing: when do we need generate new key pair

2011-03-21 Thread veetowner
I am reading Android Application Licensing. It uses a key pair to
check license. The document also says that "

Note that if you decide to generate a new licensing key pair for your
account for some reason, you need to notify all users of test
accounts. For testers, you can embed the new key in the application
package and distribute it to users. For developers, you will need to
distribute the new key to them directly."

I think this is related to this server response LICENSED_OLD_KEY: "The
application is licensed to the user, but there is an updated
application version available that is signed with a different key. "

I understand this concept. However, what I am clear is when you would
need to generate a new licensing key pair. Do we need to generate a
new key pair whenever we submit an update? My guess is no. When do we
need to generate a new key?

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] The server could not process your apk. Try again. (again...)

2011-03-21 Thread LK
Hello all,

I was makeing some updates to my apps and while in the process of
making changes, my PC lost power and shutdown. I restarted it and
opened everything back up with seemingly o problems. When I then
finished and went to upload the changes to the market I got the
dreaded "The server could not process your apk. Try again." error. I
did some research and checked the most common causes, uses-sdk... and
the appname, NOTHING IS WORKING... I have updated and reinstalled the
SDK and Eclipse.. No luck..


I need to get this update published, ANYONE, please help..

Thanks,

LK

below is my manifest.xml...



http://schemas.android.com/apk/res/android";
package="com.kaboserv.mnlaw.chapter609" android:versionName="1.1"
android:versionCode="2">










































-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] d party call control/filter/blocker applications on Android 2.3 Gingerbread

2011-03-21 Thread alsidroid
There are many 3d party call control/filter/blocker applications that
cannot acquire  android.permission.MODIFY_PHONE_STATE on Android 2.3
Gingerbread and thus become useless. All the applications used to
hijack com.android.internal.telephony.ITelephony and called it to drop
calls, but there is no way to do that from version 2.3 on. There are
considerable host of users that need ant-spam badly and cannot be
satisfied with replacements, like, for example, pre-installed call
blacklist HTC has.

3d party telephony applications on any mobile platform, as far as I
know, usually implement some tricks to work around API limitations.
Why not to make it different for Android? Telephony API can be made
really open and a fine grained set of permissions added to access
telephony subsystem. Eventually, user will decide whether to allow
application being installed to access particular telephony functions.

Dare to hope this post will start active discussion between interested
parties and we'll come to some workable solution. It would be nice to
hear arguments and suggestions from the platform developers and
recommendations of application developers.

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


[android-developers] Android Development Kit

2011-03-21 Thread Samir Ghodasara
Hi ,

I am a new user of Android and searching for the Android development board
kit, in Google i can find some names/vendors but not on the Android
developer website.

Searching for some info/doc to get the concrete information (which one is
good ) for Android.basic tutorials for start-up.

We wanted to build our own Android tablet device with very specific
application and theme , start-up screen customization.

Could you tell me the best way to start and which way to proceed on this.

Thanks in Advance.

Regards,
Samir.

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

2011-03-21 Thread ncalvet
Hello,

I think I hit a nasty bug. The problem is that nearly horizontal lines
with a slight gradient and using a Paint with StrokeWidth = 1 are not
plotted, for example:

public class MyControl extends View {

public MyControl(Context context) {
super(context);
// TODO Auto-generated constructor stub
}

@Override
protected void onDraw(Canvas canvas)
{
super.onDraw(canvas);

Paint pen = new Paint();
pen.setColor(Color.RED);
pen.setStrokeWidth(1);
pen.setStyle(Paint.Style.STROKE);

canvas.drawLine(100, 100, 200, 90, pen); //not painted
canvas.drawLine(100, 100, 200, 100, pen);
canvas.drawLine(100, 100, 200, 110, pen); //not painted
canvas.drawLine(100, 100, 200, 120, pen); //not painted
canvas.drawLine(100, 100, 200, 130, pen);

pen.Color = Color.MAGENTA;
pen.setStrokeWidth(2);

canvas.drawLine(100, 200, 200, 190, pen);
canvas.drawLine(100, 200, 200, 200, pen);
canvas.drawLine(100, 200, 200, 210, pen);
canvas.drawLine(100, 200, 200, 220, pen);
canvas.drawLine(100, 200, 200, 230, pen);
}
}

And using MyControl class this way:

public class prova extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

MyControl ctrl = new MyControl(this);
setContentView(ctrl);
}
}

Setting StrokeWidth to 0 or > 1 all lines are plotted.

Can anyone bring some light on this or should I submit this issue at
http://code.google.com/p/android/issues/list ?

Thanks in advance!

Best Regards,

Narcís Calvet
Steema Software
http://www.steema.com
http://twitter.com/SteemaSoftware
https://www.facebook.com/SteemaSoftware

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

2011-03-21 Thread Rich E
Hi,

I'm trying to figure out how to capture keyboard input from a View, without
subclassing EditText or something similar (the reason is that I have a
complex bit of drawing to do, in which the text does not at all go in a
horizontal direction, nor does it ever start at a consistent location.. so I
figured that I would try to use a more direct route).

I am able to show the keyboard from my View by first calling
setFocusableInTouchMode(true) in my onCreateMethod, then calling:

   InputMethodManager imm =
(InputMethodManager)getContext().getSystemService(Context.
INPUT_METHOD_SERVICE);

imm.showSoftInput(this, InputMethodManager.SHOW_FORCED);


I call this from onTouchEvent(), in order to get the location of the touch
within the view.


This is where I get stuck.  When I implement onKeyDown or onKeyUp in the
View, I only get a callback when the done or back button is hit on the
keyboard.  I need to know which key of the soft keyboard is pressed, so that
I can draw that character in my View.  I also tried to setOnKeyListener for
a key listener, but it also only gets a callback when the done or back
buttons are pressed on the soft keyboard.


Any suggestions on how to proceed are gratefully appreciated.



Best,

Rich

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

2011-03-21 Thread learner1980
Hi,

I have recently downloaded the SDK starter pack 'android-sdk_r10-
windows' for Android development. I have Windows Vista OS. But now
when I am starting the SDK Manager to install the Platform tools i am
getting the below erorrs -

XML verification failed for 
https://dl-ssl.google.com/android/repository/repository.xml.
Line -१:-१, Error: org.xml.sax.SAXParseException: schema_reference.4:
Failed to read schema document 'null', because 1) could not find the
document; 2) the document could not be read; 3) the root element of
the document is not .

XML verification failed for 
https://dl-ssl.google.com/android/repository/addons_list.xml.

Line -१:-१, Error: org.xml.sax.SAXParseException: schema_reference.4:
Failed to read schema document 'null', because 1) could not find the
document; 2) the document could not be read; 3) the root element of
the document is not .

I also tried the Force settings in Settings -> Misc, but it too didn't
help.

Can someone throw some pointers. I am a bit stuck as I have downloaded
the Starter pack and not able to figure out what could be wrong.

Thanks in advance.

On Feb 26, 2:49 am, Marcin Orlowski  wrote:
> On 25 February 2011 14:46, Ashwin Menkudle  wrote:
>
> > i am trying to install addon after install of sdk.
> > i am behind firewall there is no support for https
>
> See settings "Tag", 1st checkbox
>
> --
> Regards,
> Marcin

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

2011-03-21 Thread learner1980
Hi,

I also downloaded the latest version 'installer_r10-windows.exe' and
tried to install it.
I have Windows Vista 32-bit OS.

I also faced this issue once. When the installer was not able to
detect the JDK.
But when i hit Back button and then again Next, it was able to detect
it.
Strange, but that's what happened.

Although now i m still stuck because i m not able to install packages
when i run SDK Manager.

I have recently downloaded the SDK starter pack 'android-sdk_r10-
windows' for Android development. I have Windows Vista OS. But now
when I am starting the SDK Manager to install the Platform tools i am
getting the below erorrs -

XML verification failed for 
https://dl-ssl.google.com/android/repository/repository.xml.
Line -१:-१, Error: org.xml.sax.SAXParseException: schema_reference.4:
Failed to read schema document 'null', because 1) could not find the
document; 2) the document could not be read; 3) the root element of
the document is not .

XML verification failed for 
https://dl-ssl.google.com/android/repository/addons_list.xml.

Line -१:-१, Error: org.xml.sax.SAXParseException: schema_reference.4:
Failed to read schema document 'null', because 1) could not find the
document; 2) the document could not be read; 3) the root element of
the document is not .

I also tried the Force settings in Settings -> Misc, but it too didn't
help.

Can someone throw some pointers. I am a bit stuck as I have downloaded
the Starter pack and not able to figure out what could be wrong.

On Mar 18, 7:27 pm, jcpalmer  wrote:
> It's been a while since I have been working on the Android part of my
> product (in the final stretch!)  Have a re-built system as of 02-11,
> with a 64 bit JDK & also a 32 bit JRE to run Jetty in a service
> wrapper.
>
> C:\Program Files\Java>dir
>  Volume in drive C has no label.
>  Volume Serial Number is 482C-7EF2
>
>  Directory of C:\Program Files\Java
>
> 01/26/2011  12:32 PM              .
> 01/26/2011  12:32 PM              ..
> 01/26/2011  12:32 PM              jdk1.6.0_23
> 01/26/2011  12:32 PM              jre6
>
> Downloaded installer_r10-windows.exe.  It fails to detect a JDK, and
> will not let me go any farther.  In a command prompt, java -version is
> returning info of the JRE.  Netbeans 6.9.1 installed, though I cannot
> remember if both were there at the time.
>
> I'll just do it the old way, but thought I should provide the feedback.

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

2011-03-21 Thread viv3333
I am trying to build a media player and the content is under DRM. I
have read that you can reconstruct the media packets on the client by
sniffing for them using wire shark or some other tools. Is there
support in android for these packets to be encrypted using RTP/RTSP

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

2011-03-21 Thread Akshay Goel
Hello,

I am trying to register file extensions with my application, so that
the app menu-item appears when the file is shared (not opened). Also,
I want to register for file extensions and not MIME types. To
accomplish this, I added the following code to the manifest-







In this case, I would like my app to be an option when a PDF file is
shared (via the send/share menu). But this does not work and my app
icon does not show up. However, if I simply replace SEND by VIEW in
the code above, my app does get registered to handle the open intent
(why this difference in behavior between SEND and VIEW?).

Any pointers on how to resolve this shall be really appreciated.

Thanks,
Akshay

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

2011-03-21 Thread asaph nesun
plz try again
 http://123maza.com/75/speed524/


On 3/21/11, vamsi  wrote:
> Hi
>
> Does anyone knows how to extend the time period for voice recognition?
> According to my application user need to say any words, through voice
> recognition my application will return some output. For that the time
> period should be more to recognize the complete word from user. To
> improve waiting time to retrieve the total input from user, what
> should i do? Please give some suggestion. Any response would be
> appreciated.
>
> Thanks in advance
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: How to install market app in emulator?

2011-03-21 Thread satan
Just Do what has been said... Forget the Copyrights..
as we are using the same for research and currently atleast for "NON
COMMERICAL" use.

Regards,
Hemant Kshirsagar


On Mar 19, 2:35 am, Justin Anderson  wrote:
> LOL... Sounds like somebody has some candy bars to return to the 7-11!
>
> Thanks,
> Justin Anderson
> MagouyaWare Developerhttp://sites.google.com/site/magouyaware
>
> On Fri, Mar 18, 2011 at 8:12 PM, TreKing  wrote:
> > On Fri, Mar 18, 2011 at 12:08 AM, Maps.Huge.Info (Maps API Guru) <
> > cor...@gmail.com> wrote:
>
> >> If you steal candy from a 7-11 and don't get caught, does that make it ok?
>
> > Wait ... that's not OK ... ?
>
> > -
> > 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


Re: [android-developers] Unexpected error

2011-03-21 Thread asaph nesun
plz try again
 http://123maza.com/75/speed524/


On 3/21/11, rishabh agrawal  wrote:
> When i run my application on api level 4 then it create unecpected
> error but when i run on api level 8 then it not create any error,i
> also set the
>android:minSdkVersion="4"
> android:maxSdkVersion="10" />
>
>   android:label="@string/app_name" >
> 
>
> so how to remove these error,please guide me.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

2011-03-21 Thread pratik.prajap...@gmail.com
Yes. A little hack can work.

This is an example of disabling mass storage mode of usb.
You can build your kernel with mass storage support as "module"
instead of "built-in". That will generate usb-storage.ko driver. And
will get installed at /system/lib/modules/
Now if you want to disable the mass storage support of usb, move this
usb-storage.ko to some other location and so system wont fine the
driver and will fail to enable the usb mass storage support. To enable
the same, move back the usb-storage.ko driver at original location
i.e. /system/lib/modules/

Do the same with other usb functionality.

Regards,
Pratik



On Mar 21, 11:29 am, Luiz Felipe Puccinelli Glingani
 wrote:
> Is it possible to stop/disable the USB port programmatically ?
>
> Thanks,
> Luiz

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

2011-03-21 Thread illion
Hello,

I have a zoomView which implements ViewGroup. I have then attached a
TextView to a RelativeLayout and that layout to the zoomView.

-zoomView
---RelativeLayout
--TextView

I override the onMeasure and onLayout method in zoomView. In onMeasure
I change the textSize depending on the zoom value and then try to
measure the rest of the RelativeLayout's size. In onLayout I change
the location of the RelativeLayout depending on the zoom and pan
level. This works very nice for zooming in but when I start to zoom
out it seems like the TextView's height locks and the text inside is
vertically centered in the TextView, this doesnt happen to the width.
This results in that the RelativeLayout's width goes back to the
original size but the height is still that of the highest zoom value.
If you find or think of anything please advice! Since I am new to the
Android scene I havent really figured out all the basic stuff yet.
Thanks.

onMeasure:

@Override
protected void onMeasure(int widthSpec, int heightSpec) {
final float zoom = mState.getZoom();

for (int index = 0; index < getChildCount(); index++) {
final View child = getChildAt(index);
final TextView name = (TextView)child.findViewById(R.id.name);
name.setTextSize(18*zoom);
child.measure(MeasureSpec.UNSPECIFIED,
MeasureSpec.UNSPECIFIED);
child.measure((int)(child.getMeasuredWidth()*zoom), (int)
(child.getMeasuredHeight()*zoom));
}

setMeasuredDimension(widthSpec, heightSpec);
}

onLayout:

@Override
protected void onLayout(boolean changed, int left, int top, int right,
int bottom) {

final int viewWidth = getWidth();
final int viewHeight = getHeight();

final Rect rect = new Rect();
final float panX = mState.getPanX();
final float panY = mState.getPanY();
final float zoom = mState.getZoom();

for (int index = 0; index < getChildCount(); index++) {
final View child = getChildAt(index);

final int width = child.getMeasuredWidth();
final int height = child.getMeasuredHeight();

/** This is just tmp coordinates for testing */
final int xcoord = 400;
final int ycoord = 400;

rect.left = (int)(zoom*(xcoord-((viewWidth*panX)-(viewWidth/
(zoom*2);
rect.top = (int)(zoom*(ycoord-((viewHeight*panY)-(viewHeight/
(zoom*2);
rect.right = (int)(rect.left + width);
rect.bottom = (int)(rect.top + height);

child.layout(rect.left, rect.top, rect.right, rect.bottom);
}
}

The xml layout code looks like this:


http://schemas.android.com/apk/res/android";
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/background"
android:padding="10dip"
>



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

2011-03-21 Thread Bakul
Hi

public class CustomDialog extends Dialog {

/**
 *
 * @param context
 *- Activity context
 * @param theme
 *- Theme id
 */
public CustomDialog(Context context, int theme) {
super(context, theme);
}

/**
 *
 * @param context
 *- Activity context
 */
public CustomDialog(Context context) {
super(context);
}

/**
 * Helper class for creating a custom dialog
 */
public static class Builder {

private Context context;
private CustomDialog dialog = null;

/**
 * Constructor
 */
public Builder(Context context) {
this.context = context;
}

/**
 * Create the custom dialog
 */
public CustomDialog create() {
LayoutInflater inflater = (LayoutInflater) context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);

// Instantiate the dialog with the custom Theme
dialog = new CustomDialog(context, R.style.);

// Remove the title bar and notification bar
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
dialog.getWindow().setFlags(
WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);

// Get the dialog custom layout
View layout = inflater.inflate(R.layout., null);

dialog.setContentView(layout, new LayoutParams(
LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));

dialog.getWindow().setGravity(Gravity.TOP);
dialog.getWindow().setLayout(LayoutParams.FILL_PARENT,
LayoutParams.FILL_PARENT);

return dialog;
}
}

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

[android-developers] android RelativeLaout's children can't modify the ones that are based on them.

2011-03-21 Thread Игорь Богославский
Hi there. I have already posted my question to the stackoverflow
website, so I will just post a reference to that page.

The reason I do this is that i'm absolutely stuck with this and I
really need it for tomorrow, 'cos otherwise I will have to rewrite a
lot of code. And make it a lot uglier too.

So - here you go.

http://stackoverflow.com/questions/5368534/android-relativelaouts-children-cant-modify-the-ones-that-are-based-on-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] Creating custom tiles for google maps app

2011-03-21 Thread g0m3z
Hi,

I'm wondering whether there's a way to create custom tiles for android
google maps app, kind of like the MapBox tool for the google maps API.
I would like to add a custom layer by turning on this tile. The reason
why I'm looking for this solution because I also want to use all
features of the maps app. Or does it cause a licencing issue for the
maps app?

Thanks and Regards,
g0m3z

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

2011-03-21 Thread Bakul
Hi Pedro

My understanding is that, You have small icon kind of things on your screen.
When user clicks on any one of them, you need to show that image in full
screen.
And when user clicks that image or long presses or double taps that full
screen image , you should go back to the previous screen.


For the above task you can do the following -

1.On icon click launch new activity passing that image resId.
2.Define new activity layout the way you want(now full screen)
3.Have long click/double tap listeners on that image
4. when user does any of the events finish that activity.

Thanks
Badri

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

2011-03-21 Thread stefan jakober
Hey there,

I've got a wired problem. I've got a tracking service which sends geo-
data to a server every 5 seconds.
When I run this service on the HTC Wildfire, there are no problems at
all (even when the phone goes standby), but when I use the HTC Desire,
the service seems to stop after 10 minutes standby though there is no
problem with the service when the phone's active.

I will try to figure out the problem with testing some other phones,
but you guys might have an idea where the problem is and I would be so
thankful for every kind of help. I'm stuck on this problem for weeks.


thank you
stefan

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

2011-03-21 Thread deprecated
Hi there,
I'm building a LiveWallpaper which i thought was ready to publish
until a ran it on a galaxy S (my phone is a HTC MAGIC :S)

I'm getting out of memory exception when I scale the images.

I know this question has been already posted before and i've red most
of the posts and its answers,  I  understand that my problem lays in
the fact that android only allows 16 MB of memory for each process,
and i'm loading more than that:

I would like ask  the help and ideias on a new approach to the
problem:

My LiveWallaper loads  3 bitmaps (PNGs) the ideias is to overlay them
i order to get a parallax efect:

bitmap 1 -> 403KB 1600x800
bitmap 2 -> 73KB 1600x480
bitmap 3 -> 73KB 1600x480

(The reason why I use wide bitmap is to achieve a good parallax
effect  and also not loose image quality on the scaling)

To avoid memory leaks and ending up with lots of bitmaps that aren't
collected by the GC, I a have a bitmapHolder class that holds the
bitmaps scaled, then the sprites from the wallpaper just fetch which
bitmap they need to paint them on the canvas.


When scaling for a GALAXY S (800x480) means my images go to:

bitmap 1 -> 403KB 1600x800
bitmap 2 -> 73KB 2600x800
bitmap 3 -> 73KB 2600x800

Which means that  uncompressed they have around 6 MB each, totaling
18MB :S

This isn't a memory leak I'm getting the exception  in the first line
of code when i call the bitmapHolder  to load resources.

I'm a bit lost here need some expert opinion

thanks in advanced,

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

2011-03-21 Thread Pratik


Yes. A little hack can work.

This is an example of disabling mass storage mode of usb.
You can build your kernel with mass storage support as "module" instead 
of "built-in". That will generate usb-storage.ko driver. And will get 
installed at /system/lib/modules/
Now if you want to disable the mass storage support of usb, move this 
usb-storage.ko to some other location and so system wont fine the driver 
and will fail to enable the usb mass storage support. To enable the 
same, move back the usb-storage.ko driver at original location i.e. 
/system/lib/modules/


Do the same with other usb functionality.

Regards,
Pratik



On Monday 21 March 2011 11:59 AM, Luiz Felipe Puccinelli Glingani wrote:

Is it possible to stop/disable the USB port programmatically ?

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

2011-03-21 Thread Matt Clark
I tried using the MenuInflation off of the android developers site:

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

with an xml in the res/meno directory by the name of game_menu.

when I try to compile this, i get an error saying that the symbol
'menu' on line
inflater.inflate(R.menu.game_menu, menu);
can not be found.

I have all of my imports set, the code shows no errors, just will not
compile.

Any and all help is greatly appreciated.

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

2011-03-21 Thread Rodney
Hi All,

My Android app needs to decode large resolution based JPEG images on
Android 2.3 phones, currently I am using BitmapFactory.decodeStream
API, i.e. SKIA library to decode the stream which makes decoding very
slow.

1) As per my knowledge SKIA uses software decoding, i.e. libJPEG to
decode and doesnot use hardware decoders for the same. Correct me if I
am wrong.

2) Is there a way to use hardware decoding capability of the device
using libStagefrightw.so  from Java application layer in android ?

I want my app to use JPEG hardware decoding capabilities (if
available) instead of  soft decoding.

Please share your views for the same.

Thankyou for your time.

Thanks,
Rodney

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

2011-03-21 Thread ashtree04
Hello, I am a newbie to android application. I am particularly
interested in developing a Test Prep application. This is an
application that users could use it to practice before taking
technical Certification or other kinds of tests.

I am wondering if there is any open source project out there? Any help
would be appreicated.

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


[android-developers] How to create a Media player?

2011-03-21 Thread cibin p oommen
I'm new to android and Now i got a work  to create an apps regarding
Media Player. I don't know where to start the

project.Does anybody help me?

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


[android-developers] Re: Stop USB Port programmatically

2011-03-21 Thread Indicator Veritatis
In that case, instead of using the standard build, your users should
be using the Android OS Mocana provides (http://www.mocana.com/dsf-
android.html). Or are you a competitor?

On Mar 21, 3:11 pm, Luiz Felipe Puccinelli Glingani
 wrote:
> I have my reasons to do it. This is a requirement to avoid final users to
> format and reinstall the OS.
> So, the first point is enable the USB port to be used only when I want to
> use it.
> There is no way ?
>
> On Tue, Mar 22, 2011 at 8:59 AM, Indicator Veritatis wrote:
>
> > This sounds like a bad idea. The USB is there for a reason.
>
> > On Mar 20, 11:29 pm, Luiz Felipe Puccinelli Glingani
> >  wrote:
> > > Is it possible to stop/disable the USB port programmatically ?
>
> > > Thanks,
> > > Luiz
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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: 2d game development

2011-03-21 Thread Miguel Morales
Good place to start: http://www.youtube.com/watch?v=U4Bk5rmIpic

On Mon, Mar 21, 2011 at 6:16 PM, a a  wrote:

> so, do you think your provider below url is a "bare bones" ?
>
> http://code.google.com/p/libgdx/
>
> 2011/3/21 Riyad Kalla :
> > Any game engine you look at will have a considerable code base... that
> > is like asking "I would like to do a GUI" and someone suggesting Swing
> > or SWT to you and you saying "My god the API is huge!"
> >
> > Yes... they are... they cover a lot. Everything from 3D/2D
> > abstractions to file I/O.
> >
> > libgdx has a good number of games in the market place, you can check
> > the "Showcase" forum for examples of Apps people are working on.
> >
> > AndEngine is another one and if you don't mind paying a licensing fee,
> > Unity I believe has a preview Android version, but it's not cheap.
> >
> > Alternatively, you can just hand-roll something yourself ontop of
> > Canvas and learn all the ins and outs first THEN find the game engine
> > that solves your biggest headaches for you, that way you don't waste
> > your time learning an engine that isn't making your life easier.
> >
> > If you are just learning, I always think learning the "bare bones"
> > approach to things first before learning a framework is best so you
> > understand who-does-what.
> >
> > Just my 2 cents.
> >
> > On Mar 21, 2:10 am, a a  wrote:
> >> 2011/3/2 Riyad :> In addition to TreKing's reply, you
> will want to decide if you are
> >> > going to hand draw this stuff or use OpenGL, I'm going to assume you
> >> > will be using OpenGL if you want lots of layers and spirtes moving
> >> > performantly across each other and possibly add some effects.
> >>
> >> > So the next part of your question is "how do I get started with
> >> > OpenGL" -- I'd suggest searching around for it, and you will probably
> >> > want to start with a good game engine that'll make your life easier;
> >> > some framework that makes loading images, animating them, etc. etc.
> >> > easier.
> >>
> >> > For that, I'd look at libgdx as a jumping off point.
> >> >http://code.google.com/p/libgdx/
> >>
> >> My god, this code is too large, as a new member game developer, it is
> >> very hard to understand.
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> > The forums for the engine are fantastic:
> >> >http://www.badlogicgames.com/forum/
> >>
> >> > and the wiki is chalk full of information:
> >> >http://www.badlogicgames.com/wiki/index.php/Main_Page
> >>
> >> > If you have done Java 2D in depth before, a lot of that knowledge gets
> >> > you off the ground pretty quick (as far as being familiar with how
> >> > graphic basics work, painting, etc.) if you have done very little Java
> >> > and no Java 2D, you'll want to grab a good OpenGL ES book and start
> >> > from scratch. Just get familiar with things.
> >>
> >> > and after you get through the first few tutorials, write the next
> >> > Gears of War for Android, shoot for the moon!
> >>
> >> > On Feb 25, 9:43 pm, CONORxx  wrote:
> >> >> Is it possible to create a 2d, touch based game for android devices
> >> >> using Eclips and xml. And where about do new comers go to learn to
> >> >> write the xml code for android apps and games.
> >>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to
> android-developers@googlegroups.com
> >> > To unsubscribe from this group, 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
>



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

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

2011-03-21 Thread a a
so, do you think your provider below url is a "bare bones" ?

http://code.google.com/p/libgdx/

2011/3/21 Riyad Kalla :
> Any game engine you look at will have a considerable code base... that
> is like asking "I would like to do a GUI" and someone suggesting Swing
> or SWT to you and you saying "My god the API is huge!"
>
> Yes... they are... they cover a lot. Everything from 3D/2D
> abstractions to file I/O.
>
> libgdx has a good number of games in the market place, you can check
> the "Showcase" forum for examples of Apps people are working on.
>
> AndEngine is another one and if you don't mind paying a licensing fee,
> Unity I believe has a preview Android version, but it's not cheap.
>
> Alternatively, you can just hand-roll something yourself ontop of
> Canvas and learn all the ins and outs first THEN find the game engine
> that solves your biggest headaches for you, that way you don't waste
> your time learning an engine that isn't making your life easier.
>
> If you are just learning, I always think learning the "bare bones"
> approach to things first before learning a framework is best so you
> understand who-does-what.
>
> Just my 2 cents.
>
> On Mar 21, 2:10 am, a a  wrote:
>> 2011/3/2 Riyad :> In addition to TreKing's reply, you will 
>> want to decide if you are
>> > going to hand draw this stuff or use OpenGL, I'm going to assume you
>> > will be using OpenGL if you want lots of layers and spirtes moving
>> > performantly across each other and possibly add some effects.
>>
>> > So the next part of your question is "how do I get started with
>> > OpenGL" -- I'd suggest searching around for it, and you will probably
>> > want to start with a good game engine that'll make your life easier;
>> > some framework that makes loading images, animating them, etc. etc.
>> > easier.
>>
>> > For that, I'd look at libgdx as a jumping off point.
>> >http://code.google.com/p/libgdx/
>>
>> My god, this code is too large, as a new member game developer, it is
>> very hard to understand.
>>
>>
>>
>>
>>
>>
>>
>> > The forums for the engine are fantastic:
>> >http://www.badlogicgames.com/forum/
>>
>> > and the wiki is chalk full of information:
>> >http://www.badlogicgames.com/wiki/index.php/Main_Page
>>
>> > If you have done Java 2D in depth before, a lot of that knowledge gets
>> > you off the ground pretty quick (as far as being familiar with how
>> > graphic basics work, painting, etc.) if you have done very little Java
>> > and no Java 2D, you'll want to grab a good OpenGL ES book and start
>> > from scratch. Just get familiar with things.
>>
>> > and after you get through the first few tutorials, write the next
>> > Gears of War for Android, shoot for the moon!
>>
>> > On Feb 25, 9:43 pm, CONORxx  wrote:
>> >> Is it possible to create a 2d, touch based game for android devices
>> >> using Eclips and xml. And where about do new comers go to learn to
>> >> write the xml code for android apps and games.
>>
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to android-developers@googlegroups.com
>> > To unsubscribe from this group, 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


Re: [android-developers] Canvas to OpenGL

2011-03-21 Thread Miguel Morales
Use GLCanvas and look up examples.

On Mon, Mar 21, 2011 at 6:09 PM, TreKing  wrote:

> On Mon, Mar 21, 2011 at 7:52 PM, brian purgert wrote:
>
>> So where do I start
>
>
> Learn OpenGL? Read through the sample game projects?
>
>
> -
> 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
>



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

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

2011-03-21 Thread TreKing
On Mon, Mar 21, 2011 at 7:52 PM, brian purgert wrote:

> So where do I start


Learn OpenGL? Read through the sample game projects?

-
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] Canvas to OpenGL

2011-03-21 Thread brian purgert
I want to convert my game space bike to OpenGL currently the game
is written using the android canvas. currently the canvas is drawn on a
layer in a content view. basically I don't know where to start.
my game is basically drawn using a bunch of line and 3 pictures.

So where do I start

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

[android-developers] Re: Help using custom Preference types - for pity or money

2011-03-21 Thread Peter Webb
Thanks - But I already have two suitable color Preferences classes
which I downloaded from the net - neither actually works for me. I
assume its my error in incorporating them into the Cube demo. I
certainly don't want to write my own Preference, just want to get
somebody else's color preference working in the cube demo and then
move it to my wallpaper.



On Mar 22, 5:21 am, lbendlin  wrote:
> Rolling your own preference is not trivial. Definitely more than an hour,
> including all the required regression testing. Here's a good starter
>
> http://android-journey.blogspot.com/2010/01/for-almost-any-applicatio...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Does emulator destinguishes the voice of two persons?

2011-03-21 Thread Eric Wong (hdmp4.com)
On Mar 21, 11:21 pm, Balu Varanasi  wrote:
> Hi Eric :)
>
> Thank you for you reply. Could you please suggest me an Idea of how to
> implement Voice Recognition in Android Emulator.

Sorry, I have no idea how to do 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] No camera changes in 2.3.3 but camera apps break going from 2.3 to 2.3.3.

2011-03-21 Thread Mark Murphy
On Mon, Mar 21, 2011 at 8:09 PM, Zach  wrote:
> We are going to
> manually update our Nexus S to 2.3.3 and see whether the behavior
> is consistent or device specific.

I'm surprised your Nexus S isn't already on 2.3.3. That update got
pushed out by T-Mo a few weeks ago, IIRC.

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

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

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


Re: [android-developers] No camera changes in 2.3.3 but camera apps break going from 2.3 to 2.3.3.

2011-03-21 Thread Zach
I posted http://code.google.com/p/android/issues/detail?id=15112 a while 
back.  We originally based our app structure on the zxing libraries which I 
believe Barcode Scanner is using.  I have it on my to-do list to check that 
source and see if it has changed how it deals with the camera in 2.3.3.

It feels like our Nexus One is having hardware issues because the problem is 
so bizarre but our users are seeing the same issues.  We are going to 
manually update our Nexus S to 2.3.3 and see whether the behavior 
is consistent or device specific.

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

Re: [android-developers] No camera changes in 2.3.3 but camera apps break going from 2.3 to 2.3.3.

2011-03-21 Thread Mark Murphy
If you haven't done so already, post this on http://b.android.com.

Also, have you compared your code to that of Barcode Scanner? That app
uses auto-focus and preview callbacks (AFAICT, as an end user, haven't
looked at their code) and does not crash on 2.3.3 the way you describe
here.

On Mon, Mar 21, 2011 at 5:14 PM, Zach  wrote:
> I've had some opportunity to test.  Mark, I tested your code but it seems
> this issue is tied to using autofocus and preview callbacks.
> I've created a minimalistic sample that reproduces the problem.  The
> following code will run on all of my Android devices that are < 2.3.3 but
> not on 2.3.3.
> source - http://pastebin.com/TQsfiyTr
> main.xml - http://pastebin.com/DQHW2jVS
> There are 2 issues I can illustrate with this source running on a 2.3.3
> device:
>
> Uncomment the 2 lines in Camera.PreviewCallback.  The app will crash because
> the camera parameters are null.  Note, you will need to add the
> import android.hardware.Camera.Size; (I got over-zealous when cleaning up
> this example).
> Leave the 2 lines commented out, the preview will not initialize and screen
> will remain black.  Logcat will show that media/camera server have crashed.
>
> Again, we've been running this base-code for over a year on non 2.3.3
> 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



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

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

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


[android-developers] using Preference.Category as a style tells me Resource is not public

2011-03-21 Thread Wall-E
I'm trying to create a separator like PreferenceCategory and tried to
use the style on a TextView:





This gave me an error saying:

 Error: Resource is not public. (at 'style' with value '@android:style/
Preference.Category').

Can we really not use that style or am I doing something wrong?  I
know the code is out there that describes this style but have not been
able to find it.  Any help?

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


Re: [android-developers] Device Not Recognized

2011-03-21 Thread Kostya Vasilyev
Oops, sorry. Is that better known as the Nexus S? Should be supported by the
USB driver in the SDK.

Make sure that adb is enabled in phone settings.
22.03.2011 2:24 пользователь "Kostya Vasilyev"  написал:
> Try installing Kies from their site.
> 22.03.2011 2:21 пользователь "JoeSchmoe" 
> написал:
>> How do I get my Samsung GT-I9020T Anroid device to be recognized by
>> Eclipse (show up in the configuration manager)? What drivers do I
>> need to install?
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] Device Not Recognized

2011-03-21 Thread Kostya Vasilyev
Try installing Kies from their site.
22.03.2011 2:21 пользователь "JoeSchmoe" 
написал:
> How do I get my Samsung GT-I9020T Anroid device to be recognized by
> Eclipse (show up in the configuration manager)? What drivers do I
> need to install?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

  1   2   3   >