[android-developers] Re: In-App: get Product list

2011-12-29 Thread MG-DE
Hello everybody,
 
are there no best practices which google advise?
 
Best regards 

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

[android-developers] In-App: get Product list

2011-12-28 Thread MG-DE
Hi,
 
I'm developing an app with in app purchase. Now I have the problem that 
there is no chance to get a list of all in app products from the Android 
Market. Is there no possibility to request the Market for the informations 
like title, description and price(!)? Why do I define informations like 
title and description when there is no chance to request it?
 
My second question is, what should I do with the price? Should I write the 
price only in Dollar in my App or should I localize it with the ISO country 
code or should I write no price in my App and the customer has to click on 
buy to see it in the Android Market? 
 
Are there any ideas?
 
Thanks in advance

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

[android-developers] Re: Hide TextView after some time

2011-07-08 Thread MG
Did that, thanks :)

It is my first real app, so there are surely still lots of things
that are done in an ugly way.

Best regards,
Matic

On Jul 7, 3:19 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Jul 7, 2011 at 9:16 AM, MG matic.goropev...@gmail.com wrote:
  Solved.
  Created new Runnable with t.setVisibility(4). Then as suggested, added
  removeCallbacks() and it works perfectly.

 It would be even better if you called setVisibility(View.INVISIBLE),
 rather than hard-coding in some magic number.

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

 Android Training...At Your Office:http://commonsware.com/training

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


[android-developers] Re: Android TextView Style

2011-07-07 Thread MG
Thnx, that was helpfull, I managed to do it. :)



On Jul 5, 7:25 pm, TreKing treking...@gmail.com wrote:
 On Tue, Jul 5, 2011 at 8:51 AM, MG matic.goropev...@gmail.com wrote:
  I want this TextView to have semi-transparent background and rounded edges.
  How would I accomplish this?

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

 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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


[android-developers] Hide TextView after some time

2011-07-07 Thread MG
Hi!
I have a problem. I am developing an app where I get some message
(html text) and display it in TextView. Comunication is based on JADE
and JADE-Android, but problem is not here. I can send and recieve
messages OK.
I need my TextView to disapear after some time (let say 10s) if there
is no new messages recieved. I tried Thread.sleep() but that stops the
whole thing and I don't want that. I also tried Handler.postDelayed()
and it works to some extent. Problem is, it hides TextView in any
case, even if new message is recieved before 10s is over. I need it to
hide only if there is no new message. How can I accomplish this?

Thanks for any help!

Here is the part of the code that is relevant.

In my main Activity, I create method updateText(String) -

public void updateText(String text) {
t = (TextView) findViewById(R.id.textView1);
t.setVisibility(0);
t.setText(Html.fromHtml(text));
//  textViewHandler.removeCallbacksAndMessages(textViewHandler);
textViewHandler.postDelayed(new Runnable() {
 public void run() {
 t.setText(Handler);
 t.setVisibility(4);
 }
}, 1);
}

In another class I call this method, when new message is recieved -

public void onMessageReceived(ACLMessage msg) {
// TODO Auto-generated method stub
MyUpdater up = new MyUpdater(act, msg);
handl.post(up);
}

private class MyUpdater implements Runnable {

ACLMessage msg;
CaptureActivity act;

public MyUpdater(CaptureActivity sm, ACLMessage msg) {

this.msg = msg;
this.act = sm;
}

public void run() {

act.updateText(b**Sporočilo agenta 
+ msg.getSender().getLocalName() + 
:**/bbr/br/
+ msg.getContent());

}
}

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

2011-07-07 Thread MG
Solved.
Created new Runnable with t.setVisibility(4). Then as suggested, added
removeCallbacks() and it works perfectly.
Thank you!

M

On Jul 7, 1:55 pm, Mark Murphy mmur...@commonsware.com wrote:
 Use removeCallbacks() to get rid of your posted Runnable when it is no
 longer valid, and schedule a fresh one.









 On Thu, Jul 7, 2011 at 7:37 AM, MG matic.goropev...@gmail.com wrote:
  Hi!
  I have a problem. I am developing an app where I get some message
  (html text) and display it in TextView. Comunication is based on JADE
  and JADE-Android, but problem is not here. I can send and recieve
  messages OK.
  I need my TextView to disapear after some time (let say 10s) if there
  is no new messages recieved. I tried Thread.sleep() but that stops the
  whole thing and I don't want that. I also tried Handler.postDelayed()
  and it works to some extent. Problem is, it hides TextView in any
  case, even if new message is recieved before 10s is over. I need it to
  hide only if there is no new message. How can I accomplish this?

  Thanks for any help!

  Here is the part of the code that is relevant.

  In my main Activity, I create method updateText(String) -

  public void updateText(String text) {
                 t = (TextView) findViewById(R.id.textView1);
                 t.setVisibility(0);
                 t.setText(Html.fromHtml(text));
  //              textViewHandler.removeCallbacksAndMessages(textViewHandler);
             textViewHandler.postDelayed(new Runnable() {
                  public void run() {
                          t.setText(Handler);
                          t.setVisibility(4);
                  }
             }, 1);
         }

  In another class I call this method, when new message is recieved -

  public void onMessageReceived(ACLMessage msg) {
                 // TODO Auto-generated method stub
                 MyUpdater up = new MyUpdater(act, msg);
                 handl.post(up);
         }

         private class MyUpdater implements Runnable {

                 ACLMessage msg;
                 CaptureActivity act;

                 public MyUpdater(CaptureActivity sm, ACLMessage msg) {

                         this.msg = msg;
                         this.act = sm;
                 }

                 public void run() {

                         act.updateText(b**Sporočilo agenta 
                                         + msg.getSender().getLocalName() + 
  :**/bbr/br/
                                         + msg.getContent());

                 }
         }

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

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

 Android Training...At Your Office:http://commonsware.com/training

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


[android-developers] Android TextView Style

2011-07-05 Thread MG
Hi!
I'm farely new to Android programming, so bare with me if it is a
simple answer. :)

I'm making an application (most things are working already) which uses
a TextView to display some data (message) it recieves. I want this
TextView to have semi-transparent background and rounded edges. How
would I accomplish this?

Thanks,
M

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


[android-developers] created bitmap is incorrect using getDrawingCache()

2010-11-21 Thread MG
Hi all!

I want to capture the visible area of the webview.
I used getDrawingCache() and it captures the visible area of the
webview.
But the scaled bitmap seems to be incorrect, the text is blurry.

here is my code:
--
webView = (WebView)findViewById(R.id.web);
webView.setDrawingCacheEnabled(true);
webView.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_AUTO);

Bitmap screenCapture = webView.getDrawingCache();

FileOutputStream fos = null;
fos = new FileOutputStream( /sdcard/img_ +
System.currentTimeMillis() + .jpg );

if ( fos != null )
{
screenCapture .compress(Bitmap.CompressFormat.JPEG, 100,
fos );
fos.close();
}
--

Does anyone know how to solve my problem, how to prevent the text from
scaling?
tnx 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] how can i get the messages in gmail/email client inbox folder?

2010-11-15 Thread MG
hi all.

i would just like to ask on how can i get the messages on my email
inbox folder and display it?
similarly, how can I access gmail's inbox or other mail client's inbox
folder?
is this possible on android?
do you have any idea?

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] any information regarding printing on android

2010-11-01 Thread MG
hi all!

do you have any idea on how to connect an android device to a printer?
for example, i will create an application that will manually input the
IP address of the printer.
and then, a notification will pop up that i have successfully
connected to the printer.
how can i implement this on android?

any information or idea is appreciated.

thank you in advance.

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


[android-developers] How can I access gallery from HTC Desire?

2010-10-22 Thread MG
hi all.

I am just wondering why I cant access the gallery using the code
below.

Intent gallery = new Intent(Intent.ACTION_VIEW, Uri.parse(content://
media/internal/images/media));
startActivity(gallery);

but when I installed the 3D gallery from cooliris, it is already
possible.
I can access the images from the installed 3D gallery.
But why cant I access the preinstalled gallery on the device?

Thank you.

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


[android-developers] Re: How can I access gallery from HTC Desire?

2010-10-22 Thread MG
how can i view the standard gallery?
The view should be just like opening the gallery from all apps.

On Oct 22, 7:47 pm, MG my.android.a...@gmail.com wrote:
 hi all.

 I am just wondering why I cant access the gallery using the code
 below.

 Intent gallery = new Intent(Intent.ACTION_VIEW, Uri.parse(content://
 media/internal/images/media));
 startActivity(gallery);

 but when I installed the 3D gallery from cooliris, it is already
 possible.
 I can access the images from the installed 3D gallery.
 But why cant I access the preinstalled gallery on the device?

 Thank you.

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


[android-developers] what intent is used for opening mail account?

2010-10-21 Thread MG
Hi all.

I just want to know what intent am I going to use to open a mail
client.
I can open the compose view of the mail client but I cant find an
intent to open
the inbox view of the mail client.

The same thing for opening the mail application from android device.
For example, from my application, I want to call mail application.
What intent should I use for it?

Thank you in advance.

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


[android-developers] Re: what intent is used for opening mail account?

2010-10-21 Thread MG
But how would you open the mail client?
Not to compose a message but to just call mail or gmail?
Is it not possible?

On Oct 21, 8:26 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Oct 21, 2010 at 5:47 AM, MG my.android.a...@gmail.com wrote:
  I just want to know what intent am I going to use to open a mail
  client.
  I can open the compose view of the mail client but I cant find an
  intent to open
  the inbox view of the mail client.

 There is no such Intent, sorry.

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

 Android App Developer Books:http://commonsware.com/books

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


[android-developers] How can I access data from SD card?

2010-10-21 Thread MG
Hello everyone!

I juts want to know how can I access a certain data from my SD card.
How can I browse SD card contents?
For example, from my application, I want to open a pdf file from SD
card,
how am I going to do this?

I tried to write this code but it doesnt seem to work.

Uri uri = Uri.parse(file:///sdcard/);
Intent intent = new Intent(Intent.ACTION_PICK, uri);
startActivity(intent);


Thank you.

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


[android-developers] Re: Is it possible to pass an intent from one device to another?

2010-10-16 Thread MG
Thank you. But how can I do this?
Do we have any sample on the internet?

On Oct 16, 1:39 pm, Bret Foreman bret.fore...@gmail.com wrote:
 Anintentis just a set of name-value pairs. You could make it into a
 JSON message and back into anIntentagain without much fuss.

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


[android-developers] Re: Is it possible to pass an intent from one device to another?

2010-10-16 Thread MG
Hi. Thank you for your reply.
How would I do this?
Can you help me. Is there any sample program on the internet
that I could use as a reference?

On Oct 16, 12:57 pm, Kumar Bibek coomar@gmail.com wrote:
 Send an SMS to the other device with a  specific format, capture the SMS
 Received broadcast in your receiver and launch your activity.



 On Sat, Oct 16, 2010 at 8:14 AM, MG my.android.a...@gmail.com wrote:
  Hi all.

  I would like to know if it is possible to pass a certain intent from
  one device to another?
  For example, device A is viewing a certain webpage, then I want that
  link to be sent
  to device B, and automatically launch that intent to device B.
  But without using the C2DM feature.

  Thank you.

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

 --
 Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.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] Is it possible to pass an intent from one device to another?

2010-10-15 Thread MG
Hi all.

I would like to know if it is possible to pass a certain intent from
one device to another?
For example, device A is viewing a certain webpage, then I want that
link to be sent
to device B, and automatically launch that intent to device B.
But without using the C2DM feature.

Thank you.

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


[android-developers] connection of device policy manager and exchange server

2010-10-14 Thread MG
Hello all!

Can someone explain to me the connection of the new feature on
device policy manager and the exchange server?

How is it connected? and how does it works?

Thank you.

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


[android-developers] android books

2010-10-14 Thread MG
Hi all.

I am looking for an excellent Android references.
What books and websites will you recommend that could be of great help
even for a beginner like me?

Thanks!

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


[android-developers] Re: android books

2010-10-14 Thread MG
Hi all.

Thank you for all your replies.
I will try to look at them.

Regards.

On Oct 15, 12:26 am, DanH danhi...@ieee.org wrote:
 Nothing that counts as excellent (at least not that I've found).
 I've not found any that are anywhere near true references (in the
 sense of even one of the in a Nutshell books).  They're all pretty
 much tutorials of one sort or another, some better organized and more
 comprehensive than others.  Pro Android 2 is somewhat better than
 the others I've looked at, but still leaves a lot to be desired.

 On Oct 14, 7:52 am, MG my.android.a...@gmail.com wrote:

  Hi all.

  I am looking for an excellent Android references.
  What books and websites will you recommend that could be of great help
  even for a beginner like me?

  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] About Device Policy Manager

2010-10-13 Thread MG
Hello all.

I would like to ask regarding the new feature of device policy
manager.
What are the specific ways these new features can do?
Is there any sample application that demonstrates this device policy
manager?
How is this connected to Exchange Server?

Thank you.

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


[android-developers] Re: how to create a new account type for using exsiting providers

2010-07-13 Thread MG

At present Android code supports to add an exchange/corporate account.
When user adds an account, Nexus one shows option to add MS exchange
account or Google account, but this option is not available in Froyo/
Eclair code.  The gmail account is also added as an exchange account
and both these types of account use same database and same protocol to
communicate.

To give more clarity to user about which type of account she is going
to add, while adding an account we can ask whether she wants to add an
exchange account or gmail account, the way Nexus one is doing. Nexus
one has separate content providers for emails for exchange and gmail.
But I want to use same content providers, sync adapters and sync
service, and still want to be able to show to user different options
to add accounts.

I want to know what are the ways to achieve this separation of gmail
and exchange account.

Thanks,
MG

On Jul 13, 7:10 pm, TreKing treking...@gmail.com wrote:
 On Mon, Jul 12, 2010 at 3:25 AM, MG manigu...@tataelxsi.co.in wrote:
  I want to create a new account type for gmail.

 I, personally, have no idea what this means or what you're trying to do. You
 may want to elaborate your question to get a good response.

 -
 TreKing - Chicago transit tracking app for Android-powered 
 deviceshttp://sites.google.com/site/rezmobileapps/treking

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

2010-07-12 Thread MG
Hello,

Gmail and Exchange both use same syncing protocol EAS and same
authority com.android.exchange in Android Eclair code. Different
account types are based on different authorities.

On the available Android Eclair code, Gmail account can be added as
'exchange' or 'corporate' account. But on Nexus one there is a
different account type for gmail.

Can somebody give me information on how Gmail account has been
separated from exchange account on Nexus one.

Thanks in advance,
MG

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

2010-07-12 Thread MG
Hi,

I want to create a new account type for gmail. Looking at the code it
looks like to create a new account type, I need to add a new provider
for gmail. Is it true? Can't I reuse existing providers to create a
new account type??

Thanks for your help in advance,
MG

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