fahimeh hashemian

Ranch Hand
+ Follow
since Aug 07, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
5
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by fahimeh hashemian

I want to set tab hairline and tab indicator in tab actionbar with appcompat. I searched and read many questions about this but i can't do this I write this style and selector but i can't create tab indicator.

My style that set this on Manifest file:



tab_bg_selector:



I can't know how can create tab indicator and thin line below tab bar with xml. I can't use actionbar style generator. I want learning myself. Thanks for advises and sorry for take your time

6 years ago
I am new in android, i want to write a side navigator for showing my itmes in slide bar, i used side navigation lib form github site but i dont know how can i set navigator on onClick() event of button. I mean how can i write code for when click on button shows slide bar and again click on button, slide bar go out and invisible? I cant understand actionbarSherlock sample. Please if you know, explain for me

Thanks for advise
6 years ago
I want to get IMSI from Sim cards in dual Sim card android phone (IMSI1 , IMSI2) but i don't know how can i do this? Can i do this? I searched and i know Google team not support this, and i should check manufacture of device, but in research i see, use reflection for get IMEI in dual Sim card phone and now i want to know i can use for get IMSI? Thanks
7 years ago
I want use smooth indeterminate horizontal progress bar like gmail or FB app. I want support api level 8+. I searched and i see a library but i want write this code not use lib. I find some question and answer about this but i cant understand and use this. I read this (link), in accept answer what is incrementor and count? in last answer, how can i use this class and methods? please explain about use this class or method in program? Thanks and sorry for my stupid question
7 years ago
Hi.
I want to use ActionBarSherlock for implement action bar sliding in my program. my program used mapsforge. I can add actionBarSherlock lib to my app. one class extend of sherlockFragmentActivity because i can use getSupportActionBar() instead of getActionBar() but when i run program, the program has error(the error is: invalid apk file! ) and when i remove ActionBarsherlock, the error remove!!!

my questions is:

1)my class used mapsforge, and i should extend MapActivity, but for using getSupportActionBar(), i should extend sherlockFragmentActivity. how can i solved this problem? how can i implement my program ? (i used ASB, because my program support api level 8+)

2)Why, when i add ASB lib to my project, the project in compile time hase error (invalid apk file! ) and when i unhit IsLibrary in properties->android->library (means that remove ASB lib of my program), the program not detect ActionBarSherlock and when remove sherlockFragmentActivity, my program runs good. What is my problem???

Thanks for advises
7 years ago

Ulf Dittmer wrote:The problem is that you did not do exactly what that tutorial says to do. You made a mistake with the command you used, which is what Steve and I are trying to alert you to. So I'll say it again: look very carefully at every single part of the command you used.


Sorry Sorry. I don't see the rest of it ! again sorry for take your time Thanks Steve and Ulf
7 years ago

Steve Luke wrote:

fahimeh hashemian wrote:

Ulf Dittmer wrote:Carefully look at each part of the command you're entering, and ask yourself: is that correct?


I read my comments and i think, this is true! what you mean? which part of my question is incorrect?


What are the available options for the -list command?


I don't know. I read this tutorial and i use this for finding api key .

https://blog-emildesign.rhcloud.com/?p=403
7 years ago

Ulf Dittmer wrote:Carefully look at each part of the command you're entering, and ask yourself: is that correct?


I read my comments and i think, this is true! what you mean? which part of my question is incorrect?
7 years ago
I want to find api key for using and testing my app in my device(I mean before release, i want when connect device to laptop, i want to test program and see map on device). anyway, i use this line for find md5 and sh1, but when write this in cmd, i see below error! why? How can i solve this?

I write:

C:\Program Files\Java\jdk1.7.0_03\bin>keytool -list -keytool C:\Users\my name\debug.keystore

but i see this in cmd:

Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object

Please help me . Thanks
7 years ago
And can i use MapDroyd in my app? like google maps? I use this, like this is a part of my program .
7 years ago
Thanks for reply.You mean when i use OSMDroid or MapDroyd, i should connect to internet for first time and download map? when i use these, Can i zoom to map and search each point in map? I mean in first connection, app download full map of world?

If you have a simple tutorial for using offline map and description about this, please give me

again Thanks
7 years ago
Hi all
I want to use map in my application. Now i want to know everything about map in android. I mean, full of ways for using offline map and online map. what are ways for using offline map?(like OSMDroid or google map and ...) . when i use offline map, i have not an internet connection? even for first? so how can it works? how can this find my location and my search location? Do i should save map in my SD card?

before i used map in a small app with google api, in this way i must to have internet, but now i searched in internet, i find that way is deprecated and now i should use Google play services!

anyway, i want to know about map and how can i use this.

I googled but i can't find a good answer for my questions... some people say, can't use online google map and another say, can catch some particular destination and in some sites say, can use offline map! I am confused if you have a link or tutorial, please send for me .

Thanks for advice
Cheers
7 years ago
Hi. I think 'Resource' refer to your view. for example, you have a Button with resource id=btn, purpose of resource in this is Button. I mean Resource in this, refer to your Button.
7 years ago


No, I specifically said that the onClick event shouldn't do that! Don't do that. The onResume() method should be called only as part of the Activity Live Cycle, not arbitrarily by your code. Go back and read what I said, and do that.

And remember that you will need to cancel any tasks already running, but there is NO need to kill the timer each time, you can re-use it (it would be nice to purge it though).



I understand that onResume() method called as part of the activity live cycle but why, when changed values of accelerometer sensor (mBallSpd), the changes fix in onResume method but when i clicked on buttons and run onClick method and changed values of period and delay, the changes not fix in onResume()... i am confused. please if you can write a sample code or give me a link that i can solve my problem thanks
7 years ago

Steve Luke wrote:

fahimeh hashemian wrote:but onResume call when changed value of sensor!


What does that mean? What sensor are you talking about?

where should i move my code that fix in period and delay in onResume()?


You need code to execute when onResume() is called, and when the buttons are pushed. The buttons being pushed do not cause onResume() to be called (nor should they). So what should you do? Move the code to its own method. Call the method from onResume() and the OnClickListener's onClick() method.



Sensor value is values of changed accelerometer sensor. I write full of my code in mainActivity in below.

I think codes in onResume method calls in per period seconds( mTimer.schedule(mTimerTask, delay,period); ) and when i click in buttons, runs onClick method and changed period and delay value and should fix these values in onResume method because mTimer.schedule(mTimerTask, delay,period); in onResume method use delay and period and these value changed in onClick(). I hope you understand what you mean if you not understand please tell me that i more explain.

7 years ago