[android-developers] Re: ListView Issue

2011-05-30 Thread Nikola Gotsev
Another way is to have Custom List Item and Custom List adapters more
info here - 
http://www.softwarepassion.com/android-series-custom-listview-items-and-adapters/

Hope it helped.

Regards,

Nikola Gotsev

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


Re: [android-developers] Re: app to webservice connection architecture?

2011-01-19 Thread Nikola
On Wed, Jan 19, 2011 at 8:00 AM, Jonathan Foley jonefo...@gmail.com wrote:


 Yes this is the recommended pattern. Investigate the IntentService
 class, which works quite
 well as the backend service to communicate with webapps or web based
 services. There is
 a talk from Google I/O that might interest you:
 http://www.youtube.com/watch?v=xHXn3Kg2IQE


 Jonathan

 On Jan 18, 7:44 pm, Kumar Bibek coomar@gmail.com wrote:
  Should I make a service and communicate with service from activity and
  delegate all API to webservice to service and just use intents ...
  (sorry if this sound confusing)
 
  It's possible and recommended as well.
 
  Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
 
 
 
 
 
 
 
  On Wed, Jan 19, 2011 at 9:09 AM, Nikola nikola1...@gmail.com wrote:
   Hi,
 
   I need to develop app that is consuming data from web service.
 
   There is API which I have to use to communicate to web service.
 
   I have to log on through API so I can use service, API maintains
   session.
 
   Should I make a service and communicate with service from activity and
   delegate all API to webservice to service and just use intents ...
   (sorry if this sound confusing)
 
   Could anyone provide maybe some kinda directions or ideas about given
   problem in terms of architecture?
 
   Any books, whatever ...would be greatly appreciated.
 
   Tnx in advance.
 
   --
   God is Real, unless declared Integer.
   J. Allan Toogood, FORTRAN programmer
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   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.comandroid-developers%2Bunsubs
 cr...@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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



Tnx for all the help people.

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

[android-developers] app to webservice connection architecture?

2011-01-18 Thread Nikola
Hi,

I need to develop app that is consuming data from web service.

There is API which I have to use to communicate to web service.

I have to log on through API so I can use service, API maintains
session.


Should I make a service and communicate with service from activity and
delegate all API to webservice to service and just use intents ...
(sorry if this sound confusing)

Could anyone provide maybe some kinda directions or ideas about given
problem in terms of architecture?


Any books, whatever ...would be greatly appreciated.



Tnx in advance.




-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2011-01-12 Thread Nikola
Hi,

when I set listener like

row.setOnLongClickListener(new OnLongClickListener() {

@Override
public boolean onLongClick(View v) {



my listview doesn't highlights items on touch.


Does anyone knows what could be source of this problem and how to resolve
it?

tnx.

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2011-01-12 Thread Nikola
Hi,

has anyone successfully used Apache HttpClient library on Android platform?

PS: Any remarks , problems that I should be aware of?


tnx.

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2011-01-12 Thread Nikola
On Wed, Jan 12, 2011 at 8:40 PM, Kumar Bibek coomar@gmail.com wrote:

 It works just fine. Most of us use HttpClient


Tnx for quick reply.

Just want to be sure :)
-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Listview highlight on touch doesn't show?

2011-01-10 Thread Nikola
Hi,

is there any cause why I don't see my touch highlighted on touch?

I didn't put anything special like theme or that.



-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2011-01-06 Thread Nikola
Hi,

does anyone know how to use specific APN settings ?

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2011-01-06 Thread Nikola
On Thu, Jan 6, 2011 at 5:41 PM, Brill Pappin br...@pappin.ca wrote:

 It will depend on your Carrier.

 Most carriers in Canada will give you the information if you ask for it.

 - Brill Pappin

 --


Tnx for helping.

Maybe I wasn't clear enough.

If I have two or three APN settings configured how can I use specific one
for my data transfer (i.e. make it default one).



-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

[android-developers] Capture image with Intent

2011-01-01 Thread Nikola
Hi,

going with my problem capturing picture via Intent.

Hopefully somebody will have some use from this info, and maybe we will
identify problem :)

I am running code example from here:

http://labs.makemachine.net/2010/03/simple-android-photo-capture/

(in example I have changed path for file from

/images/make_machine_example.jpg;

to

/make_machine_example.jpg;



Running on following phones:

1) SonyEricsson X8 (E15i) OS: Android 2.1 update 1
2) SonyEricsson X10i OS: Android 2.1 update 1


Phone 1 works fine. Preview is visible and picture is created.

Phone 2 doesn't work at all, doesn't create picture, there is no preview.


*Funny part is that expensive one isn't working :)


If anyone could test it on their phone, please do it and send info.

Thanks.

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2011-01-01 Thread Nikola
New phones tested.


 Running on following phones:

 1) SonyEricsson X8 (E15i) OS: Android 2.1 update 1
 2) SonyEricsson X10i OS: Android 2.1 update 1

 3) Galaxy  i9000 2.2 jpo
4) Htc Desire HD froyo 2.2


 Phone 1 works fine. Preview is visible and picture is created.

 Phone 2 doesn't work at all, doesn't create picture, there is no preview.


Phone 3 works fine.
Phone 4 works fine.


-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-31 Thread Nikola
Hi,

could anyone propose good approach for following:

I would need to have feature in my (simple) app of taking pictures and
tagging them with some values.

Do I need to implement all of the camera code in my app,  or can I call some
default camera app and
have data from it?

What would be best approach?
I don't want to make better/different or whatever app for pictures so this
isn't my field of interest, just want
to have pictures taken and tagged, of course it has to work on most of
phones.


Case scenario:

- user activates app
- button take picture
 if user takes picture use it with tag

- button create text tag
 input some text

- button save it
 save it to database


Thanks for help.


-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-31 Thread Nikola
On Fri, Dec 31, 2010 at 2:17 PM, TreKing treking...@gmail.com wrote:

 On Fri, Dec 31, 2010 at 6:54 AM, Nikola nikola1...@gmail.com wrote:

 Do I need to implement all of the camera code in my app,  or can I call
 some default camera app and have data from it?



 http://developer.android.com/reference/android/provider/MediaStore.html#ACTION_IMAGE_CAPTURE



 http://developer.android.com/reference/android/provider/MediaStore.html#ACTION_IMAGE_CAPTUREP.S.
 - Probably about time to move on from FORTRAN =P


I was looking at that but didn't want to say anything so I don't spoil open
mind spirit :)

Because android still has many problems and I would like this simple action
to work on most phones I wanted
expirienced answer.

Thanks for your help.


PS: FORTRAN is ok for android you aren't using Java right? :)

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-31 Thread Nikola
Hi,

trying to capture image and display it but getting FileNotFound for
following code. Anybody willing to take a look at it?



public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
private static final int CAMERA_PIC_REQUEST = 1337;
Button btn1;
ImageView image;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.main);

final File path = new File(
Environment.getExternalStorageDirectory(), getPackageName() );

Toast.makeText(this, path.toString() , Toast.LENGTH_SHORT).show();


Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT,
Uri.fromFile(getTempFile(this)) );
startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST);


   image = (ImageView) findViewById(R.id.fotografija);
   //image.setImageBitmap(thumbnail);

   btn1 = (Button) findViewById(R.id.button1);
   btn1.setOnClickListener(new View.OnClickListener() {

public void onClick(View v) {
Intent cameraIntent = new
Intent(MediaStore.ACTION_IMAGE_CAPTURE);
cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT,
Uri.fromFile(getTempFile(v.getContext())) );
startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST);
}
});


}

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent
data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == CAMERA_PIC_REQUEST) {
if(resultCode == RESULT_OK){
Toast.makeText(this, Captured! ,
Toast.LENGTH_SHORT).show();

final File file = getTempFile(this);

try {
  Bitmap captureBmp = Media.getBitmap(getContentResolver(),
Uri.fromFile(file) );

  image.setImageBitmap(captureBmp);


} catch (FileNotFoundException e) {
Toast.makeText(this, FileNotFoundException,
Toast.LENGTH_SHORT).show();
  e.printStackTrace();
} catch (IOException e) {
Toast.makeText(this, IOException,
Toast.LENGTH_SHORT).show();
  e.printStackTrace();
}


}else if(resultCode == RESULT_CANCELED){
Toast.makeText(this, User canceled!,
Toast.LENGTH_SHORT).show();

}
}

}


private File getTempFile(Context context){
  //it will return /sdcard/image.tmp
  final File path = new File(
Environment.getExternalStorageDirectory(), context.getPackageName() );
  if(!path.exists()){
path.mkdir();
  }
  return new File(path, image.tmp);
}
}



--


?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
  package=com.example.helloandroid
  android:versionCode=1
  android:versionName=1.0

uses-feature android:name=android.hardware.camera/uses-feature
uses-permission android:name=android.permission.CAMERA /
uses-permission
android:name=android.permission.WRITE_EXTERNAL_STORAGE /

application android:icon=@drawable/icon
android:label=@string/app_name android:debuggable=true
activity android:name=.HelloAndroid
  android:label=@string/app_name
intent-filter
action android:name=android.intent.action.MAIN /
category android:name=android.intent.category.LAUNCHER /
/intent-filter
/activity
/application


/manifest



-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-31 Thread Nikola
On Fri, Dec 31, 2010 at 7:32 PM, TreKing treking...@gmail.com wrote:

 On Fri, Dec 31, 2010 at 12:05 PM, Nikola nikola1...@gmail.com wrote:

 Anybody willing to take a look at it?


 Giving your file that should hold an image a .tmp extension is
 questionable.

Why? I would like to store it in database.




 Besides that, a Google Search for ACTION_IMAGE_CAPTURE shows some promise
 ...

Done it already and didn't find anything that could resolve this problem.


Is is very interesting that intent doesn't return any path or similar for
picture that is taken.
There is no info  ,and believe me I've searched for , that feature like that
exists.
Of all the things I think getting path of taken picture whould be most
useful.


-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-31 Thread Nikola
On Fri, Dec 31, 2010 at 7:49 PM, TreKing treking...@gmail.com wrote:

 On Fri, Dec 31, 2010 at 12:42 PM, Nikola nikola1...@gmail.com wrote:

 Giving your file that should hold an image a .tmp extension is
 questionable.

 Why? I would like to store it in database.


 Because .tmp is not an image format I'm aware of.

 Never said that you have to save file with image extension. Why would you
have to do that? Does system checks file extensions?






 Besides that, a Google Search for ACTION_IMAGE_CAPTURE shows some promise
 ...

 Done it already and didn't find anything that could resolve this problem.


 Then you found this first hit and tried both alternate URIs?

 http://stackoverflow.com/questions/1910608/android-action-image-capture-intent


Yea I saw that.


Thanks for helping.

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-29 Thread Nikola
Hi,

I would like to store sqlite databse on sdcard.

Is is possible to tell system somehow to put it on sdcard?

Thanks.

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-29 Thread Nikola
On Wed, Dec 29, 2010 at 6:17 PM, Kostya Vasilyev kmans...@gmail.com wrote:

 You'll have to write your own SQliteOpenHelper-type class for that, as the
 built-in implementation always calls context.getDatabasePath.

 If you are not using SQliteOpenHeper, just call
 SQLiteDatabase.openOrCreateDatabase() with a path of your choice.

 -- Kostya


Thanks for quick reply.

Are there any doc on that. I still struggling with all of it.





-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-29 Thread Nikola
On Wed, Dec 29, 2010 at 6:33 PM, Kostya Vasilyev kmans...@gmail.com wrote:

  Docs:


 http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html

 I pasted my code here:

 http://pastebin.com/1hKWffeu

 It doesn't differentiate between read-only and writable database open modes
 (SqliteOpenHelper does), and probably lacks some error handling here and
 there (this is work in progress).

 However, it should be enough to get you on the way.

 -- Kostya


Thank you Kostya.

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-29 Thread Nikola
On Wed, Dec 29, 2010 at 11:47 PM, gato chlr dany...@gmail.com wrote:

 Hi list!

 for example :

 TextView a = new TextView(this);
 a.setText(I'm a set of words, some ones larger than others, no matter);

 it is posible to have painted the next :

 i'm a set of wo
 rds, some one
 s larger than o
 thers, no matt
 er

 i need something like

 i'm a set of
 words, some
 ones larger
 than others,
 no matter

 I have tried using Gravity.CENTER_HORIZONTAL, it works but not totally.

 some advice?

 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



IMHO android doesn't have lexical knowledge about language. Is is purely
based on length value you might say.

I my native language you have words that are pretty long and which you have
to dissect in specific way so even this wouldn't work.
I think you will have to implement something that will do padding with empty
space to achieve that behavior.

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-28 Thread Nikola
Hi,

I would like to update sql database on android via json.
Is it possible to have encrypted or somehow secure connection to be sniff
proof.

Thanks.

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-26 Thread Nikola
Hi,

Is there any library or something similar for implementing drag and drop
rearrange listview.

I would like to give user a way to sort items with dragging them to
position.


Thanks.

PS: i've looked over at commons TouchList but I am having problem with it,
it crashes on running.

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-24 Thread Nikola
Hi,

I have large amount of data that I should query and display to user.

What are recommended strategies for:

1) filling database (I would like to do it outside phone and just provided
it somehow)

2) secure database so it isn't readable unless you are using app


Thanks.

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-22 Thread Nikola
Hi,

I need a map for my application, so I have few questions (any additional
info is welcome):

1) I saw applications like mTrip for Iphone that are having google maps but
offline,
how is it possible?

2) Is there anything good enough like alternative for google maps?


Thanks.

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-22 Thread Nikola
On Wed, Dec 22, 2010 at 2:41 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Wed, Dec 22, 2010 at 8:25 AM, Nikola nikola1...@gmail.com wrote:
  1) I saw applications like mTrip for Iphone that are having google maps
 but
  offline,
  how is it possible?

 AFAIK, it's not possible.

  2) Is there anything good enough like alternative for google maps?

 Check out OpenStreetMap. I have been using an OSM application called
 TravelDroyd for offline maps for Singapore and Dublin.

 --
 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 *Advanced* Android Development_ Version 1.9
 Available!


Thanks.

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-21 Thread Nikola
Hi,

quick question, if you have two xml layouts and both layouts have the same
button name for eg. how findViewById knows which one is used.

In activity I say setContentView(R.layout.first). Does this means that
findViewById will grab resources from first?.



Thanks.

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-21 Thread Nikola
On Tue, Dec 21, 2010 at 10:38 AM, Sarwar Erfan erfanonl...@gmail.comwrote:



 On Tuesday, December 21, 2010 3:05:10 PM UTC+6, vnv wrote:

 Hi,

 quick question, if you have two xml layouts and both layouts have the same
 button name for eg. how findViewById knows which one is used.

 In activity I say setContentView(R.layout.first). Does this means that
 findViewById will grab resources from first?.

 Yes.
 findViewById has no interest with what you have in your other xml's.

 Regards
 Sarwar Erfan


Thanks.


-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-21 Thread Nikola
Hi,

I have 3 activity that are used for showing data and choosing options.
There is menu with 3 button at the bottom that enables you to chose
activity.

My question is: how to handle following situations (implement them):

1) I want to show first fourth activity at the start, but discard it after
being shown.
(you cannot go back and see it) ,


2) If I am in for eg. in activity number 2 and want to go in activity 1 then
from 1 back to two,
what is procedure for this, beacuse when I am doing this through intents I
am leaving trail
behind so going with back button there is whole stack. (how to avoid this).


Thanks.

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-19 Thread Nikola
Hi,

I would like to have two ListViews that I can populate with data but with
only one scrollbar.
Then I could add data to first one and second one and it would scroll
together.


[screen + scrollbar]
[ListView 1]
[ListView 2]
[/ screen + scrollbar]

Any hints?


-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-19 Thread Nikola
On Sun, Dec 19, 2010 at 12:58 PM, Mark Murphy mmur...@commonsware.comwrote:

 Have one ListView and combine the contents. My MergeAdapter may help:

 https://github.com/commonsguy/cwac-merge

 Or use a MergeCursor if the rows come from Cursors and the rows all
 look the same.


Thanks , really helpful!.


-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-17 Thread Nikola
2010/12/17 Kostya Vasilyev kmans...@gmail.com

 Sure. Put xml files into layout-land and layout-port, make sure to use the
 same name for both, so Android knows these are two variations of the same
 layout.


Do I need to create both land and port, or I can use land, and default will
be used for port.



Thanks for quick reply.



-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-17 Thread Nikola
On Fri, Dec 17, 2010 at 3:19 PM, Kostya Vasilyev kmans...@gmail.com wrote:

 Up until 2.3 there were only two orientations (port / land).

 Android 2.3 added reverse land and port orientations, but this reference:


 http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources

 only lists port and land.

 I *guess* this means that the same layouts are used for reverse
 orientations as for the old (non-reverse) ones, but don't see this mentioned
 either.

 So it looks like up through 2.2, you can just use -land and -port, and 2.3
 behavior isn't fully documented yet.

 -- Kostya

 17.12.2010 16:57, Brill Pappin пишет:

  It would be a good idea I think to make sure there is something in the
 default, just in case some implementation doesn't actually look for it.
 I don't know if there are cases of that happening but you never know and
 you never want noting to show up, or the system to get an exception.

 - Brill
 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 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




Tnx for all help.



-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-17 Thread Nikola
Hi,

I would like to have two column layout.

In first column I would put 4 textview elements and in the second one I
would put big picture.

What would be the best approach for this?


tnx.

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-17 Thread Nikola
On Fri, Dec 17, 2010 at 3:50 PM, Kostya Vasilyev kmans...@gmail.com wrote:

 Don't use TableLayout here, as its strength is in the other dimension
 (aligning views one below another).

 You can use a horizontal LinearLayout, with two children: a vertical
 LinearLayout for your text views, and an image view.

 Or you can do this with one RelativeLayout: position the image with
 alignParentRight, and text views with below=one another, alignParentLeft
 and leftOf=ImageView.

 -- Kostya


Tnx for that Kostya. I have done it but it shows only one LinearLayout of
two.


This is configuration:

?xml version=1.0 encoding=utf-8?
LinearLayout
android:layout_width=fill_parent
android:layout_height=fill_parent
xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=horizontal



LinearLayout
android:layout_height=fill_parent
xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical


TextView
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=aa
android:layout_gravity=center_vertical|center_horizontal
/


/LinearLayout

LinearLayout
android:layout_width=fill_parent
android:layout_height=fill_parent
xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical

TextView
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=b
android:layout_gravity=center_vertical|center_horizontal
/


/LinearLayout

/LinearLayout



Any ideas what could be wrong?


-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-17 Thread Nikola
Got it !

layout_weight=1 for children solved the problem.

Tnx once again Kostya.

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-11 Thread Nikola
On Sat, Dec 11, 2010 at 11:18 PM, TreKing treking...@gmail.com wrote:

 On Sat, Dec 11, 2010 at 3:58 PM, vnv nikola1...@gmail.com wrote:

 My idea is that this kind of application is some kinda broadcast
 receiver that listens to broadcast sent by system on opening
 application.


 There is no such thing, AFAIK.


  Could anyone provide details of how this stuff is really working because
 IMHO I thing I am on the wrong path.


 No idea, but probably some kind of hack.


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


What kind of hack could it be, because this is on market so there could not
be anything that is not in the public API. They couldn't make any change to
Android itself.

Very interesting.

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-12-11 Thread Nikola
What is general procedure to get hold on information about this api.

On 11 Dec 2010 23:54, TreKing treking...@gmail.com wrote:

On Sat, Dec 11, 2010 at 4:36 PM, Nikola nikola1...@gmail.com wrote:

 What kind of hack could it...
Just because it's not public doesn't mean it can't be used - more like you
shouldn't and are liable to break across platform changes.
For example, the Calendar API is not public but go count how many results
you get for calendar in the Market.



-
...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers g...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Good source of information for old Contact API?

2010-11-17 Thread Nikola
First, tnx for really really quick reply :)


On Thu, Nov 18, 2010 at 2:40 AM, welly tambunan if05...@gmail.com wrote:

 this tutorial provides both of the contact api version

 http://www.higherpass.com/Android/Tutorials/Working-With-Android-Contacts/


I was trying to run this one but application stops. It seems something is
broken and I am using latest SDK.
I tried to find out some help about this but all roads to solution are dead,
nobody replies nothing.





 http://www.higherpass.com/Android/Tutorials/Working-With-Android-Contacts/for
 working parallel with old and new (backward compatible) you can read this
 article

 http://developer.android.com/resources/articles/contacts.html

This is good but is really not that good when it comes code first
explanation later, too ambiguous for a starter.


I would be great If there would be some example code for insert and update
contact. Good starting point, as I said about one for
higherpasshttp://www.higherpass.com/Android/Tutorials/Working-With-Android-Contacts/
they didn't work so it's a bad start, maybe only for me.

I am so frustrated that If I obtain knowledge about this I would certainty
create some kinda library for ease of use, because it is very interesting
that none of those already exist.

Interested in this project? (helpful startup would be nice)



-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2010-11-15 Thread Nikola
Hi,

I know it is possible to add contact via Intent and putExtra with all
infromation you want to add.
Is it possible to update contact with new information by calling Intent with
putExtra with new info?

tnx in advance.

-- 
God is Real, unless declared Integer.
J. Allan Toogood, FORTRAN programmer

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

2009-10-16 Thread Nikola Novakovic

Is it possible to use com.android.internal.telephony.* API in
application? I would really need to use some classes from there, since
there is no other way I can make my app answer incoming call, send dtmf
and etc.

Thanks,
Nikola

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

2009-07-08 Thread Nikola Miljkovic

By the way...I cannot find any documentation about layout_weight.  Can
you describe what it means?

Thanks,
Nikola

On Jul 7, 8:39 pm, Nikola Miljkovic niko...@gmail.com wrote:
 Perfect.  Thanks!

 On Jul 7, 8:11 pm, Romain Guy romain...@google.com wrote:

  Hi,

  Do not use wrap_content on the ListView. Instead, use
  layout_height=0dip and layout_weight=1.0.

  On Tue, Jul 7, 2009 at 1:53 PM, NikolaMiljkovicniko...@gmail.com wrote:

   Hello all,

   I am having a problem with ListViews.  After adding a few items to the
   list and it becomes larger than the layout, my cancel button
   disappears.  Scrolling and everything else on the ListView still work
   fine, but it replaces the views I have below it.  Anyone else run into
   this issue?  Am I missing something?

   Here is an example layout:

   LinearLayout xmlns:android=http://schemas.android.com/apk/res/
   android
      android:orientation=vertical
      android:layout_width=fill_parent
      android:layout_height=fill_parent

          ListView android:id=@+id/list_stuff
                  android:layout_width=fill_parent
                  android:layout_height=wrap_content
          /
          Button android:id=@+id/button_cancel
                  android:layout_width=100dip
                  android:layout_height=wrap_content
                  android:text=Cancel
          /
   /LinearLayout

  --
  Romain Guy
  Android framework engineer
  romain...@android.com

  Note: please don't send private questions to me, as I don't have time
  to provide private support.  All such questions should be posted on
  public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Disappearing Views with ListView

2009-07-07 Thread Nikola Miljkovic

Hello all,

I am having a problem with ListViews.  After adding a few items to the
list and it becomes larger than the layout, my cancel button
disappears.  Scrolling and everything else on the ListView still work
fine, but it replaces the views I have below it.  Anyone else run into
this issue?  Am I missing something?

Here is an example layout:

LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent

ListView android:id=@+id/list_stuff
android:layout_width=fill_parent
android:layout_height=wrap_content
/
Button android:id=@+id/button_cancel
android:layout_width=100dip
android:layout_height=wrap_content
android:text=Cancel
/
/LinearLayout

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

2009-07-07 Thread Nikola Miljkovic

Perfect.  Thanks!

On Jul 7, 8:11 pm, Romain Guy romain...@google.com wrote:
 Hi,

 Do not use wrap_content on the ListView. Instead, use
 layout_height=0dip and layout_weight=1.0.



 On Tue, Jul 7, 2009 at 1:53 PM, Nikola Miljkovicniko...@gmail.com wrote:

  Hello all,

  I am having a problem with ListViews.  After adding a few items to the
  list and it becomes larger than the layout, my cancel button
  disappears.  Scrolling and everything else on the ListView still work
  fine, but it replaces the views I have below it.  Anyone else run into
  this issue?  Am I missing something?

  Here is an example layout:

  LinearLayout xmlns:android=http://schemas.android.com/apk/res/
  android
     android:orientation=vertical
     android:layout_width=fill_parent
     android:layout_height=fill_parent

         ListView android:id=@+id/list_stuff
                 android:layout_width=fill_parent
                 android:layout_height=wrap_content
         /
         Button android:id=@+id/button_cancel
                 android:layout_width=100dip
                 android:layout_height=wrap_content
                 android:text=Cancel
         /
  /LinearLayout

 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Is there an easy way to make EditText look like TextView but still behave like EditText?

2009-05-18 Thread Nikola Radosavljevic
Note: I had troubles posting to android-beginners group, so I came here
hoping this will work.

Hello there,

I want an EditText to look like TextView but still behave like
EditText. I've tried applying TextView style to my EditText in my
layout.xml file, like this:

EditText
   android:id=@+id/lipsum
   android:text=Lorem ipsum
   android:style=@android:style/Widget_TextView
/

..but I get an error within xml editor: Error: No resource found that
matches the given name (at 'style' with value '@android:style/
Widget_TextView'). It is strange because @android:style/
Widget_TextView definitively exists - I double checked it in code via
android.R.style.Widget_TextView. Another strange thing is that I don't
get android:style offered in the xml editor while typing? There is
android:id, android:text and everything else.. but not
android:style?!

Note: I consider the hard way (making EditText look like TextView) to
be: extending EditText and overriding it's onDraw method.

Nikolar

PS: Check out
http://developer.android.com/guide/topics/ui/themes.html#styles.
Why are id and style written without android: namespace?

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