Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
anditsung
Posts: 233
Registered: ‎09-30-2010
My Device: Z10, Onyx2
My Carrier: IND XL
Accepted Solution

API 7.1.0 how to access getProfileById on Profiles

 

Profile getProfileById(int profileId) 

 

hmmm anyone know how to use this?

 

Please use plain text.
Developer
simon_hain
Posts: 15,846
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: API 7.1.0 how to access getProfileById on Profiles

my guess would be list the profiles with http://www.blackberry.com/developers/docs/7.1.0api/net/rim/blackberry/api/profiles/Profiles.html#get... and check their ids.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
anditsung
Posts: 233
Registered: ‎09-30-2010
My Device: Z10, Onyx2
My Carrier: IND XL

Re: API 7.1.0 how to access getProfileById on Profiles

done that part to get all profiles.
but it will return profile not profiles.

and getProfileById(int profileId) is non static members

i try to get it by new Profiles().getProfileById(ids)
its possible to do that but profiles() is not defined...
do you think this is a bug?
Please use plain text.
Developer
simon_hain
Posts: 15,846
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: API 7.1.0 how to access getProfileById on Profiles

getDeviceProfiles() returns an array of profiles, you should be able to get the id from each of them
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.